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.001528/0.001528, 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.002022/0.002022, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.335/1.335, 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.1114/0.1114, allocations: 2.764 MB / 293.2 MB, free: 3.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 71.89 kB / 354.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08856/0.08981, allocations: 50.22 MB / 404.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.1881/0.2779, allocations: 50.73 MB / 455.5 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.2954, allocations: 29.11 MB / 484.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008635/0.2963, allocations: 7.281 kB / 484.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002009/0.2984, allocations: 0.6184 MB / 485.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006247/0.3047, allocations: 2.242 MB / 487.4 MB, free: 13.73 MB / 366.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.007439/0.3121, allocations: 2.923 MB / 490.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00113/0.3133, allocations: 0.9365 MB / 491.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3134, allocations: 55.92 kB / 491.4 MB, free: 11.46 MB / 366.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.3256/0.639, allocations: 50.61 MB / 0.5293 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000739/0.6397, allocations: 298.6 kB / 0.5295 GB, free: 8.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.8e-05/0.6399, allocations: 43.94 kB / 0.5296 GB, free: 8.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1604/0.8002, allocations: 26.72 MB / 0.5557 GB, free: 13.4 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002283/0.8005, allocations: 111.4 kB / 0.5558 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005504/0.801, allocations: 338.4 kB / 0.5561 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007176/0.8082, allocations: 1.836 MB / 0.5579 GB, free: 11.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.8083, allocations: 0 / 0.5579 GB, free: 11.12 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.8083, allocations: 3.938 kB / 0.5579 GB, free: 11.12 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.8083, allocations: 0 / 0.5579 GB, free: 11.12 MB / 430.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.001505/0.8098, allocations: 1.112 MB / 0.559 GB, free: 9.961 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.8099, allocations: 16.02 kB / 0.559 GB, free: 9.945 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.81, allocations: 115.1 kB / 0.5591 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001991/0.812, allocations: 0.4957 MB / 0.5596 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003965/0.8124, allocations: 339.5 kB / 0.5599 GB, free: 8.957 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.13e-05/0.8124, allocations: 45.88 kB / 0.56 GB, free: 8.914 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.756e-05/0.8125, allocations: 55.94 kB / 0.56 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.8139, allocations: 0.8685 MB / 0.5609 GB, free: 7.945 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.814, allocations: 3.938 kB / 0.5609 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-05/0.814, allocations: 28 kB / 0.5609 GB, free: 7.914 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.8141, allocations: 31.98 kB / 0.5609 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.8154, allocations: 0.7 MB / 0.5616 GB, free: 7.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004046/0.8194, allocations: 5.159 MB / 0.5667 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.8201, allocations: 329.7 kB / 0.567 GB, free: 1.059 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.8204, allocations: 225.5 kB / 0.5672 GB, free: 0.832 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001344/0.8218, allocations: 1.543 MB / 0.5687 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.8218, allocations: 34.56 kB / 0.5687 GB, free: 15.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 2.054e-06/0.8218, allocations: 4 kB / 0.5687 GB, free: 15.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.003137/0.825, allocations: 0.5963 MB / 0.5693 GB, free: 14.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.825, allocations: 85.05 kB / 0.5694 GB, free: 14.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.8252, allocations: 190.7 kB / 0.5696 GB, free: 14.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.8253, allocations: 25.7 kB / 0.5696 GB, free: 14.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.8254, allocations: 291.4 kB / 0.5699 GB, free: 13.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.8256, allocations: 240.4 kB / 0.5701 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.8257, allocations: 97.91 kB / 0.5702 GB, free: 13.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.8258, allocations: 338.8 kB / 0.5705 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.8261, allocations: 117.3 kB / 0.5706 GB, free: 13.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.8264, allocations: 304 kB / 0.5709 GB, free: 12.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006529/0.8271, allocations: 496.5 kB / 0.5714 GB, free: 12.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.8271, allocations: 0 / 0.5714 GB, free: 12.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007509/0.8278, allocations: 480.7 kB / 0.5719 GB, free: 11.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.8279, allocations: 15.88 kB / 0.5719 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.8279, allocations: 4 kB / 0.5719 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.8279, allocations: 8 kB / 0.5719 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003473/0.8282, allocations: 83.89 kB / 0.572 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000611/0.8289, allocations: 1.176 MB / 0.5731 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.8292, allocations: 67.45 kB / 0.5732 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/0.8292, allocations: 20 kB / 0.5732 GB, free: 10.23 MB / 446.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.0002231/0.8294, allocations: 196.1 kB / 0.5734 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.833e-05/0.8295, allocations: 27.81 kB / 0.5734 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.8296, allocations: 30.64 kB / 0.5734 GB, free: 9.969 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.8296, allocations: 4 kB / 0.5734 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.8296, allocations: 3.938 kB / 0.5734 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.8296, allocations: 3.938 kB / 0.5735 GB, free: 9.957 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005766/0.8302, allocations: 0.4906 MB / 0.5739 GB, free: 9.418 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.8302, allocations: 4 kB / 0.5739 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.8304, allocations: 39.92 kB / 0.574 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.8304, allocations: 3.984 kB / 0.574 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.8309, allocations: 8 kB / 0.574 GB, free: 9.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005276/0.8314, allocations: 1.164 MB / 0.5751 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.8315, allocations: 3.938 kB / 0.5751 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006115/0.8321, allocations: 0.5254 MB / 0.5756 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.358e-05/0.8322, allocations: 108.6 kB / 0.5757 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.8322, allocations: 0 / 0.5757 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.8324, allocations: 8 kB / 0.5757 GB, free: 7.473 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.8324, allocations: 19.97 kB / 0.5758 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.8325, allocations: 8 kB / 0.5758 GB, free: 7.445 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.633e-05/0.8325, allocations: 123.2 kB / 0.5759 GB, free: 7.324 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8326, allocations: 0 / 0.5759 GB, free: 7.324 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006534/0.8332, allocations: 195.4 kB / 0.5761 GB, free: 7.133 MB / 446.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.001241/0.8345, allocations: 1.252 MB / 0.5773 GB, free: 5.848 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0009478/0.8354, allocations: 0.6271 MB / 0.5779 GB, free: 5.203 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8354, allocations: 0 / 0.5779 GB, free: 5.203 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005905/0.836, allocations: 0.5078 MB / 0.5784 GB, free: 4.625 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.8372, allocations: 192.7 kB / 0.5786 GB, free: 4.438 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004152/0.8414, allocations: 3.603 MB / 0.5821 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1454/0.9868, allocations: 0.9497 MB / 0.583 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005818/0.9874, allocations: 214.5 kB / 0.5832 GB, free: 142.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/0.9877, allocations: 270.2 kB / 0.5835 GB, free: 142.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9877, allocations: 3.688 kB / 0.5835 GB, free: 142.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0379/1.026, allocations: 17.78 MB / 0.6009 GB, free: 141 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.57, allocations: 7.953 kB / 0.6009 GB, free: 141 MB / 446.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)