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.00181/0.00181, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002126/0.002126, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.486/1.486, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.01171/0.01171, allocations: 2.798 MB / 312.3 MB, free: 2.348 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="cs",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.001966/0.001966, allocations: 70.38 kB / 434.3 MB, free: 39.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.09114, allocations: 54.12 MB / 488.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.008168/0.09931, allocations: 9.1 MB / 497.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005539/0.1048, allocations: 8.599 MB / 0.4942 GB, free: 14.63 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.105, allocations: 3.938 kB / 0.4942 GB, free: 14.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005663/0.1056, allocations: 159.1 kB / 0.4944 GB, free: 14.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003657/0.1059, allocations: 103.3 kB / 0.4945 GB, free: 14.37 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.004859/0.1108, allocations: 1.448 MB / 0.4959 GB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005469/0.1113, allocations: 274.7 kB / 0.4961 GB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.33e-05/0.1114, allocations: 9.672 kB / 0.4962 GB, free: 12.63 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.1251/0.2365, allocations: 12.9 MB / 0.5088 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002603/0.2368, allocations: 83.62 kB / 0.5088 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.604e-05/0.2368, allocations: 8 kB / 0.5088 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002094/0.2389, allocations: 475.9 kB / 0.5093 GB, free: 308 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.721e-05/0.239, allocations: 31.84 kB / 0.5093 GB, free: 276 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.2391, allocations: 91.53 kB / 0.5094 GB, free: 184 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002027/0.2412, allocations: 0.5063 MB / 0.5099 GB, free: 15.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2412, allocations: 0 / 0.5099 GB, free: 15.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2412, allocations: 4 kB / 0.5099 GB, free: 15.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.699e-06/0.2412, allocations: 0 / 0.5099 GB, free: 15.67 MB / 382.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.001187/0.2424, allocations: 0.5642 MB / 0.5105 GB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.2424, allocations: 15.98 kB / 0.5105 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.198e-05/0.2424, allocations: 4.188 kB / 0.5105 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/0.2425, allocations: 46.73 kB / 0.5105 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003934/0.2429, allocations: 60.8 kB / 0.5106 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.2432, allocations: 208.1 kB / 0.5108 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.2432, allocations: 11.94 kB / 0.5108 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.2433, allocations: 12 kB / 0.5108 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006334/0.2439, allocations: 247.1 kB / 0.511 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2439, allocations: 0 / 0.511 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.2439, allocations: 8 kB / 0.5111 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.244, allocations: 11.92 kB / 0.5111 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005487/0.2445, allocations: 200.2 kB / 0.5113 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.2456, allocations: 0.6862 MB / 0.5119 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005872/0.2462, allocations: 206.5 kB / 0.5121 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.2465, allocations: 128.8 kB / 0.5122 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003648/0.2468, allocations: 331.2 kB / 0.5126 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.2469, allocations: 34.5 kB / 0.5126 GB, free: 12.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 1.883e-06/0.2469, allocations: 4 kB / 0.5126 GB, free: 12.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003114/0.25, allocations: 1.218 MB / 0.5138 GB, free: 11.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.25, allocations: 55.41 kB / 0.5138 GB, free: 11.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.2502, allocations: 129.8 kB / 0.514 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.2502, allocations: 33.7 kB / 0.514 GB, free: 11.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.729e-05/0.2503, allocations: 108.9 kB / 0.5141 GB, free: 11.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.2505, allocations: 162.6 kB / 0.5143 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.2506, allocations: 57.69 kB / 0.5143 GB, free: 10.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.2508, allocations: 338.8 kB / 0.5146 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.2511, allocations: 128.4 kB / 0.5148 GB, free: 10.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003144/0.2514, allocations: 185.3 kB / 0.5149 GB, free: 10.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006331/0.252, allocations: 336.9 kB / 0.5153 GB, free: 9.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.252, allocations: 0 / 0.5153 GB, free: 9.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00119/0.2532, allocations: 479.2 kB / 0.5157 GB, free: 9.336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.872e-05/0.2532, allocations: 4 kB / 0.5157 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.2532, allocations: 4 kB / 0.5157 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007518/0.254, allocations: 148.9 kB / 0.5159 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.2541, allocations: 31.92 kB / 0.5159 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007048/0.2548, allocations: 0.6655 MB / 0.5165 GB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.255, allocations: 7.938 kB / 0.5165 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.255, allocations: 16.03 kB / 0.5166 GB, free: 8.434 MB / 382.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.0001482/0.2552, allocations: 129.8 kB / 0.5167 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.652e-05/0.2552, allocations: 23.89 kB / 0.5167 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.2553, allocations: 26.22 kB / 0.5167 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.2553, allocations: 11.98 kB / 0.5167 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006462/0.256, allocations: 4 kB / 0.5167 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.256, allocations: 0 / 0.5167 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000396/0.2564, allocations: 294.4 kB / 0.517 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.2564, allocations: 0 / 0.517 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.2566, allocations: 35.97 kB / 0.5171 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003676/0.2569, allocations: 72.72 kB / 0.5171 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.257, allocations: 7.984 kB / 0.5171 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.2585, allocations: 1.557 MB / 0.5187 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2585, allocations: 0 / 0.5187 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.2598, allocations: 0.6936 MB / 0.5193 GB, free: 5.344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.726e-05/0.2598, allocations: 97 kB / 0.5194 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.2599, allocations: 0 / 0.5194 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.26, allocations: 16.05 kB / 0.5194 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.2601, allocations: 23.91 kB / 0.5195 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.2601, allocations: 8 kB / 0.5195 GB, free: 5.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.659e-05/0.2602, allocations: 103.9 kB / 0.5196 GB, free: 5.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2602, allocations: 3.938 kB / 0.5196 GB, free: 5.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003783/0.2606, allocations: 56 kB / 0.5196 GB, free: 5.023 MB / 382.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.001799/0.2624, allocations: 1.263 MB / 0.5209 GB, free: 3.727 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008589/0.2632, allocations: 323.2 kB / 0.5212 GB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2632, allocations: 0 / 0.5212 GB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006778/0.2639, allocations: 295.3 kB / 0.5215 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006813/0.2646, allocations: 98.44 kB / 0.5216 GB, free: 3.016 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004956/0.2696, allocations: 2.929 MB / 0.5244 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004168/0.27, allocations: 0.737 MB / 0.5251 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.2702, allocations: 117.3 kB / 0.5252 GB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2703, allocations: 63.41 kB / 0.5253 GB, free: 15.02 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2703, allocations: 0 / 0.5253 GB, free: 15.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.3036, allocations: 7.964 MB / 0.5331 GB, free: 7.121 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.84, allocations: 4.062 kB / 0.5331 GB, free: 7.117 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --stepSize=0.1 --timeout=50 --tolerance=1e-07 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: 20.19575402594637] Failed to read output from testmodel.py, exit status != 0: 13.205168038024567 13.222413998 12.977984274 Calling exit ...