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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 209 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01507/0.01507, allocations: 2.818 MB / 315.2 MB, free: 60 kB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 71.89 kB / 438.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09959, allocations: 54.18 MB / 492.8 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.265/0.3646, allocations: 45.37 MB / 0.5256 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02677/0.3913, allocations: 25.15 MB / 0.5502 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006222/0.392, allocations: 3 kB / 0.5502 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.3936, allocations: 0.5052 MB / 0.5506 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0071/0.4007, allocations: 2.173 MB / 0.5528 GB, free: 10.77 MB / 398.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.009145/0.4098, allocations: 2.895 MB / 0.5556 GB, free: 8.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.4111, allocations: 0.9364 MB / 0.5565 GB, free: 7.887 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.928e-05/0.4112, allocations: 30.16 kB / 0.5565 GB, free: 7.867 MB / 398.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.4576/0.8688, allocations: 51.34 MB / 0.6067 GB, free: 6.25 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000703/0.8695, allocations: 282.7 kB / 0.607 GB, free: 5.973 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.8696, allocations: 40 kB / 0.607 GB, free: 5.934 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2441/1.114, allocations: 27.07 MB / 0.6334 GB, free: 10.68 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002449/1.114, allocations: 119.4 kB / 0.6335 GB, free: 10.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006342/1.115, allocations: 266.8 kB / 0.6338 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006944/1.122, allocations: 1.862 MB / 0.6356 GB, free: 8.438 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/1.122, allocations: 4 kB / 0.6356 GB, free: 8.434 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/1.122, allocations: 0 / 0.6356 GB, free: 8.434 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.511e-05/1.122, allocations: 0 / 0.6356 GB, free: 8.434 MB / 478.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.002149/1.124, allocations: 1.045 MB / 0.6366 GB, free: 7.355 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/1.124, allocations: 12.03 kB / 0.6366 GB, free: 7.344 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001661/1.124, allocations: 119 kB / 0.6368 GB, free: 7.219 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002143/1.126, allocations: 0.4961 MB / 0.6372 GB, free: 6.723 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002325/1.128, allocations: 277.7 kB / 0.6375 GB, free: 6.426 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.931e-05/1.129, allocations: 49.88 kB / 0.6376 GB, free: 6.379 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/1.129, allocations: 59.94 kB / 0.6376 GB, free: 6.32 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/1.131, allocations: 0.9731 MB / 0.6386 GB, free: 5.27 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/1.131, allocations: 11.98 kB / 0.6386 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.194e-05/1.131, allocations: 24 kB / 0.6386 GB, free: 5.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.511e-05/1.131, allocations: 35.92 kB / 0.6386 GB, free: 5.199 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/1.132, allocations: 0.7123 MB / 0.6393 GB, free: 4.492 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004688/1.137, allocations: 2.772 MB / 0.642 GB, free: 1.625 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/1.138, allocations: 261.1 kB / 0.6423 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/1.138, allocations: 149.7 kB / 0.6424 GB, free: 1.199 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/1.139, allocations: 0.8843 MB / 0.6433 GB, free: 300 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/1.139, allocations: 34.55 kB / 0.6433 GB, free: 256 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 2.325e-06/1.139, allocations: 0 / 0.6433 GB, free: 256 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001654/1.141, allocations: 0.6012 MB / 0.6439 GB, free: 15.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/1.141, allocations: 81.11 kB / 0.644 GB, free: 15.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/1.141, allocations: 190.5 kB / 0.6442 GB, free: 15.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/1.141, allocations: 37.64 kB / 0.6442 GB, free: 15.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/1.142, allocations: 292.4 kB / 0.6445 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/1.142, allocations: 245.7 kB / 0.6447 GB, free: 14.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/1.142, allocations: 97.95 kB / 0.6448 GB, free: 14.67 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/1.142, allocations: 342.8 kB / 0.6451 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/1.142, allocations: 117.3 kB / 0.6452 GB, free: 14.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/1.143, allocations: 304 kB / 0.6455 GB, free: 13.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000728/1.144, allocations: 476.9 kB / 0.646 GB, free: 13.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/1.144, allocations: 0 / 0.646 GB, free: 13.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008631/1.145, allocations: 492.6 kB / 0.6465 GB, free: 12.81 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/1.145, allocations: 16.02 kB / 0.6465 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/1.145, allocations: 7.938 kB / 0.6465 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/1.145, allocations: 8 kB / 0.6465 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/1.145, allocations: 71.84 kB / 0.6466 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/1.145, allocations: 7.938 kB / 0.6466 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/1.145, allocations: 67.88 kB / 0.6466 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/1.145, allocations: 24 kB / 0.6467 GB, free: 12.61 MB / 494.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.0002799/1.145, allocations: 189.7 kB / 0.6468 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/1.146, allocations: 31.75 kB / 0.6469 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.171e-05/1.146, allocations: 26.66 kB / 0.6469 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/1.146, allocations: 7.984 kB / 0.6469 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.146, allocations: 0 / 0.6469 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.146, allocations: 3.984 kB / 0.6469 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006856/1.146, allocations: 432 kB / 0.6473 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/1.146, allocations: 0 / 0.6473 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/1.146, allocations: 35.86 kB / 0.6474 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/1.146, allocations: 7.938 kB / 0.6474 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/1.146, allocations: 4 kB / 0.6474 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/1.146, allocations: 4 kB / 0.6474 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.146, allocations: 0 / 0.6474 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007254/1.147, allocations: 0.5023 MB / 0.6479 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/1.147, allocations: 43.62 kB / 0.6479 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/1.147, allocations: 3.938 kB / 0.6479 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/1.147, allocations: 8 kB / 0.6479 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.54e-05/1.148, allocations: 19.91 kB / 0.6479 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/1.148, allocations: 16 kB / 0.6479 GB, free: 11.22 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001102/1.148, allocations: 115.2 kB / 0.6481 GB, free: 11.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.148, allocations: 0 / 0.6481 GB, free: 11.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007263/1.148, allocations: 199.5 kB / 0.6482 GB, free: 10.91 MB / 494.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.00158/1.15, allocations: 1.244 MB / 0.6495 GB, free: 9.633 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009063/1.151, allocations: 0.5599 MB / 0.65 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.151, allocations: 0 / 0.65 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005525/1.151, allocations: 464.4 kB / 0.6504 GB, free: 8.527 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/1.153, allocations: 193 kB / 0.6506 GB, free: 8.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005325/1.158, allocations: 3.638 MB / 0.6542 GB, free: 4.469 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005223/1.158, allocations: 356.7 kB / 0.6545 GB, free: 4.09 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000687/1.159, allocations: 257.9 kB / 0.6548 GB, free: 3.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003949/1.16, allocations: 271.3 kB / 0.655 GB, free: 3.574 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/1.16, allocations: 0 / 0.655 GB, free: 3.574 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05598/1.215, allocations: 18.98 MB / 0.6736 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.88, allocations: 7.984 kB / 0.6736 GB, free: 0.6328 MB / 0.4981 GB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit_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_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.404444016050547] Failed to read output from testmodel.py, exit status != 0: 13.218040285166353 13.251086496 12.123639734 Calling exit ...