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.007518/0.007518, allocations: 97.61 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.001573/0.001573, allocations: 194 kB / 16.67 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1603/0.1603, allocations: 2.758 MB / 293.3 MB, free: 3.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 405.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2535, allocations: 50.24 MB / 455.7 MB, free: 20.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.008301/0.2618, allocations: 9.005 MB / 464.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006594/0.2684, allocations: 8.565 MB / 473.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.2687, allocations: 0 / 473.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006054/0.2693, allocations: 171.3 kB / 473.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.2697, allocations: 102.6 kB / 473.5 MB, free: 7.711 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.005298/0.275, allocations: 1.46 MB / 475 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.2755, allocations: 267.9 kB / 475.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.798e-05/0.2756, allocations: 21.31 kB / 475.3 MB, free: 6.715 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.09202/0.3676, allocations: 12.85 MB / 488.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.3678, allocations: 84.53 kB / 488.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.3679, allocations: 7.656 kB / 488.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002062/0.37, allocations: 478.5 kB / 488.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.495e-05/0.37, allocations: 32.95 kB / 488.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.3702, allocations: 87.12 kB / 488.8 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.3715, allocations: 0.5104 MB / 489.3 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3715, allocations: 0 / 489.3 MB, free: 412 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3715, allocations: 4.906 kB / 489.3 MB, free: 408 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.3715, allocations: 0 / 489.3 MB, free: 408 kB / 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.0008158/0.3723, allocations: 0.5503 MB / 489.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.3724, allocations: 9.094 kB / 489.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.804e-05/0.3725, allocations: 54.45 kB / 489.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.3728, allocations: 54.92 kB / 490 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.3731, allocations: 219.3 kB / 490.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.3731, allocations: 12.69 kB / 490.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.3732, allocations: 12.45 kB / 490.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005499/0.3737, allocations: 241.2 kB / 490.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3737, allocations: 1.906 kB / 490.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.3738, allocations: 8.969 kB / 490.4 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3738, allocations: 6.172 kB / 490.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005375/0.3743, allocations: 204.6 kB / 490.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008741/0.3752, allocations: 0.6784 MB / 491.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000564/0.3758, allocations: 226.8 kB / 491.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.3761, allocations: 157.9 kB / 491.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002779/0.3764, allocations: 324.3 kB / 492 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3764, allocations: 38.58 kB / 492.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.794e-06/0.3764, allocations: 0 / 492.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002923/0.3793, allocations: 1.218 MB / 493.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.3794, allocations: 52.78 kB / 493.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3795, allocations: 133.9 kB / 493.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.3796, allocations: 32.83 kB / 493.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/0.3796, allocations: 105.8 kB / 493.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.3798, allocations: 167.3 kB / 493.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.58e-05/0.3799, allocations: 61.89 kB / 493.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.001011/0.3809, allocations: 333.8 kB / 494.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002734/0.3812, allocations: 124.7 kB / 494.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.3815, allocations: 193.9 kB / 494.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.3821, allocations: 342.1 kB / 494.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3821, allocations: 4 kB / 494.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001201/0.3833, allocations: 485.6 kB / 495.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3833, allocations: 7.375 kB / 495.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3833, allocations: 1.625 kB / 495.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007735/0.3841, allocations: 140 kB / 495.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.3843, allocations: 38.91 kB / 495.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006227/0.3849, allocations: 0.6474 MB / 496.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.3851, allocations: 17.3 kB / 496.1 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3851, allocations: 7.984 kB / 496.1 MB, free: 11.7 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.0001306/0.3853, allocations: 135.7 kB / 496.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.3853, allocations: 24.98 kB / 496.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.528e-05/0.3854, allocations: 24.38 kB / 496.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.3854, allocations: 9.953 kB / 496.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.3854, allocations: 1.594 kB / 496.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3854, allocations: 5.312 kB / 496.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/0.3858, allocations: 294.5 kB / 496.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3858, allocations: 0 / 496.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.386, allocations: 36.83 kB / 496.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003617/0.3864, allocations: 73.53 kB / 496.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.3864, allocations: 10.75 kB / 496.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.3877, allocations: 1.55 MB / 498.3 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3878, allocations: 5.047 kB / 498.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.389, allocations: 0.6982 MB / 499 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.688e-05/0.389, allocations: 98.02 kB / 499.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.3891, allocations: 5.156 kB / 499.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3892, allocations: 5.281 kB / 499.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.3893, allocations: 28.84 kB / 499.1 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.3894, allocations: 17.33 kB / 499.1 MB, free: 9.004 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.929e-05/0.3894, allocations: 98.36 kB / 499.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3894, allocations: 3.938 kB / 499.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003976/0.3898, allocations: 66.81 kB / 499.3 MB, free: 8.902 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.001638/0.3915, allocations: 1.234 MB / 0.4888 GB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009001/0.3924, allocations: 375.1 kB / 0.4892 GB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.3924, allocations: 1.156 kB / 0.4892 GB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.3931, allocations: 309.2 kB / 0.4895 GB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.3938, allocations: 107.8 kB / 0.4896 GB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004718/0.3985, allocations: 2.927 MB / 0.4924 GB, free: 4.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3989, allocations: 0.7371 MB / 0.4931 GB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002585/0.3992, allocations: 109.3 kB / 0.4932 GB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3993, allocations: 59.36 kB / 0.4933 GB, free: 3.953 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3993, allocations: 0 / 0.4933 GB, free: 3.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03227/0.4316, allocations: 7.877 MB / 0.501 GB, free: 12.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.55, allocations: 3.984 kB / 0.501 GB, free: 12.13 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)