Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.006202/0.006202, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001379/0.001379, allocations: 193.5 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01172/0.01172, allocations: 2.784 MB / 293.3 MB, free: 11.98 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.89 kB / 405.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09833, allocations: 50.22 MB / 455.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.05464/0.153, allocations: 50.76 MB / 0.4945 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2624/0.4155, allocations: 29.09 MB / 0.523 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005176/0.4161, allocations: 5.875 kB / 0.523 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00159/0.4177, allocations: 0.6187 MB / 0.5236 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006996/0.4247, allocations: 2.253 MB / 0.5258 GB, free: 2.742 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008408/0.4331, allocations: 2.924 MB / 0.5286 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001308/0.4344, allocations: 0.9283 MB / 0.5295 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001284/0.4346, allocations: 66.78 kB / 0.5296 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.3296/0.7642, allocations: 51.05 MB / 0.5794 GB, free: 13.92 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008776/0.7651, allocations: 306 kB / 0.5797 GB, free: 13.69 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.605e-05/0.7652, allocations: 40 kB / 0.5798 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1719/0.9372, allocations: 26.93 MB / 0.6061 GB, free: 4.816 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.9374, allocations: 108.8 kB / 0.6062 GB, free: 4.758 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.938, allocations: 343.9 kB / 0.6065 GB, free: 4.449 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007042/0.9451, allocations: 1.868 MB / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.9451, allocations: 0 / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.9451, allocations: 0 / 0.6083 GB, free: 2.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.9451, allocations: 0 / 0.6083 GB, free: 2.863 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.001621/0.9468, allocations: 1.13 MB / 0.6094 GB, free: 1.688 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.9468, allocations: 12.03 kB / 0.6095 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.947, allocations: 115.1 kB / 0.6096 GB, free: 1.555 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/0.9491, allocations: 0.5 MB / 0.6101 GB, free: 1.055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/0.9515, allocations: 339.5 kB / 0.6104 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.47e-05/0.9516, allocations: 49.88 kB / 0.6104 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.243e-05/0.9517, allocations: 55.94 kB / 0.6105 GB, free: 0.582 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.9532, allocations: 0.8723 MB / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.9533, allocations: 4 kB / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.123e-05/0.9533, allocations: 20 kB / 0.6114 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.9534, allocations: 31.98 kB / 0.6114 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.9546, allocations: 0.7078 MB / 0.6121 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/0.9589, allocations: 5.131 MB / 0.6171 GB, free: 9.164 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.9596, allocations: 329.1 kB / 0.6174 GB, free: 8.824 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.9599, allocations: 225.6 kB / 0.6176 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001255/0.9611, allocations: 1.53 MB / 0.6191 GB, free: 6.898 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.9612, allocations: 42.5 kB / 0.6191 GB, free: 6.848 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.184e-06/0.9612, allocations: 0 / 0.6191 GB, free: 6.848 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001481/0.9627, allocations: 0.603 MB / 0.6197 GB, free: 6.242 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.9627, allocations: 81.11 kB / 0.6198 GB, free: 6.145 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.9629, allocations: 186.7 kB / 0.62 GB, free: 5.953 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.9629, allocations: 29.7 kB / 0.62 GB, free: 5.918 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.9631, allocations: 299.9 kB / 0.6203 GB, free: 5.621 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.9633, allocations: 237.3 kB / 0.6205 GB, free: 5.391 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.9634, allocations: 97.95 kB / 0.6206 GB, free: 5.285 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.9635, allocations: 342.8 kB / 0.621 GB, free: 4.941 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.9638, allocations: 125.3 kB / 0.6211 GB, free: 4.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003208/0.9641, allocations: 292 kB / 0.6213 GB, free: 4.461 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.9647, allocations: 496.7 kB / 0.6218 GB, free: 3.898 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.9647, allocations: 4 kB / 0.6218 GB, free: 3.895 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007489/0.9654, allocations: 488.9 kB / 0.6223 GB, free: 3.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.9655, allocations: 16.16 kB / 0.6223 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.9655, allocations: 4 kB / 0.6223 GB, free: 3.391 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.9655, allocations: 11.94 kB / 0.6223 GB, free: 3.379 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.9659, allocations: 83.89 kB / 0.6224 GB, free: 3.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000578/0.9665, allocations: 1.188 MB / 0.6236 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.9667, allocations: 55.52 kB / 0.6236 GB, free: 2.008 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.9668, allocations: 24 kB / 0.6236 GB, free: 1.984 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.967, allocations: 190.6 kB / 0.6238 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.272e-05/0.9671, allocations: 27.81 kB / 0.6238 GB, free: 1.762 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.992e-05/0.9671, allocations: 30.64 kB / 0.6239 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.9671, allocations: 0 / 0.6239 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.9672, allocations: 12.03 kB / 0.6239 GB, free: 1.723 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.9672, allocations: 11.86 kB / 0.6239 GB, free: 1.711 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005493/0.9677, allocations: 0.4942 MB / 0.6244 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9677, allocations: 0 / 0.6244 GB, free: 1.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.9679, allocations: 35.97 kB / 0.6244 GB, free: 1.137 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.9679, allocations: 4 kB / 0.6244 GB, free: 1.133 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.968, allocations: 8 kB / 0.6244 GB, free: 1.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005362/0.9685, allocations: 1.172 MB / 0.6256 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.9685, allocations: 0 / 0.6256 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00061/0.9691, allocations: 0.5061 MB / 0.6261 GB, free: 15.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.9692, allocations: 120.9 kB / 0.6262 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.9693, allocations: 4 kB / 0.6262 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.9695, allocations: 11.92 kB / 0.6262 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.9695, allocations: 15.98 kB / 0.6262 GB, free: 15.22 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.9696, allocations: 8 kB / 0.6262 GB, free: 15.21 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.231e-05/0.9696, allocations: 128.2 kB / 0.6263 GB, free: 15.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9697, allocations: 0 / 0.6263 GB, free: 15.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0006846/0.9704, allocations: 195.5 kB / 0.6265 GB, free: 14.89 MB / 478.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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/0.9716, allocations: 1.244 MB / 0.6277 GB, free: 13.65 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0009249/0.9726, allocations: 0.6261 MB / 0.6284 GB, free: 13 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9726, allocations: 0.75 kB / 0.6284 GB, free: 13 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005862/0.9732, allocations: 0.5157 MB / 0.6289 GB, free: 12.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.9743, allocations: 188.4 kB / 0.629 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004134/0.9784, allocations: 3.675 MB / 0.6326 GB, free: 8.336 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.979, allocations: 0.9504 MB / 0.6336 GB, free: 7.355 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004352/0.9794, allocations: 211.9 kB / 0.6338 GB, free: 7.148 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.9797, allocations: 275.3 kB / 0.634 GB, free: 6.879 MB / 478.1 MB Notification: Performance of SimCode: time 4.91e-07/0.9797, allocations: 0 / 0.634 GB, free: 6.879 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03984/1.02, allocations: 18.33 MB / 0.6519 GB, free: 4.559 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.78, allocations: 10.77 kB / 0.6519 GB, free: 4.551 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1)