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.001105/0.001105, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 197 kB / 16.53 MB, free: 6.664 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1097/0.1097, allocations: 2.765 MB / 293.1 MB, free: 3.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002084/0.002085, allocations: 71.89 kB / 354.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.1013, allocations: 50.22 MB / 404.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.009785/0.1111, allocations: 9.008 MB / 413.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00718/0.1183, allocations: 8.571 MB / 422.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.1185, allocations: 0 / 422.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005204/0.1191, allocations: 163 kB / 422.5 MB, free: 208 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003528/0.1195, allocations: 103.3 kB / 422.6 MB, free: 104 kB / 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.1617/0.2812, allocations: 1.45 MB / 424 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.2816, allocations: 266.8 kB / 424.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.86e-05/0.2817, allocations: 13.38 kB / 424.3 MB, free: 36.17 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.08945/0.3711, allocations: 12.74 MB / 437 MB, free: 31.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.3714, allocations: 91.61 kB / 437.1 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.3714, allocations: 6.281 kB / 437.1 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.3733, allocations: 472.5 kB / 437.6 MB, free: 31.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-05/0.3733, allocations: 34.33 kB / 437.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.3735, allocations: 85.31 kB / 437.7 MB, free: 31.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001925/0.3754, allocations: 0.5038 MB / 438.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3754, allocations: 4 kB / 438.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3755, allocations: 0 / 438.2 MB, free: 31.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.3755, allocations: 0 / 438.2 MB, free: 31.5 MB / 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.001014/0.3765, allocations: 0.5638 MB / 438.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.3765, allocations: 9.406 kB / 438.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.964e-05/0.3766, allocations: 48.11 kB / 438.8 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.377, allocations: 59.42 kB / 438.9 MB, free: 31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.3772, allocations: 212.7 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.3772, allocations: 7.281 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.3773, allocations: 17.41 kB / 439.1 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.3777, allocations: 236.5 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3777, allocations: 0 / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.3778, allocations: 10.06 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.3778, allocations: 14.3 kB / 439.4 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.3782, allocations: 196.3 kB / 439.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007378/0.379, allocations: 0.6807 MB / 440.3 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.3795, allocations: 232.4 kB / 440.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.3797, allocations: 150.4 kB / 440.6 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/0.38, allocations: 329.8 kB / 441 MB, free: 29.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.38, allocations: 37.34 kB / 441 MB, free: 29.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.683e-06/0.38, allocations: 0 / 441 MB, free: 29.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002573/0.3826, allocations: 1.219 MB / 442.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.3826, allocations: 54.66 kB / 442.3 MB, free: 29.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.663e-05/0.3827, allocations: 130 kB / 442.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.3827, allocations: 25.7 kB / 442.4 MB, free: 29.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.293e-05/0.3828, allocations: 123.3 kB / 442.5 MB, free: 29.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.3828, allocations: 146.1 kB / 442.7 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.3829, allocations: 63.36 kB / 442.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.383, allocations: 327.6 kB / 443.1 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.3832, allocations: 128 kB / 443.2 MB, free: 28.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.3834, allocations: 189.1 kB / 443.4 MB, free: 28.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004583/0.3839, allocations: 355 kB / 443.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3839, allocations: 0 / 443.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001006/0.3849, allocations: 478.2 kB / 444.2 MB, free: 28.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3849, allocations: 6.562 kB / 444.2 MB, free: 28.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.385, allocations: 0 / 444.2 MB, free: 28.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006866/0.3857, allocations: 148.9 kB / 444.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3858, allocations: 40.58 kB / 444.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004732/0.3863, allocations: 0.6507 MB / 445 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.3865, allocations: 13.7 kB / 445 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.3865, allocations: 10 kB / 445.1 MB, free: 28.11 MB / 350.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.0001002/0.3866, allocations: 134.5 kB / 445.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.3867, allocations: 20.75 kB / 445.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.267e-05/0.3867, allocations: 25.09 kB / 445.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.3868, allocations: 10.7 kB / 445.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3868, allocations: 3.094 kB / 445.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3868, allocations: 3 kB / 445.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.387, allocations: 293.2 kB / 445.5 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3871, allocations: 0 / 445.5 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.3872, allocations: 40.5 kB / 445.6 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003387/0.3876, allocations: 66.92 kB / 445.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.3876, allocations: 10.78 kB / 445.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009697/0.3886, allocations: 1.556 MB / 447.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3886, allocations: 0 / 447.2 MB, free: 26.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009502/0.3896, allocations: 0.6974 MB / 447.9 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.3896, allocations: 98.62 kB / 448 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.3897, allocations: 5.719 kB / 448 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3898, allocations: 5.781 kB / 448 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.819e-05/0.3899, allocations: 25.98 kB / 448 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.3899, allocations: 9.625 kB / 448 MB, free: 26.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.39, allocations: 101.9 kB / 448.1 MB, free: 25.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.39, allocations: 0 / 448.1 MB, free: 25.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003638/0.3903, allocations: 64.73 kB / 448.2 MB, free: 25.93 MB / 350.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.001351/0.3917, allocations: 1.248 MB / 449.5 MB, free: 25.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000763/0.3925, allocations: 384.1 kB / 449.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3925, allocations: 0 / 449.8 MB, free: 25.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005419/0.393, allocations: 306.5 kB / 450.1 MB, free: 24.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006345/0.3937, allocations: 99.06 kB / 450.2 MB, free: 24.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.3976, allocations: 2.883 MB / 453.1 MB, free: 22.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.3978, allocations: 0.7465 MB / 453.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000235/0.398, allocations: 112.3 kB / 454 MB, free: 22.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.717e-05/0.3981, allocations: 55.66 kB / 454 MB, free: 22.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3981, allocations: 0 / 454 MB, free: 22.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.4265, allocations: 7.768 MB / 461.8 MB, free: 21.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12, allocations: 12.86 kB / 461.8 MB, free: 21.22 MB / 350.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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1)