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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 107.4 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.6 MB / 247.8 MB, free: 13.91 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.01266/0.01266, allocations: 2.791 MB / 305.5 MB, free: 6.973 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.91 kB / 425 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1031, allocations: 52.95 MB / 478 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01147/0.1146, allocations: 9.047 MB / 487 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009319/0.1239, allocations: 8.587 MB / 495.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.1241, allocations: 4 kB / 495.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006/0.1247, allocations: 155.1 kB / 495.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003703/0.1251, allocations: 103.3 kB / 495.9 MB, free: 15.21 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.004531/0.1296, allocations: 1.463 MB / 497.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005292/0.1301, allocations: 274.7 kB / 497.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.143e-05/0.1302, allocations: 9.688 kB / 497.6 MB, free: 13.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.1217/0.2519, allocations: 12.91 MB / 0.4985 GB, free: 1.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.2522, allocations: 87.62 kB / 0.4986 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/0.2522, allocations: 8 kB / 0.4986 GB, free: 1.625 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.2545, allocations: 471.9 kB / 0.4991 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.2546, allocations: 43.77 kB / 0.4991 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.2548, allocations: 79.61 kB / 0.4992 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.2569, allocations: 0.5179 MB / 0.4997 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2569, allocations: 0 / 0.4997 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2569, allocations: 0 / 0.4997 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2569, allocations: 0 / 0.4997 GB, free: 0.5234 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.001108/0.258, allocations: 0.5565 MB / 0.5003 GB, free: 15.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.258, allocations: 11.97 kB / 0.5003 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.375e-05/0.2581, allocations: 50.73 kB / 0.5003 GB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.2584, allocations: 56.75 kB / 0.5004 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.2588, allocations: 208.1 kB / 0.5006 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.2588, allocations: 16.12 kB / 0.5006 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.416e-05/0.2588, allocations: 16 kB / 0.5006 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005971/0.2594, allocations: 239.1 kB / 0.5008 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2594, allocations: 0 / 0.5008 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.2595, allocations: 4 kB / 0.5008 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.2595, allocations: 11.98 kB / 0.5008 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005385/0.26, allocations: 208.2 kB / 0.501 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.2611, allocations: 0.6747 MB / 0.5017 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.2616, allocations: 206.5 kB / 0.5019 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.2619, allocations: 137 kB / 0.502 GB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003523/0.2622, allocations: 335.2 kB / 0.5023 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.2623, allocations: 30.56 kB / 0.5024 GB, free: 13.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.2623, allocations: 0 / 0.5024 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003258/0.2655, allocations: 1.222 MB / 0.5036 GB, free: 12.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.2656, allocations: 63.33 kB / 0.5036 GB, free: 12.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.2657, allocations: 125.8 kB / 0.5038 GB, free: 12.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.2658, allocations: 29.7 kB / 0.5038 GB, free: 12.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.997e-05/0.2658, allocations: 104.9 kB / 0.5039 GB, free: 11.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.266, allocations: 170.5 kB / 0.504 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2661, allocations: 57.7 kB / 0.5041 GB, free: 11.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.2663, allocations: 330.8 kB / 0.5044 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002689/0.2665, allocations: 128.5 kB / 0.5045 GB, free: 11.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.2669, allocations: 189.2 kB / 0.5047 GB, free: 11.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.2675, allocations: 344.8 kB / 0.505 GB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.2675, allocations: 4 kB / 0.505 GB, free: 10.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0012/0.2687, allocations: 473.9 kB / 0.5055 GB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.2687, allocations: 8 kB / 0.5055 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2687, allocations: 3.938 kB / 0.5055 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007599/0.2695, allocations: 148.7 kB / 0.5057 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001578/0.2696, allocations: 35.92 kB / 0.5057 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007452/0.2704, allocations: 0.6498 MB / 0.5063 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.2705, allocations: 12.03 kB / 0.5063 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.2705, allocations: 12 kB / 0.5063 GB, free: 9.305 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.0001682/0.2707, allocations: 134.7 kB / 0.5065 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.412e-05/0.2708, allocations: 19.84 kB / 0.5065 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.667e-05/0.2708, allocations: 18.28 kB / 0.5065 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.2708, allocations: 11.98 kB / 0.5065 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.2709, allocations: 0 / 0.5065 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2709, allocations: 0 / 0.5065 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.2713, allocations: 302.2 kB / 0.5068 GB, free: 8.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.2713, allocations: 4 kB / 0.5068 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.2715, allocations: 43.91 kB / 0.5069 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003577/0.2718, allocations: 72.66 kB / 0.5069 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.2718, allocations: 4 kB / 0.5069 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/0.2744, allocations: 1.56 MB / 0.5085 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2744, allocations: 0 / 0.5085 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.2757, allocations: 0.7054 MB / 0.5091 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.097e-05/0.2758, allocations: 92.97 kB / 0.5092 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.2758, allocations: 0 / 0.5092 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.276, allocations: 11.98 kB / 0.5092 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.2761, allocations: 27.91 kB / 0.5093 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.2761, allocations: 4 kB / 0.5093 GB, free: 6.043 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.351e-05/0.2762, allocations: 111.9 kB / 0.5094 GB, free: 5.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2762, allocations: 0 / 0.5094 GB, free: 5.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003882/0.2766, allocations: 60 kB / 0.5094 GB, free: 5.875 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.001848/0.2784, allocations: 1.242 MB / 0.5106 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008989/0.2793, allocations: 343.3 kB / 0.511 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2793, allocations: 0 / 0.511 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006945/0.28, allocations: 291 kB / 0.5113 GB, free: 3.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.2807, allocations: 102.8 kB / 0.5114 GB, free: 3.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.2857, allocations: 2.91 MB / 0.5142 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000438/0.2861, allocations: 0.741 MB / 0.5149 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.2103/0.4965, allocations: 109.6 kB / 0.515 GB, free: 47.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.4966, allocations: 54.59 kB / 0.5151 GB, free: 47.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4966, allocations: 0 / 0.5151 GB, free: 47.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03877/0.5354, allocations: 7.932 MB / 0.5228 GB, free: 46.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.13, allocations: 8.859 kB / 0.5228 GB, free: 46.45 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 & /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: 18.499676221981645] Failed to read output from testmodel.py, exit status != 0: 13.457708776928484 13.478307187 13.218003939 Calling exit ...