Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 106.5 kB / 16.62 MB, free: 6.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009978/0.0009978, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 47.48 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08475/0.08595, allocations: 49.44 MB / 349.7 MB, free: 4.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005896/0.09188, allocations: 5.19 MB / 354.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008288/0.1002, allocations: 6.566 MB / 361.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008297/0.1011, allocations: 35.75 kB / 361.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1027, allocations: 449.6 kB / 361.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002874/0.1056, allocations: 0.701 MB / 362.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.107, allocations: 375 kB / 363 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003434/0.1105, allocations: 2.028 MB / 365 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004053/0.1109, allocations: 163 kB / 365.2 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000664/0.1116, allocations: 354.2 kB / 365.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005478/0.1122, allocations: 349.6 kB / 365.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.1123, allocations: 28 kB / 365.9 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.1137, allocations: 487.5 kB / 366.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1139, allocations: 115.2 kB / 366.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006813/0.1146, allocations: 441.1 kB / 366.9 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002245/0.1169, allocations: 1.269 MB / 368.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.1169, allocations: 4 kB / 368.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1169, allocations: 0 / 368.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.929e-05/0.117, allocations: 0 / 368.2 MB, free: 2.082 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002653/0.1197, allocations: 1.436 MB / 369.6 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.1197, allocations: 8.031 kB / 369.6 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.172e-05/0.1198, allocations: 62.53 kB / 369.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.12, allocations: 130.3 kB / 369.8 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1662/0.2862, allocations: 0.8457 MB / 370.6 MB, free: 25.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.2863, allocations: 16.44 kB / 370.7 MB, free: 25.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.2863, allocations: 22.23 kB / 370.7 MB, free: 25.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006288/0.287, allocations: 311.2 kB / 371 MB, free: 25.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.287, allocations: 2.016 kB / 371 MB, free: 25.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.287, allocations: 9.5 kB / 371 MB, free: 25.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.2871, allocations: 9.625 kB / 371 MB, free: 25.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004695/0.2875, allocations: 224.5 kB / 371.2 MB, free: 25.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.2894, allocations: 1.125 MB / 372.4 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.2898, allocations: 239.7 kB / 372.6 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004499/0.2902, allocations: 296 kB / 372.9 MB, free: 25.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008332/0.2911, allocations: 0.7578 MB / 373.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.2911, allocations: 36.78 kB / 373.7 MB, free: 24.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.755e-06/0.2911, allocations: 0 / 373.7 MB, free: 24.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002864/0.294, allocations: 1.548 MB / 375.2 MB, free: 23.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.294, allocations: 114.3 kB / 375.3 MB, free: 23.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001018/0.2951, allocations: 0.9282 MB / 376.3 MB, free: 22.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.2951, allocations: 31.08 kB / 376.3 MB, free: 22.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.2953, allocations: 353.5 kB / 376.6 MB, free: 22.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.2954, allocations: 145.4 kB / 376.8 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.2956, allocations: 115.4 kB / 376.9 MB, free: 22.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.574e-05/0.2956, allocations: 320.3 kB / 377.2 MB, free: 21.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.2958, allocations: 125 kB / 377.3 MB, free: 21.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.2961, allocations: 159.8 kB / 377.5 MB, free: 21.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001322/0.2974, allocations: 0.7325 MB / 378.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2974, allocations: 0 / 378.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000943/0.2984, allocations: 0.5592 MB / 378.8 MB, free: 21.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.2984, allocations: 39.56 kB / 378.8 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.084e-05/0.2985, allocations: 13.78 kB / 378.8 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002119/0.2987, allocations: 67.12 kB / 378.9 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.2989, allocations: 49.16 kB / 378.9 MB, free: 21.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.3009, allocations: 3.339 MB / 382.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.3012, allocations: 15.92 kB / 382.3 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.3013, allocations: 20.73 kB / 382.3 MB, free: 17.89 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003641/0.3017, allocations: 258.2 kB / 382.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.3018, allocations: 121.7 kB / 382.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.3031, allocations: 0.6593 MB / 383.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3032, allocations: 3.797 kB / 383.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3032, allocations: 5.344 kB / 383.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.3032, allocations: 3.391 kB / 383.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007358/0.3039, allocations: 0.6177 MB / 384 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-05/0.3039, allocations: 13.39 kB / 384 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.3041, allocations: 39.8 kB / 384 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.3043, allocations: 64.53 kB / 384.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.3044, allocations: 19.98 kB / 384.1 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.3062, allocations: 3.342 MB / 387.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3062, allocations: 0.7031 kB / 387.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.3074, allocations: 0.8557 MB / 388.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.3078, allocations: 275 kB / 388.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.3079, allocations: 7.219 kB / 388.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.3082, allocations: 20.78 kB / 388.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3083, allocations: 28.64 kB / 388.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.3083, allocations: 20.83 kB / 388.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008118/0.3091, allocations: 0.6284 MB / 389.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3091, allocations: 0 / 389.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008631/0.31, allocations: 221.2 kB / 389.5 MB, free: 12.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002041/0.3121, allocations: 1.6 MB / 391.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.3132, allocations: 0.7902 MB / 391.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3132, allocations: 0 / 391.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/0.3138, allocations: 0.6148 MB / 392.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.3144, allocations: 118.5 kB / 392.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009089/0.3235, allocations: 6.272 MB / 398.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.324, allocations: 1.004 MB / 399.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004025/0.3244, allocations: 97.42 kB / 400 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000327/0.3248, allocations: 286.3 kB / 400.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3248, allocations: 3.938 kB / 400.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03723/0.362, allocations: 16.91 MB / 417.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/0.3623, allocations: 222.5 kB / 417.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/2.708, allocations: 0 / 417.4 MB, free: 5.73 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)