Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_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.001303/0.001303, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001234, allocations: 190.4 kB / 16.66 MB, free: 6.59 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1049/0.1049, allocations: 2.758 MB / 293.3 MB, free: 3.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 63.89 kB / 405.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2183, allocations: 50.23 MB / 455.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.008768/0.2271, allocations: 9.002 MB / 464.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005415/0.2326, allocations: 8.575 MB / 473.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2328, allocations: 0 / 473.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005223/0.2333, allocations: 163 kB / 473.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003046/0.2337, allocations: 102.5 kB / 473.5 MB, free: 7.723 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.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.004393/0.2381, allocations: 1.459 MB / 475 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.2386, allocations: 275.8 kB / 475.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.261e-05/0.2386, allocations: 13.59 kB / 475.2 MB, free: 6.727 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.1122/0.3508, allocations: 12.85 MB / 488.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.3511, allocations: 89.09 kB / 488.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.3511, allocations: 7.156 kB / 488.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.353, allocations: 473.5 kB / 488.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.712e-05/0.3531, allocations: 29.03 kB / 488.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3532, allocations: 89.47 kB / 488.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.3546, allocations: 0.5078 MB / 489.3 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3546, allocations: 1.375 kB / 489.3 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3546, allocations: 0 / 489.3 MB, free: 420 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.3546, allocations: 0 / 489.3 MB, free: 420 kB / 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.0008074/0.3554, allocations: 0.5614 MB / 489.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3555, allocations: 9.938 kB / 489.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.3555, allocations: 49.2 kB / 489.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.3559, allocations: 59.42 kB / 489.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002702/0.3562, allocations: 216 kB / 490.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.3562, allocations: 11.75 kB / 490.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.3562, allocations: 12.5 kB / 490.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005306/0.3568, allocations: 242.6 kB / 490.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3568, allocations: 0 / 490.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.3568, allocations: 6.938 kB / 490.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.3569, allocations: 10.3 kB / 490.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.358, allocations: 199.8 kB / 490.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008938/0.3589, allocations: 0.6831 MB / 491.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.3594, allocations: 221.5 kB / 491.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.3597, allocations: 154.6 kB / 491.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003288/0.36, allocations: 340.5 kB / 492 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.3601, allocations: 39.78 kB / 492.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.743e-06/0.3601, allocations: 1.031 kB / 492.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.00289/0.363, allocations: 1.212 MB / 493.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.363, allocations: 57.28 kB / 493.3 MB, free: 13.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.3632, allocations: 129.3 kB / 493.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.3632, allocations: 31.61 kB / 493.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.3633, allocations: 111.9 kB / 493.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3634, allocations: 164.8 kB / 493.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.927e-05/0.3635, allocations: 59.38 kB / 493.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3637, allocations: 334 kB / 494.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.3639, allocations: 128.9 kB / 494.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.3642, allocations: 189.7 kB / 494.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.3648, allocations: 340.5 kB / 494.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3648, allocations: 2.031 kB / 494.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001148/0.3659, allocations: 482 kB / 495.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.366, allocations: 6.203 kB / 495.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.366, allocations: 5.375 kB / 495.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007203/0.3667, allocations: 144.8 kB / 495.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.3669, allocations: 34.7 kB / 495.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006675/0.3675, allocations: 0.6593 MB / 496.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.3677, allocations: 5.719 kB / 496.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.3677, allocations: 11.31 kB / 496.1 MB, free: 11.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 16 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.3679, allocations: 143.5 kB / 496.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.368, allocations: 20.38 kB / 496.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.774e-05/0.368, allocations: 19.81 kB / 496.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.3681, allocations: 11.3 kB / 496.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.3681, allocations: 0 / 496.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3681, allocations: 0 / 496.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003624/0.3684, allocations: 300.1 kB / 496.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3685, allocations: 1.562 kB / 496.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.3686, allocations: 39.44 kB / 496.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003397/0.369, allocations: 70.58 kB / 496.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.369, allocations: 5.438 kB / 496.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001451/0.3705, allocations: 1.559 MB / 498.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3705, allocations: 0 / 498.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.3717, allocations: 0.6987 MB / 499 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.3718, allocations: 102.8 kB / 499.1 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.3718, allocations: 1.156 kB / 499.1 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001548/0.372, allocations: 8.875 kB / 499.1 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.832e-05/0.372, allocations: 25.28 kB / 499.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.3721, allocations: 8.609 kB / 499.1 MB, free: 8.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.233e-05/0.3722, allocations: 103.6 kB / 499.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.3722, allocations: 4.062 kB / 499.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003891/0.3726, allocations: 66.91 kB / 499.3 MB, free: 8.887 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 (19): * Single equations (assignments): 16 * 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): 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.00174/0.3743, allocations: 1.232 MB / 0.4888 GB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009327/0.3752, allocations: 372.9 kB / 0.4891 GB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3753, allocations: 0 / 0.4891 GB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.3759, allocations: 312.6 kB / 0.4894 GB, free: 7.516 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.3766, allocations: 101.8 kB / 0.4895 GB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004979/0.3816, allocations: 2.928 MB / 0.4924 GB, free: 4.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.382, allocations: 0.741 MB / 0.4931 GB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.3823, allocations: 117.3 kB / 0.4932 GB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.688e-05/0.3824, allocations: 55.36 kB / 0.4933 GB, free: 3.93 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3824, allocations: 4 kB / 0.4933 GB, free: 3.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.419, allocations: 7.873 MB / 0.501 GB, free: 12.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.21, allocations: 4 kB / 0.501 GB, free: 12.11 MB / 382.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1)