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.008397/0.008397, allocations: 98.55 kB / 15.73 MB, free: 6.047 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.001975/0.001975, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1327/0.1327, allocations: 2.761 MB / 293.3 MB, free: 3.527 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 63.89 kB / 405.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2531, allocations: 50.23 MB / 455.7 MB, free: 20.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.007259/0.2603, allocations: 9.005 MB / 464.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005335/0.2657, allocations: 8.571 MB / 473.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.2659, allocations: 1.031 kB / 473.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005293/0.2665, allocations: 166.3 kB / 473.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.2669, allocations: 101.8 kB / 473.5 MB, free: 7.816 MB / 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.004041/0.2709, allocations: 1.461 MB / 475 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003734/0.2713, allocations: 272 kB / 475.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.052e-05/0.2714, allocations: 11.56 kB / 475.3 MB, free: 6.824 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.1193/0.3907, allocations: 12.85 MB / 488.1 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.391, allocations: 89 kB / 488.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.391, allocations: 7.812 kB / 488.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002349/0.3934, allocations: 478.6 kB / 488.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.432e-05/0.3934, allocations: 32.39 kB / 488.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.3936, allocations: 88.72 kB / 488.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0023/0.3959, allocations: 0.508 MB / 489.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3959, allocations: 0 / 489.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3959, allocations: 1.062 kB / 489.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3959, allocations: 0 / 489.3 MB, free: 0.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.001106/0.3971, allocations: 0.5581 MB / 489.9 MB, free: 20 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.3971, allocations: 9 kB / 489.9 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.3972, allocations: 50.7 kB / 489.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004247/0.3977, allocations: 53.89 kB / 490 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.398, allocations: 211.6 kB / 490.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.3981, allocations: 12.81 kB / 490.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.3981, allocations: 12.62 kB / 490.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006355/0.3987, allocations: 246.2 kB / 490.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3988, allocations: 0.7031 kB / 490.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.3988, allocations: 5.094 kB / 490.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.3988, allocations: 10.19 kB / 490.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005742/0.3994, allocations: 200.7 kB / 490.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.4004, allocations: 0.6819 MB / 491.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.4011, allocations: 230.5 kB / 491.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002759/0.4013, allocations: 154.2 kB / 491.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003225/0.4017, allocations: 328.9 kB / 492 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.4017, allocations: 33.61 kB / 492.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.275e-06/0.4017, allocations: 0 / 492.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.003928/0.4057, allocations: 1.211 MB / 493.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.4057, allocations: 66.61 kB / 493.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.4059, allocations: 129.1 kB / 493.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.4059, allocations: 29.7 kB / 493.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.406, allocations: 107.8 kB / 493.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4061, allocations: 170.4 kB / 493.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.4062, allocations: 59.47 kB / 493.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.4064, allocations: 329.5 kB / 494.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.4067, allocations: 128.7 kB / 494.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.407, allocations: 189.4 kB / 494.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000603/0.4076, allocations: 345.8 kB / 494.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4076, allocations: 0 / 494.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001182/0.4088, allocations: 482.6 kB / 495.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4088, allocations: 6.156 kB / 495.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4088, allocations: 5.25 kB / 495.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007386/0.4096, allocations: 139.1 kB / 495.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.4097, allocations: 40.69 kB / 495.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006914/0.4104, allocations: 0.649 MB / 496.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.4106, allocations: 13.62 kB / 496.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.4106, allocations: 12.09 kB / 496.1 MB, free: 11.73 MB / 366.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.0001471/0.4108, allocations: 138.9 kB / 496.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.4109, allocations: 24.14 kB / 496.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.133e-05/0.4109, allocations: 27.95 kB / 496.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.411, allocations: 10.97 kB / 496.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.411, allocations: 5.422 kB / 496.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.411, allocations: 0 / 496.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003734/0.4114, allocations: 295.9 kB / 496.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.4114, allocations: 0 / 496.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.4116, allocations: 36.8 kB / 496.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/0.4119, allocations: 74.09 kB / 496.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.412, allocations: 10.25 kB / 496.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.4135, allocations: 1.554 MB / 498.3 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4135, allocations: 5.094 kB / 498.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001187/0.4147, allocations: 0.6909 MB / 499 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.4147, allocations: 93.88 kB / 499.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.4148, allocations: 9.141 kB / 499.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.4149, allocations: 9.25 kB / 499.1 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.415, allocations: 24.25 kB / 499.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.415, allocations: 12.95 kB / 499.1 MB, free: 9.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.419e-05/0.4151, allocations: 95.34 kB / 499.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4151, allocations: 5.25 kB / 499.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.4155, allocations: 66.66 kB / 499.3 MB, free: 8.926 MB / 366.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.001734/0.4173, allocations: 1.244 MB / 0.4888 GB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008916/0.4182, allocations: 372.2 kB / 0.4892 GB, free: 7.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4182, allocations: 0 / 0.4892 GB, free: 7.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006695/0.4189, allocations: 309 kB / 0.4895 GB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/0.4196, allocations: 100.9 kB / 0.4895 GB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004683/0.4243, allocations: 2.925 MB / 0.4924 GB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.4247, allocations: 0.7371 MB / 0.4931 GB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.4249, allocations: 113.3 kB / 0.4932 GB, free: 4.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.745e-05/0.425, allocations: 59.36 kB / 0.4933 GB, free: 3.969 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.425, allocations: 0 / 0.4933 GB, free: 3.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03726/0.4623, allocations: 7.881 MB / 0.501 GB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.1, allocations: 4.062 kB / 0.501 GB, free: 12.14 MB / 382.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)