Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",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.005357/0.005357, allocations: 99.34 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.001324/0.001324, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01201/0.01201, allocations: 2.779 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 63.89 kB / 405.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08203, allocations: 50.24 MB / 455.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.05071/0.1328, allocations: 50.71 MB / 0.4945 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2243/0.3572, allocations: 29.09 MB / 0.5229 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005489/0.3577, allocations: 2.75 kB / 0.5229 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.3599, allocations: 0.6164 MB / 0.5235 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007152/0.3671, allocations: 2.238 MB / 0.5257 GB, free: 2.707 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007949/0.375, allocations: 2.924 MB / 0.5286 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001318/0.3764, allocations: 0.9275 MB / 0.5295 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.3765, allocations: 70.52 kB / 0.5295 GB, free: 1.531 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.4271/0.8036, allocations: 51.03 MB / 0.5794 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007613/0.8043, allocations: 311.8 kB / 0.5797 GB, free: 13.67 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.656e-05/0.8044, allocations: 40 kB / 0.5797 GB, free: 13.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2162/1.021, allocations: 26.92 MB / 0.606 GB, free: 4.812 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/1.021, allocations: 116.5 kB / 0.6061 GB, free: 4.746 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005472/1.021, allocations: 331 kB / 0.6064 GB, free: 4.453 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006434/1.028, allocations: 1.867 MB / 0.6082 GB, free: 2.867 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/1.028, allocations: 0 / 0.6082 GB, free: 2.867 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.52e-07/1.028, allocations: 0 / 0.6082 GB, free: 2.867 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/1.028, allocations: 0 / 0.6082 GB, free: 2.867 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.001552/1.03, allocations: 1.129 MB / 0.6094 GB, free: 1.691 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/1.03, allocations: 8.031 kB / 0.6094 GB, free: 1.684 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/1.03, allocations: 119 kB / 0.6095 GB, free: 1.559 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/1.032, allocations: 0.4961 MB / 0.61 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/1.033, allocations: 335.5 kB / 0.6103 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.96e-05/1.033, allocations: 45.88 kB / 0.6103 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004227/1.034, allocations: 63.94 kB / 0.6104 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/1.035, allocations: 0.8685 MB / 0.6112 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/1.035, allocations: 3.938 kB / 0.6112 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/1.035, allocations: 24 kB / 0.6113 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.846e-05/1.036, allocations: 35.97 kB / 0.6113 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/1.037, allocations: 0.6961 MB / 0.612 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/1.041, allocations: 5.021 MB / 0.6169 GB, free: 9.312 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/1.042, allocations: 321 kB / 0.6172 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/1.042, allocations: 221.6 kB / 0.6174 GB, free: 8.758 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001446/1.044, allocations: 1.536 MB / 0.6189 GB, free: 7.055 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/1.044, allocations: 38.44 kB / 0.6189 GB, free: 7.008 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 1.944e-06/1.044, allocations: 0 / 0.6189 GB, free: 7.008 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001481/1.045, allocations: 0.5932 MB / 0.6195 GB, free: 6.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/1.045, allocations: 81.11 kB / 0.6196 GB, free: 6.312 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/1.045, allocations: 182.8 kB / 0.6198 GB, free: 6.125 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/1.045, allocations: 33.7 kB / 0.6198 GB, free: 6.086 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002063/1.046, allocations: 295.1 kB / 0.6201 GB, free: 5.793 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/1.046, allocations: 243.4 kB / 0.6203 GB, free: 5.559 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/1.046, allocations: 97.95 kB / 0.6204 GB, free: 5.453 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/1.046, allocations: 338.8 kB / 0.6207 GB, free: 5.113 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/1.046, allocations: 117.3 kB / 0.6208 GB, free: 5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/1.047, allocations: 304 kB / 0.6211 GB, free: 4.629 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/1.047, allocations: 484.7 kB / 0.6216 GB, free: 4.078 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/1.047, allocations: 0 / 0.6216 GB, free: 4.078 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007779/1.048, allocations: 492.2 kB / 0.6221 GB, free: 3.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/1.048, allocations: 7.938 kB / 0.6221 GB, free: 3.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/1.048, allocations: 8.719 kB / 0.6221 GB, free: 3.574 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/1.048, allocations: 8 kB / 0.6221 GB, free: 3.566 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/1.048, allocations: 71.91 kB / 0.6221 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/1.048, allocations: 15.92 kB / 0.6222 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/1.049, allocations: 59.45 kB / 0.6222 GB, free: 3.422 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/1.049, allocations: 24 kB / 0.6222 GB, free: 3.398 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * 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.0002259/1.049, allocations: 186.6 kB / 0.6224 GB, free: 3.207 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.228e-05/1.049, allocations: 35.67 kB / 0.6225 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.088e-05/1.049, allocations: 34.64 kB / 0.6225 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/1.049, allocations: 0 / 0.6225 GB, free: 3.141 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.049, allocations: 8 kB / 0.6225 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/1.049, allocations: 0 / 0.6225 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006343/1.05, allocations: 496.5 kB / 0.623 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/1.05, allocations: 0 / 0.623 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/1.05, allocations: 23.98 kB / 0.623 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/1.05, allocations: 3.938 kB / 0.623 GB, free: 2.574 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/1.05, allocations: 15.98 kB / 0.623 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/1.05, allocations: 0 / 0.623 GB, free: 2.559 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.05, allocations: 4 kB / 0.623 GB, free: 2.555 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/1.051, allocations: 0.5061 MB / 0.6235 GB, free: 2.035 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.695e-05/1.051, allocations: 116.7 kB / 0.6236 GB, free: 1.902 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/1.051, allocations: 11.94 kB / 0.6236 GB, free: 1.891 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/1.051, allocations: 0 / 0.6236 GB, free: 1.891 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/1.051, allocations: 19.98 kB / 0.6237 GB, free: 1.871 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/1.051, allocations: 4.188 kB / 0.6237 GB, free: 1.867 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001048/1.051, allocations: 136.2 kB / 0.6238 GB, free: 1.734 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.051, allocations: 3.938 kB / 0.6238 GB, free: 1.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006442/1.052, allocations: 195.5 kB / 0.624 GB, free: 1.539 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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.00139/1.053, allocations: 1.239 MB / 0.6252 GB, free: 308 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009995/1.054, allocations: 0.6059 MB / 0.6258 GB, free: 15.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.054, allocations: 0 / 0.6258 GB, free: 15.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005199/1.055, allocations: 0.4919 MB / 0.6263 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/1.056, allocations: 196.5 kB / 0.6264 GB, free: 14.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/1.06, allocations: 3.624 MB / 0.63 GB, free: 11.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/1.061, allocations: 0.9465 MB / 0.6309 GB, free: 10.09 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005282/1.061, allocations: 257.9 kB / 0.6312 GB, free: 9.844 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/1.062, allocations: 271.3 kB / 0.6314 GB, free: 9.578 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/1.062, allocations: 0 / 0.6314 GB, free: 9.578 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04406/1.106, allocations: 17.96 MB / 0.649 GB, free: 7.621 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.891/9.997, allocations: 3.953 kB / 0.649 GB, free: 7.617 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)