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.005764/0.005764, allocations: 103.6 kB / 15.73 MB, free: 6.051 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.001196/0.001196, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1305/0.1305, allocations: 2.765 MB / 293.3 MB, free: 3.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001555, allocations: 55.91 kB / 405.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2474, allocations: 50.24 MB / 455.7 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.007579/0.255, allocations: 9.017 MB / 464.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005508/0.2606, allocations: 8.562 MB / 473.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.2608, allocations: 0.9375 kB / 473.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005365/0.2614, allocations: 164.5 kB / 473.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003046/0.2617, allocations: 101.7 kB / 473.5 MB, free: 7.762 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.003552/0.2652, allocations: 1.457 MB / 475 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.2656, allocations: 275.4 kB / 475.2 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.337e-05/0.2657, allocations: 19.8 kB / 475.3 MB, free: 6.762 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.09074/0.3564, allocations: 12.85 MB / 488.1 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.3567, allocations: 83.44 kB / 488.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.3567, allocations: 7.75 kB / 488.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002278/0.359, allocations: 478.5 kB / 488.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.3591, allocations: 35.55 kB / 488.7 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3592, allocations: 84.16 kB / 488.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.3604, allocations: 0.5094 MB / 489.3 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.3604, allocations: 1.719 kB / 489.3 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3605, allocations: 0 / 489.3 MB, free: 448 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.3605, allocations: 4 kB / 489.3 MB, free: 444 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.0007966/0.3613, allocations: 0.5511 MB / 489.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3613, allocations: 9.375 kB / 489.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.318e-05/0.3614, allocations: 50.78 kB / 489.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003539/0.3618, allocations: 54.83 kB / 490 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.362, allocations: 206.8 kB / 490.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.3621, allocations: 17.28 kB / 490.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3621, allocations: 10.47 kB / 490.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005838/0.3627, allocations: 243.5 kB / 490.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3627, allocations: 1.156 kB / 490.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.3627, allocations: 4.969 kB / 490.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.3628, allocations: 10.27 kB / 490.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.3633, allocations: 204.7 kB / 490.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008455/0.3641, allocations: 0.6786 MB / 491.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/0.3647, allocations: 231 kB / 491.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.3649, allocations: 149.7 kB / 491.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002757/0.3652, allocations: 332.9 kB / 492 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.3653, allocations: 32.12 kB / 492 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.673e-06/0.3653, allocations: 0 / 492 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003417/0.3687, allocations: 1.219 MB / 493.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3687, allocations: 53.44 kB / 493.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.3689, allocations: 133.3 kB / 493.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3689, allocations: 34.89 kB / 493.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.163e-05/0.369, allocations: 103.6 kB / 493.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.3691, allocations: 157.4 kB / 493.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.754e-05/0.3692, allocations: 58.53 kB / 493.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3693, allocations: 334 kB / 494.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002592/0.3696, allocations: 124.8 kB / 494.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.3699, allocations: 190.8 kB / 494.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.3705, allocations: 339.9 kB / 494.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3705, allocations: 9.062 kB / 494.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001119/0.3716, allocations: 478.4 kB / 495.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3717, allocations: 5.5 kB / 495.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3717, allocations: 3.453 kB / 495.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.3724, allocations: 144.4 kB / 495.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.3726, allocations: 38.45 kB / 495.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006043/0.3732, allocations: 0.6483 MB / 496.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.3734, allocations: 18.91 kB / 496.1 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3734, allocations: 10.88 kB / 496.1 MB, free: 11.75 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.0001261/0.3735, allocations: 135.4 kB / 496.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.891e-05/0.3736, allocations: 20 kB / 496.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.724e-05/0.3737, allocations: 19.66 kB / 496.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3737, allocations: 12.11 kB / 496.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3737, allocations: 0 / 496.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.3737, allocations: 3.984 kB / 496.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.374, allocations: 300.5 kB / 496.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.374, allocations: 96 / 496.6 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.3743, allocations: 40.03 kB / 496.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003532/0.3746, allocations: 75.17 kB / 496.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.3747, allocations: 5.062 kB / 496.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.376, allocations: 1.559 MB / 498.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.376, allocations: 0 / 498.3 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.3771, allocations: 0.6947 MB / 499 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/0.3772, allocations: 95.11 kB / 499 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/0.3773, allocations: 5.094 kB / 499.1 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.3774, allocations: 12.27 kB / 499.1 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.467e-05/0.3775, allocations: 28.75 kB / 499.1 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3775, allocations: 8.625 kB / 499.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.563e-05/0.3776, allocations: 100.3 kB / 499.2 MB, free: 8.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3776, allocations: 0 / 499.2 MB, free: 8.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.378, allocations: 67.05 kB / 499.3 MB, free: 8.953 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.001562/0.3796, allocations: 1.244 MB / 0.4888 GB, free: 7.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008871/0.3805, allocations: 367.5 kB / 0.4891 GB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3805, allocations: 0 / 0.4891 GB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000721/0.3812, allocations: 313.6 kB / 0.4894 GB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007295/0.3819, allocations: 99.69 kB / 0.4895 GB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.3877, allocations: 2.912 MB / 0.4924 GB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3882, allocations: 0.741 MB / 0.4931 GB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003463/0.3885, allocations: 117.3 kB / 0.4932 GB, free: 4.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.3886, allocations: 51.42 kB / 0.4932 GB, free: 4.023 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3887, allocations: 4 kB / 0.4933 GB, free: 4.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.4194, allocations: 7.889 MB / 0.501 GB, free: 12.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.19, allocations: 0 / 0.501 GB, free: 12.19 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)