Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",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.005241/0.005241, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001156/0.001156, allocations: 193.4 kB / 16.67 MB, free: 5.93 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01134/0.01134, allocations: 2.784 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 405.4 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08356/0.0848, allocations: 50.23 MB / 455.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04363/0.1285, allocations: 50.72 MB / 0.4945 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2566/0.3851, allocations: 29.09 MB / 0.5229 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006556/0.3858, allocations: 2.531 kB / 0.5229 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.3877, allocations: 0.6126 MB / 0.5235 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006577/0.3943, allocations: 2.254 MB / 0.5257 GB, free: 2.719 MB / 382.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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008185/0.4025, allocations: 2.918 MB / 0.5286 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.404, allocations: 0.9231 MB / 0.5295 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.4041, allocations: 59.58 kB / 0.5295 GB, free: 1.535 MB / 382.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.3179/0.722, allocations: 51.05 MB / 0.5794 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.7227, allocations: 303 kB / 0.5797 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.7229, allocations: 40 kB / 0.5797 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1615/0.8844, allocations: 26.93 MB / 0.606 GB, free: 4.816 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.8847, allocations: 115.3 kB / 0.6061 GB, free: 4.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006234/0.8853, allocations: 335.6 kB / 0.6064 GB, free: 4.445 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007184/0.8925, allocations: 1.854 MB / 0.6083 GB, free: 2.875 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.8925, allocations: 4 kB / 0.6083 GB, free: 2.871 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.8925, allocations: 0 / 0.6083 GB, free: 2.871 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.952e-05/0.8926, allocations: 0 / 0.6083 GB, free: 2.871 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.00166/0.8942, allocations: 1.099 MB / 0.6093 GB, free: 1.727 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.8943, allocations: 12.03 kB / 0.6093 GB, free: 1.715 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.8944, allocations: 119 kB / 0.6095 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002046/0.8965, allocations: 0.4997 MB / 0.6099 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.8985, allocations: 339.4 kB / 0.6103 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.738e-05/0.8986, allocations: 45.88 kB / 0.6103 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.51e-05/0.8987, allocations: 59.94 kB / 0.6104 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.9002, allocations: 0.8646 MB / 0.6112 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.9002, allocations: 7.938 kB / 0.6112 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/0.9003, allocations: 24 kB / 0.6112 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/0.9003, allocations: 35.97 kB / 0.6113 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.9016, allocations: 0.7078 MB / 0.612 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003743/0.9054, allocations: 4.94 MB / 0.6168 GB, free: 9.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.9061, allocations: 357.1 kB / 0.6171 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.9065, allocations: 221.7 kB / 0.6173 GB, free: 8.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00147/0.908, allocations: 1.538 MB / 0.6188 GB, free: 7.113 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.908, allocations: 42.56 kB / 0.6189 GB, free: 7.062 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.204e-06/0.908, allocations: 0 / 0.6189 GB, free: 7.062 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001711/0.9098, allocations: 0.6237 MB / 0.6195 GB, free: 6.434 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.9098, allocations: 81.09 kB / 0.6196 GB, free: 6.336 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.91, allocations: 179.5 kB / 0.6197 GB, free: 6.152 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.9101, allocations: 37.64 kB / 0.6198 GB, free: 6.109 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.9102, allocations: 263.8 kB / 0.62 GB, free: 5.844 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.9104, allocations: 251.9 kB / 0.6203 GB, free: 5.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.9106, allocations: 93.92 kB / 0.6204 GB, free: 5.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.9107, allocations: 342.8 kB / 0.6207 GB, free: 5.156 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.911, allocations: 125.3 kB / 0.6208 GB, free: 5.035 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/0.9114, allocations: 285.5 kB / 0.6211 GB, free: 4.691 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006813/0.9121, allocations: 477.5 kB / 0.6215 GB, free: 4.156 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.9121, allocations: 4 kB / 0.6215 GB, free: 4.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001504/0.9136, allocations: 480.1 kB / 0.622 GB, free: 3.676 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.9136, allocations: 11.94 kB / 0.622 GB, free: 3.664 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.9137, allocations: 4 kB / 0.622 GB, free: 3.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.9137, allocations: 8 kB / 0.622 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.9139, allocations: 63.91 kB / 0.6221 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.914, allocations: 12.41 kB / 0.6221 GB, free: 3.578 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.9142, allocations: 67.27 kB / 0.6222 GB, free: 3.512 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.9142, allocations: 16 kB / 0.6222 GB, free: 3.496 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000221/0.9145, allocations: 189.7 kB / 0.6224 GB, free: 3.301 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.498e-05/0.9145, allocations: 31.56 kB / 0.6224 GB, free: 3.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.793e-05/0.9146, allocations: 29.95 kB / 0.6224 GB, free: 3.246 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.9146, allocations: 0 / 0.6224 GB, free: 3.246 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.9146, allocations: 7.938 kB / 0.6224 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.9147, allocations: 0 / 0.6224 GB, free: 3.238 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/0.9152, allocations: 0.4906 MB / 0.6229 GB, free: 2.703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.9153, allocations: 8 kB / 0.6229 GB, free: 2.695 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.9154, allocations: 35.92 kB / 0.6229 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.9154, allocations: 3.938 kB / 0.6229 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.9155, allocations: 4 kB / 0.6229 GB, free: 2.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.9155, allocations: 4.359 kB / 0.623 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.9155, allocations: 0 / 0.623 GB, free: 2.648 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006815/0.9162, allocations: 0.5305 MB / 0.6235 GB, free: 2.105 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.486e-05/0.9162, allocations: 112.5 kB / 0.6236 GB, free: 1.977 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.9163, allocations: 11.88 kB / 0.6236 GB, free: 1.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.9165, allocations: 15.98 kB / 0.6236 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.9165, allocations: 23.97 kB / 0.6236 GB, free: 1.926 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.241e-05/0.9166, allocations: 8 kB / 0.6236 GB, free: 1.918 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.9167, allocations: 119.2 kB / 0.6237 GB, free: 1.801 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9167, allocations: 0 / 0.6237 GB, free: 1.801 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007005/0.9174, allocations: 199.4 kB / 0.6239 GB, free: 1.605 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * 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: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0014/0.9188, allocations: 1.257 MB / 0.6252 GB, free: 352 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009023/0.9197, allocations: 0.6113 MB / 0.6258 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.9197, allocations: 0 / 0.6258 GB, free: 15.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005234/0.9203, allocations: 0.5119 MB / 0.6263 GB, free: 15.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.9213, allocations: 192.9 kB / 0.6264 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/0.9257, allocations: 3.604 MB / 0.63 GB, free: 11.13 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.9263, allocations: 0.9475 MB / 0.6309 GB, free: 10.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005857/0.9268, allocations: 257.9 kB / 0.6311 GB, free: 9.906 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.9272, allocations: 279.3 kB / 0.6314 GB, free: 9.633 MB / 478.1 MB Notification: Performance of SimCode: time 9.71e-07/0.9272, allocations: 4 kB / 0.6314 GB, free: 9.629 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.039/0.9662, allocations: 18.47 MB / 0.6494 GB, free: 7.164 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.704/9.67, allocations: 19.8 kB / 0.6495 GB, free: 7.145 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)