Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) 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(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",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.007134/0.007134, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001737/0.001737, allocations: 204.2 kB / 16.68 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1192/0.1192, allocations: 2.757 MB / 293.3 MB, free: 3.551 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 59.91 kB / 405.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2459, allocations: 50.24 MB / 455.6 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006273/0.2522, allocations: 8.352 MB / 464 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005538/0.2577, allocations: 9.457 MB / 473.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.2579, allocations: 0.9375 kB / 473.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004959/0.2584, allocations: 165.2 kB / 473.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.2587, allocations: 102.1 kB / 473.7 MB, free: 7.504 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.003592/0.2623, allocations: 1.463 MB / 475.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.2627, allocations: 257.3 kB / 475.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.2627, allocations: 13.02 kB / 475.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004203/0.2669, allocations: 122.5 kB / 475.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.2671, allocations: 83.58 kB / 475.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.2672, allocations: 16.08 kB / 475.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.269, allocations: 475.1 kB / 476.1 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.769e-05/0.2691, allocations: 26.08 kB / 476.1 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.976e-05/0.2692, allocations: 88.19 kB / 476.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.2704, allocations: 0.4929 MB / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2704, allocations: 0.7969 kB / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2704, allocations: 0 / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2704, allocations: 0 / 476.7 MB, free: 6.117 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007432/0.2712, allocations: 0.5661 MB / 477.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2712, allocations: 10.66 kB / 477.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.126e-05/0.2713, allocations: 48.28 kB / 477.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003268/0.2716, allocations: 63.14 kB / 477.4 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.2718, allocations: 197.7 kB / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.641e-05/0.2718, allocations: 14.62 kB / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.2719, allocations: 11.25 kB / 477.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004847/0.2724, allocations: 243.8 kB / 477.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.2724, allocations: 0 / 477.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.2724, allocations: 6.75 kB / 477.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2724, allocations: 9.516 kB / 477.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.2729, allocations: 209.3 kB / 478.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007103/0.2736, allocations: 0.6777 MB / 478.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006037/0.2742, allocations: 247.5 kB / 479 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.2745, allocations: 157 kB / 479.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002276/0.2747, allocations: 329.6 kB / 479.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.2748, allocations: 39.81 kB / 479.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.594e-06/0.2748, allocations: 0 / 479.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002899/0.2777, allocations: 1.236 MB / 480.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.2777, allocations: 58.55 kB / 480.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.842e-05/0.2778, allocations: 119.9 kB / 480.9 MB, free: 3.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2778, allocations: 27.14 kB / 481 MB, free: 3.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.2779, allocations: 110.8 kB / 481.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.278, allocations: 157.5 kB / 481.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/0.2781, allocations: 67.19 kB / 481.3 MB, free: 2.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.976e-05/0.2782, allocations: 333.4 kB / 481.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/0.2785, allocations: 125.4 kB / 481.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.2788, allocations: 186.6 kB / 481.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.2794, allocations: 337.7 kB / 482.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2794, allocations: 4 kB / 482.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00113/0.2805, allocations: 494.9 kB / 482.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2805, allocations: 7.453 kB / 482.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2806, allocations: 1.531 kB / 482.7 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007369/0.2813, allocations: 157.6 kB / 482.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.2814, allocations: 33.25 kB / 482.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005828/0.282, allocations: 0.6683 MB / 483.6 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.2822, allocations: 12.69 kB / 483.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.2822, allocations: 7.438 kB / 483.6 MB, free: 1.418 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.2824, allocations: 132.4 kB / 483.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.2824, allocations: 23.39 kB / 483.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.704e-05/0.2825, allocations: 24.97 kB / 483.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.2825, allocations: 9.469 kB / 483.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.2825, allocations: 5.219 kB / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.2825, allocations: 1.125 kB / 483.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/0.2829, allocations: 305 kB / 484.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2829, allocations: 0 / 484.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.2832, allocations: 48.45 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003446/0.2835, allocations: 68.11 kB / 484.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.2835, allocations: 11.62 kB / 484.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.2858, allocations: 2.932 MB / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2858, allocations: 4.094 kB / 487.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.2871, allocations: 0.7003 MB / 487.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.165e-05/0.2872, allocations: 94.95 kB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.2872, allocations: 1.219 kB / 488 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2874, allocations: 19.47 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.2875, allocations: 27.42 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2875, allocations: 11.12 kB / 488 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.2876, allocations: 91.05 kB / 488.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2876, allocations: 0 / 488.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004234/0.288, allocations: 61.69 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00207/0.2901, allocations: 1.266 MB / 489.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.2912, allocations: 372.1 kB / 489.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2912, allocations: 320 / 489.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006331/0.2918, allocations: 314.2 kB / 490.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.2925, allocations: 111.1 kB / 490.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005251/0.2978, allocations: 2.977 MB / 493.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.2983, allocations: 0.7327 MB / 493.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003168/0.2986, allocations: 114.9 kB / 494 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.2987, allocations: 54.44 kB / 494.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2987, allocations: 0 / 494.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.3338, allocations: 7.877 MB / 0.4902 GB, free: 5.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.32, allocations: 4.125 kB / 0.4902 GB, free: 5.723 MB / 366.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)