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.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.001725/0.001725, allocations: 110.8 kB / 16.45 MB, free: 6.488 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.002023/0.002023, allocations: 216.2 kB / 19.43 MB, free: 3.656 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.475/1.475, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.01225/0.01225, allocations: 2.791 MB / 311.6 MB, free: 1.469 MB / 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.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"}) [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.002061/0.002061, allocations: 67.88 kB / 433.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 54.14 MB / 487.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01156/0.12, allocations: 9.106 MB / 496.8 MB, free: 92 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009039/0.129, allocations: 8.595 MB / 0.4935 GB, free: 7.465 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.1292, allocations: 4 kB / 0.4935 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005453/0.1297, allocations: 155.1 kB / 0.4937 GB, free: 7.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.1301, allocations: 103.3 kB / 0.4938 GB, free: 7.207 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.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.003987/0.1341, allocations: 1.459 MB / 0.4952 GB, free: 5.742 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004391/0.1345, allocations: 270.7 kB / 0.4955 GB, free: 5.477 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.563e-05/0.1346, allocations: 9.688 kB / 0.4955 GB, free: 5.465 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.3403/0.4749, allocations: 12.89 MB / 0.5081 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.4751, allocations: 83.31 kB / 0.5081 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.4751, allocations: 7.531 kB / 0.5081 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00168/0.4768, allocations: 479.4 kB / 0.5086 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.691e-05/0.4769, allocations: 34.02 kB / 0.5086 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.477, allocations: 85.5 kB / 0.5087 GB, free: 9.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00197/0.479, allocations: 0.5085 MB / 0.5092 GB, free: 9.785 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.479, allocations: 0.6562 kB / 0.5092 GB, free: 9.785 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.479, allocations: 4 kB / 0.5092 GB, free: 9.781 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.479, allocations: 1.25 kB / 0.5092 GB, free: 9.781 MB / 366.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.0009065/0.4799, allocations: 0.5597 MB / 0.5098 GB, free: 9.336 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.4799, allocations: 12.64 kB / 0.5098 GB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/0.48, allocations: 51.94 kB / 0.5098 GB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.4803, allocations: 54.36 kB / 0.5099 GB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.4805, allocations: 214.8 kB / 0.5101 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.4806, allocations: 8.5 kB / 0.5101 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.4806, allocations: 18.94 kB / 0.5101 GB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.4811, allocations: 236.1 kB / 0.5103 GB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4811, allocations: 5.125 kB / 0.5103 GB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.4812, allocations: 0.9375 kB / 0.5103 GB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.4812, allocations: 15.25 kB / 0.5104 GB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005323/0.4817, allocations: 197.8 kB / 0.5105 GB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007874/0.4825, allocations: 0.6869 MB / 0.5112 GB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.483, allocations: 205.6 kB / 0.5114 GB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.4832, allocations: 132.2 kB / 0.5115 GB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002221/0.4835, allocations: 333.7 kB / 0.5119 GB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.4835, allocations: 35.73 kB / 0.5119 GB, free: 8.188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.793e-06/0.4835, allocations: 4.656 kB / 0.5119 GB, free: 8.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002802/0.4863, allocations: 1.218 MB / 0.5131 GB, free: 7.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.4863, allocations: 54.47 kB / 0.5131 GB, free: 7.797 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.042e-05/0.4864, allocations: 140.4 kB / 0.5133 GB, free: 7.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4864, allocations: 31.98 kB / 0.5133 GB, free: 7.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.129e-05/0.4865, allocations: 102.1 kB / 0.5134 GB, free: 7.566 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.4866, allocations: 164.8 kB / 0.5136 GB, free: 7.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.4866, allocations: 61.81 kB / 0.5136 GB, free: 7.438 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.82e-05/0.4867, allocations: 332.9 kB / 0.5139 GB, free: 7.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.4869, allocations: 125.4 kB / 0.5141 GB, free: 7.121 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.4872, allocations: 187 kB / 0.5142 GB, free: 7.066 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.4877, allocations: 344.1 kB / 0.5146 GB, free: 6.988 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4877, allocations: 0.625 kB / 0.5146 GB, free: 6.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001253/0.489, allocations: 481.2 kB / 0.515 GB, free: 6.926 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.489, allocations: 6.469 kB / 0.515 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.489, allocations: 1.5 kB / 0.515 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007605/0.4898, allocations: 145.3 kB / 0.5152 GB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.4899, allocations: 36.45 kB / 0.5152 GB, free: 6.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004946/0.4904, allocations: 0.6504 MB / 0.5158 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.4906, allocations: 9.812 kB / 0.5158 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.4906, allocations: 18.11 kB / 0.5159 GB, free: 6.383 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 9.906e-05/0.4907, allocations: 133.7 kB / 0.516 GB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.826e-05/0.4907, allocations: 19.05 kB / 0.516 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.145e-05/0.4908, allocations: 27.84 kB / 0.516 GB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.4908, allocations: 9.172 kB / 0.516 GB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.4908, allocations: 1.281 kB / 0.516 GB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.4908, allocations: 6.109 kB / 0.516 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/0.4911, allocations: 293.5 kB / 0.5163 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4911, allocations: 0 / 0.5163 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001795/0.4913, allocations: 36.3 kB / 0.5164 GB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003576/0.4916, allocations: 71.34 kB / 0.5164 GB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.4917, allocations: 9 kB / 0.5164 GB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009702/0.4926, allocations: 1.559 MB / 0.518 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4926, allocations: 0 / 0.518 GB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.4937, allocations: 0.6977 MB / 0.5186 GB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.4938, allocations: 94.19 kB / 0.5187 GB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.4938, allocations: 10.78 kB / 0.5187 GB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.4939, allocations: 7.078 kB / 0.5187 GB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.924e-05/0.494, allocations: 26.64 kB / 0.5188 GB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.494, allocations: 12.25 kB / 0.5188 GB, free: 4.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.319e-05/0.4941, allocations: 95.11 kB / 0.5189 GB, free: 4.203 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4941, allocations: 0 / 0.5189 GB, free: 4.203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.4945, allocations: 67.16 kB / 0.5189 GB, free: 4.203 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.001504/0.496, allocations: 1.243 MB / 0.5202 GB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000805/0.4968, allocations: 333.4 kB / 0.5205 GB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4968, allocations: 0 / 0.5205 GB, free: 3.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008829/0.4977, allocations: 299.2 kB / 0.5208 GB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.4984, allocations: 97.36 kB / 0.5209 GB, free: 3.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004241/0.5026, allocations: 2.912 MB / 0.5237 GB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.5028, allocations: 0.7394 MB / 0.5244 GB, free: 1.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002502/0.503, allocations: 115 kB / 0.5245 GB, free: 1.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.861e-05/0.5031, allocations: 55.16 kB / 0.5246 GB, free: 1.082 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5031, allocations: 4 kB / 0.5246 GB, free: 1.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03822/0.5413, allocations: 7.934 MB / 0.5323 GB, free: 14.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.07, allocations: 2.578 kB / 0.5323 GB, free: 14.41 MB / 382.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.446823606733233] Failed to read output from testmodel.py, exit status != 0: 13.39348427997902 13.421757734 12.937479772 Calling exit ...