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.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.001268/0.001268, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001517/0.001517, allocations: 210.8 kB / 22.24 MB, free: 5.262 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.437/1.437, allocations: 230.6 MB / 256 MB, free: 7.781 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.01395/0.01395, allocations: 2.8 MB / 315.2 MB, free: 100 kB / 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.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"}) [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.00206/0.00206, allocations: 63.91 kB / 438.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09213, allocations: 54.18 MB / 492.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2406/0.3327, allocations: 45.4 MB / 0.5256 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02582/0.3585, allocations: 25.16 MB / 0.5502 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.3592, allocations: 7.031 kB / 0.5502 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00161/0.3608, allocations: 0.4967 MB / 0.5507 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006801/0.3676, allocations: 2.194 MB / 0.5528 GB, free: 10.77 MB / 398.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.01004/0.3777, allocations: 2.888 MB / 0.5556 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00164/0.3793, allocations: 0.9435 MB / 0.5566 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.3794, allocations: 30.09 kB / 0.5566 GB, free: 7.863 MB / 398.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.4516/0.831, allocations: 51.35 MB / 0.6067 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000737/0.8318, allocations: 286.6 kB / 0.607 GB, free: 5.984 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.8319, allocations: 40 kB / 0.607 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2233/1.055, allocations: 27.06 MB / 0.6335 GB, free: 10.71 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003096/1.056, allocations: 111.5 kB / 0.6336 GB, free: 10.61 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007148/1.056, allocations: 274.8 kB / 0.6338 GB, free: 10.34 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008366/1.065, allocations: 1.866 MB / 0.6357 GB, free: 8.465 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.065, allocations: 0 / 0.6357 GB, free: 8.465 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.833e-06/1.065, allocations: 0 / 0.6357 GB, free: 8.465 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.22e-05/1.065, allocations: 0 / 0.6357 GB, free: 8.465 MB / 478.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.002137/1.067, allocations: 1.057 MB / 0.6367 GB, free: 7.375 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/1.067, allocations: 8.031 kB / 0.6367 GB, free: 7.367 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/1.067, allocations: 127 kB / 0.6368 GB, free: 7.234 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/1.069, allocations: 0.4961 MB / 0.6373 GB, free: 6.738 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/1.072, allocations: 273.7 kB / 0.6376 GB, free: 6.445 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.937e-05/1.072, allocations: 45.88 kB / 0.6376 GB, free: 6.402 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006079/1.073, allocations: 59.94 kB / 0.6377 GB, free: 6.344 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001969/1.075, allocations: 0.9848 MB / 0.6386 GB, free: 5.277 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/1.075, allocations: 0 / 0.6386 GB, free: 5.277 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/1.075, allocations: 28 kB / 0.6387 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.586e-05/1.075, allocations: 27.98 kB / 0.6387 GB, free: 5.223 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/1.077, allocations: 0.7123 MB / 0.6394 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/1.081, allocations: 2.791 MB / 0.6421 GB, free: 1.629 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/1.081, allocations: 277.1 kB / 0.6424 GB, free: 1.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/1.082, allocations: 153.7 kB / 0.6425 GB, free: 1.184 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001233/1.083, allocations: 0.8844 MB / 0.6434 GB, free: 284 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/1.083, allocations: 34.55 kB / 0.6434 GB, free: 240 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 2.174e-06/1.083, allocations: 0 / 0.6434 GB, free: 240 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001613/1.084, allocations: 0.6091 MB / 0.644 GB, free: 15.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/1.085, allocations: 77.11 kB / 0.6441 GB, free: 15.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/1.085, allocations: 202.4 kB / 0.6443 GB, free: 15.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/1.085, allocations: 29.7 kB / 0.6443 GB, free: 15.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/1.085, allocations: 292.3 kB / 0.6446 GB, free: 14.99 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/1.085, allocations: 241.9 kB / 0.6448 GB, free: 14.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/1.085, allocations: 97.95 kB / 0.6449 GB, free: 14.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/1.085, allocations: 342.8 kB / 0.6452 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/1.086, allocations: 125.2 kB / 0.6453 GB, free: 14.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/1.086, allocations: 308 kB / 0.6456 GB, free: 13.81 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006812/1.087, allocations: 476.9 kB / 0.6461 GB, free: 13.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/1.087, allocations: 4 kB / 0.6461 GB, free: 13.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008425/1.088, allocations: 488.4 kB / 0.6466 GB, free: 12.78 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/1.088, allocations: 11.94 kB / 0.6466 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/1.088, allocations: 4 kB / 0.6466 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/1.088, allocations: 11.94 kB / 0.6466 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003689/1.088, allocations: 80.62 kB / 0.6467 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007971/1.089, allocations: 1.188 MB / 0.6478 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/1.089, allocations: 63.45 kB / 0.6479 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/1.089, allocations: 23.98 kB / 0.6479 GB, free: 11.35 MB / 494.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.0002684/1.089, allocations: 193.6 kB / 0.6481 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.65e-05/1.09, allocations: 27.81 kB / 0.6481 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.857e-05/1.09, allocations: 26.66 kB / 0.6482 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/1.09, allocations: 4 kB / 0.6482 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/1.09, allocations: 4.125 kB / 0.6482 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/1.09, allocations: 7.984 kB / 0.6482 GB, free: 11.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00067/1.09, allocations: 444 kB / 0.6486 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.09, allocations: 0 / 0.6486 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/1.09, allocations: 35.98 kB / 0.6486 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/1.09, allocations: 7.984 kB / 0.6486 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/1.09, allocations: 8 kB / 0.6486 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007498/1.091, allocations: 1.168 MB / 0.6498 GB, free: 9.34 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/1.091, allocations: 192 / 0.6498 GB, free: 9.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007119/1.092, allocations: 0.5217 MB / 0.6503 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/1.092, allocations: 35.69 kB / 0.6503 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/1.092, allocations: 0 / 0.6503 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/1.092, allocations: 11.94 kB / 0.6503 GB, free: 8.754 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/1.092, allocations: 15.97 kB / 0.6504 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/1.092, allocations: 8 kB / 0.6504 GB, free: 8.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001148/1.092, allocations: 123.2 kB / 0.6505 GB, free: 8.609 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/1.092, allocations: 0 / 0.6505 GB, free: 8.609 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006918/1.093, allocations: 203.4 kB / 0.6507 GB, free: 8.41 MB / 494.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.001531/1.095, allocations: 1.25 MB / 0.6519 GB, free: 7.129 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009961/1.096, allocations: 0.5723 MB / 0.6524 GB, free: 6.539 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.096, allocations: 0 / 0.6524 GB, free: 6.539 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006785/1.096, allocations: 491.8 kB / 0.6529 GB, free: 5.984 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/1.097, allocations: 184.5 kB / 0.6531 GB, free: 5.805 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005509/1.103, allocations: 3.68 MB / 0.6567 GB, free: 1.891 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/1.103, allocations: 356.8 kB / 0.657 GB, free: 1.512 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005076/1.104, allocations: 215.8 kB / 0.6572 GB, free: 1.301 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003598/1.104, allocations: 275.3 kB / 0.6575 GB, free: 1.031 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/1.104, allocations: 0 / 0.6575 GB, free: 1.031 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05613/1.16, allocations: 19.32 MB / 0.6764 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/14.31, allocations: 17.28 kB / 0.6764 GB, free: 13.75 MB / 0.5137 GB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.36664970172569] Failed to read output from testmodel.py, exit status != 0: 14.654206151608378 14.673107065 13.604882738 Calling exit ...