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.001089/0.001089, allocations: 108 kB / 15.6 MB, free: 132 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.001225/0.001225, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.135/0.135, allocations: 2.759 MB / 293.2 MB, free: 3.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.91 kB / 354.5 MB, free: 4.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.09968, allocations: 50.24 MB / 404.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01103/0.1107, allocations: 8.997 MB / 413.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007727/0.1185, allocations: 8.567 MB / 422.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.1188, allocations: 4 kB / 422.3 MB, free: 392 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006284/0.1194, allocations: 159 kB / 422.5 MB, free: 232 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000421/0.1199, allocations: 107.3 kB / 422.6 MB, free: 124 kB / 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.1979/0.3178, allocations: 1.451 MB / 424 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005451/0.3184, allocations: 276.4 kB / 424.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.923e-05/0.3184, allocations: 11.22 kB / 424.3 MB, free: 36.16 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.09092/0.4094, allocations: 12.73 MB / 437 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.4096, allocations: 82.56 kB / 437.1 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.4097, allocations: 6.344 kB / 437.1 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002032/0.4117, allocations: 479.5 kB / 437.6 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.4118, allocations: 37.23 kB / 437.6 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.412, allocations: 90.08 kB / 437.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002229/0.4142, allocations: 0.5052 MB / 438.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4142, allocations: 0 / 438.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4142, allocations: 0 / 438.2 MB, free: 31.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.4142, allocations: 0 / 438.2 MB, free: 31.48 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.0008572/0.4151, allocations: 0.5498 MB / 438.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4152, allocations: 11.44 kB / 438.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.4152, allocations: 51 kB / 438.8 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.4156, allocations: 59.64 kB / 438.9 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.4158, allocations: 201.4 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.61e-05/0.4158, allocations: 11.03 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.4159, allocations: 21.66 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.4164, allocations: 238.4 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4164, allocations: 0 / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.4164, allocations: 6.969 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.4164, allocations: 6.844 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.4169, allocations: 207.8 kB / 439.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.4176, allocations: 0.6839 MB / 440.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004898/0.4181, allocations: 233.3 kB / 440.5 MB, free: 30.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.4184, allocations: 150.3 kB / 440.6 MB, free: 30.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002281/0.4186, allocations: 329.8 kB / 441 MB, free: 29.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.4186, allocations: 37.02 kB / 441 MB, free: 29.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.235e-06/0.4186, allocations: 4 kB / 441 MB, free: 29.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002734/0.4214, allocations: 1.205 MB / 442.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.4214, allocations: 58.12 kB / 442.3 MB, free: 29.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.759e-05/0.4215, allocations: 134.3 kB / 442.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.4215, allocations: 29.08 kB / 442.4 MB, free: 29.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.4216, allocations: 120.6 kB / 442.5 MB, free: 29.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.524e-05/0.4217, allocations: 151 kB / 442.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.4218, allocations: 65.88 kB / 442.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.4219, allocations: 327.9 kB / 443.1 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.4221, allocations: 124.1 kB / 443.2 MB, free: 28.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.4224, allocations: 193 kB / 443.4 MB, free: 28.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.4228, allocations: 346.5 kB / 443.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4228, allocations: 0 / 443.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00102/0.4239, allocations: 484.1 kB / 444.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.4239, allocations: 6.406 kB / 444.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4239, allocations: 3.188 kB / 444.2 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/0.4246, allocations: 142.7 kB / 444.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.4248, allocations: 42.19 kB / 444.4 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/0.4253, allocations: 0.6485 MB / 445 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.4254, allocations: 10.72 kB / 445 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.4254, allocations: 8.688 kB / 445 MB, free: 28.1 MB / 350.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.0001045/0.4255, allocations: 140.5 kB / 445.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.4256, allocations: 18.03 kB / 445.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.212e-05/0.4257, allocations: 26.75 kB / 445.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4257, allocations: 12.98 kB / 445.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4257, allocations: 0 / 445.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4257, allocations: 0 / 445.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.426, allocations: 298.4 kB / 445.5 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.426, allocations: 3.188 kB / 445.5 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.4262, allocations: 36.47 kB / 445.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003229/0.4265, allocations: 67.66 kB / 445.6 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.4265, allocations: 7.25 kB / 445.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.4276, allocations: 1.558 MB / 447.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4276, allocations: 3.938 kB / 447.2 MB, free: 26.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.4286, allocations: 0.7014 MB / 447.9 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.876e-05/0.4287, allocations: 94.58 kB / 448 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.4287, allocations: 7.375 kB / 448 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.4288, allocations: 6.438 kB / 448 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.4289, allocations: 20.78 kB / 448 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.4289, allocations: 13.97 kB / 448 MB, free: 26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.651e-05/0.429, allocations: 99.53 kB / 448.1 MB, free: 25.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.429, allocations: 0 / 448.1 MB, free: 25.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000359/0.4294, allocations: 61.56 kB / 448.2 MB, free: 25.92 MB / 350.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.001351/0.4307, allocations: 1.247 MB / 449.5 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008203/0.4316, allocations: 382.1 kB / 449.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4316, allocations: 0 / 449.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.4321, allocations: 312.6 kB / 450.1 MB, free: 24.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.4335, allocations: 95.77 kB / 450.2 MB, free: 24.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.4373, allocations: 2.892 MB / 453.1 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.4375, allocations: 0.7363 MB / 453.9 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.4377, allocations: 113.7 kB / 454 MB, free: 22.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.909e-05/0.4378, allocations: 60.02 kB / 454 MB, free: 22.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4378, allocations: 0 / 454 MB, free: 22.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.4657, allocations: 7.781 MB / 461.8 MB, free: 21.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.07, allocations: 6.844 kB / 461.8 MB, free: 21.19 MB / 350.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)