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.005231/0.005231, allocations: 101.2 kB / 15.73 MB, free: 6.004 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.001315/0.001316, allocations: 187 kB / 16.67 MB, free: 5.922 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01412/0.01412, allocations: 2.785 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00212/0.00212, allocations: 71.83 kB / 405.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09326, allocations: 50.23 MB / 455.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01036/0.1037, allocations: 8.348 MB / 464 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009109/0.1128, allocations: 9.47 MB / 473.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.113, allocations: 0 / 473.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005488/0.1136, allocations: 167 kB / 473.6 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003211/0.114, allocations: 95.34 kB / 473.7 MB, free: 9.152 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.003969/0.118, allocations: 1.452 MB / 475.2 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004347/0.1184, allocations: 266.8 kB / 475.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.738e-05/0.1185, allocations: 13.69 kB / 475.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004634/0.1231, allocations: 129.6 kB / 475.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.1233, allocations: 87.56 kB / 475.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.1234, allocations: 8 kB / 475.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001887/0.1253, allocations: 471.9 kB / 476.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.562e-05/0.1254, allocations: 39.83 kB / 476.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.1255, allocations: 79.61 kB / 476.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001759/0.1273, allocations: 0.4986 MB / 476.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1273, allocations: 0 / 476.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1273, allocations: 4 kB / 476.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1274, allocations: 0 / 476.7 MB, free: 6.125 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.001112/0.1285, allocations: 0.5526 MB / 477.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.1285, allocations: 8.031 kB / 477.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.778e-05/0.1286, allocations: 54.73 kB / 477.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003978/0.129, allocations: 60.69 kB / 477.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.1293, allocations: 212.1 kB / 477.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.1294, allocations: 12.31 kB / 477.6 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.1294, allocations: 12.38 kB / 477.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.1301, allocations: 239.1 kB / 477.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1301, allocations: 0 / 477.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.1301, allocations: 8 kB / 477.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.1302, allocations: 11.98 kB / 477.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005457/0.1307, allocations: 208.2 kB / 478.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1318, allocations: 0.6708 MB / 478.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.1325, allocations: 242.6 kB / 479 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.1328, allocations: 153.1 kB / 479.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003634/0.1332, allocations: 331.4 kB / 479.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.1332, allocations: 42.47 kB / 479.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.627e-06/0.1332, allocations: 0 / 479.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.003217/0.1365, allocations: 1.237 MB / 480.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1365, allocations: 51.41 kB / 480.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.1367, allocations: 125.8 kB / 480.9 MB, free: 1.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.1367, allocations: 29.7 kB / 481 MB, free: 1.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.757e-05/0.1368, allocations: 108.9 kB / 481.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.137, allocations: 166.6 kB / 481.2 MB, free: 1.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1371, allocations: 57.66 kB / 481.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.1373, allocations: 334.8 kB / 481.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.1375, allocations: 128.5 kB / 481.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003123/0.1378, allocations: 184.4 kB / 481.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005923/0.1384, allocations: 340 kB / 482.2 MB, free: 236 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1385, allocations: 0 / 482.2 MB, free: 236 kB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001228/0.1397, allocations: 489.8 kB / 482.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1397, allocations: 8 kB / 482.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1397, allocations: 0 / 482.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008128/0.1406, allocations: 156.8 kB / 482.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.1407, allocations: 35.92 kB / 482.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007916/0.1415, allocations: 0.6733 MB / 483.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/0.1417, allocations: 12.03 kB / 483.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.1417, allocations: 8 kB / 483.6 MB, free: 14.82 MB / 366.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.0001486/0.1419, allocations: 133.7 kB / 483.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.1419, allocations: 19.86 kB / 483.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.281e-05/0.142, allocations: 38.2 kB / 483.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.142, allocations: 4 kB / 483.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1421, allocations: 4 kB / 483.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1421, allocations: 7.922 kB / 483.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.1425, allocations: 294.2 kB / 484.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1425, allocations: 0 / 484.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002889/0.1428, allocations: 51.91 kB / 484.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/0.1432, allocations: 72.78 kB / 484.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/0.1432, allocations: 15.86 kB / 484.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/0.1457, allocations: 2.922 MB / 487.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1457, allocations: 0 / 487.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.147, allocations: 0.6977 MB / 487.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.1471, allocations: 101.1 kB / 488 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.1471, allocations: 7.984 kB / 488 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.1473, allocations: 11.94 kB / 488 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.637e-05/0.1474, allocations: 27.84 kB / 488 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.1474, allocations: 7.984 kB / 488 MB, free: 10.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.212e-05/0.1475, allocations: 95.27 kB / 488.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1475, allocations: 0 / 488.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003899/0.1479, allocations: 60 kB / 488.2 MB, free: 9.863 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.001898/0.1498, allocations: 1.252 MB / 489.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009466/0.1508, allocations: 379.4 kB / 489.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1508, allocations: 0 / 489.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00062/0.1514, allocations: 307 kB / 490.1 MB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006757/0.1521, allocations: 111.3 kB / 490.2 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005/0.1571, allocations: 2.986 MB / 493.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.1575, allocations: 0.7332 MB / 493.9 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002629/0.1578, allocations: 109.4 kB / 494 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.1579, allocations: 59.41 kB / 494.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1579, allocations: 0 / 494.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.1951, allocations: 7.885 MB / 0.4902 GB, free: 12.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.09, allocations: 8.047 kB / 0.4902 GB, free: 12.09 MB / 382.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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1)