Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.001362/0.001362, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001832/0.001832, allocations: 219.2 kB / 23.03 MB, free: 4.922 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.01369/0.01369, allocations: 2.806 MB / 316 MB, free: 96 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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",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.001942/0.001942, allocations: 67.89 kB / 439.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.103, allocations: 54.18 MB / 493.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2692/0.3722, allocations: 45.35 MB / 0.5263 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02519/0.3974, allocations: 25.13 MB / 0.5509 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.398, allocations: 10.69 kB / 0.5509 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.3996, allocations: 0.498 MB / 0.5514 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006234/0.4058, allocations: 2.188 MB / 0.5535 GB, free: 10.82 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.009403/0.4152, allocations: 2.89 MB / 0.5563 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001559/0.4168, allocations: 0.9325 MB / 0.5572 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.4169, allocations: 27.78 kB / 0.5573 GB, free: 7.922 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.4472/0.8641, allocations: 51.35 MB / 0.6074 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007924/0.8649, allocations: 306.6 kB / 0.6077 GB, free: 6.047 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.865, allocations: 40 kB / 0.6077 GB, free: 6.008 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2187/1.084, allocations: 27.09 MB / 0.6342 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/1.084, allocations: 107.5 kB / 0.6343 GB, free: 10.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006034/1.085, allocations: 266.8 kB / 0.6346 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008459/1.093, allocations: 1.869 MB / 0.6364 GB, free: 8.5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/1.093, allocations: 4 kB / 0.6364 GB, free: 8.496 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.684e-06/1.093, allocations: 0 / 0.6364 GB, free: 8.496 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/1.093, allocations: 0 / 0.6364 GB, free: 8.496 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.001779/1.095, allocations: 1.045 MB / 0.6374 GB, free: 7.418 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/1.095, allocations: 8.031 kB / 0.6374 GB, free: 7.41 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.859e-05/1.095, allocations: 17.5 kB / 0.6374 GB, free: 7.395 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/1.095, allocations: 119 kB / 0.6375 GB, free: 7.27 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002436/1.097, allocations: 0.4961 MB / 0.638 GB, free: 6.773 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/1.099, allocations: 282.1 kB / 0.6383 GB, free: 6.473 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.496e-05/1.099, allocations: 49.31 kB / 0.6383 GB, free: 6.422 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.872e-05/1.099, allocations: 55.94 kB / 0.6384 GB, free: 6.367 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/1.101, allocations: 0.9731 MB / 0.6393 GB, free: 5.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/1.101, allocations: 11.92 kB / 0.6394 GB, free: 5.309 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/1.101, allocations: 24 kB / 0.6394 GB, free: 5.285 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-05/1.101, allocations: 35.97 kB / 0.6394 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/1.102, allocations: 0.7201 MB / 0.6401 GB, free: 4.535 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003925/1.106, allocations: 2.772 MB / 0.6428 GB, free: 1.664 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/1.107, allocations: 261.1 kB / 0.6431 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/1.107, allocations: 157.7 kB / 0.6432 GB, free: 1.23 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001193/1.109, allocations: 0.8844 MB / 0.6441 GB, free: 332 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/1.109, allocations: 46.42 kB / 0.6441 GB, free: 276 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 2.064e-06/1.109, allocations: 0 / 0.6441 GB, free: 276 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001608/1.11, allocations: 0.5935 MB / 0.6447 GB, free: 15.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/1.11, allocations: 77.11 kB / 0.6448 GB, free: 15.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/1.11, allocations: 186.5 kB / 0.645 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/1.111, allocations: 33.7 kB / 0.645 GB, free: 15.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/1.111, allocations: 296.3 kB / 0.6453 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/1.111, allocations: 237.9 kB / 0.6455 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000164/1.111, allocations: 97.95 kB / 0.6456 GB, free: 14.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002161/1.111, allocations: 346.7 kB / 0.6459 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/1.112, allocations: 121.3 kB / 0.646 GB, free: 14.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/1.112, allocations: 295.9 kB / 0.6463 GB, free: 13.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006766/1.113, allocations: 477 kB / 0.6468 GB, free: 13.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/1.113, allocations: 4 kB / 0.6468 GB, free: 13.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008211/1.113, allocations: 488.1 kB / 0.6473 GB, free: 12.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/1.113, allocations: 16.64 kB / 0.6473 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/1.114, allocations: 4 kB / 0.6473 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/1.114, allocations: 12 kB / 0.6473 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/1.114, allocations: 71.91 kB / 0.6474 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/1.114, allocations: 11.94 kB / 0.6474 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/1.114, allocations: 59.52 kB / 0.6474 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/1.114, allocations: 23.98 kB / 0.6474 GB, free: 12.66 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): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002742/1.114, allocations: 201.6 kB / 0.6476 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/1.114, allocations: 31.75 kB / 0.6477 GB, free: 12.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.197e-05/1.114, allocations: 26.66 kB / 0.6477 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/1.115, allocations: 7.984 kB / 0.6477 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/1.115, allocations: 4 kB / 0.6477 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.115, allocations: 0 / 0.6477 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/1.115, allocations: 436 kB / 0.6481 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.115, allocations: 0 / 0.6481 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/1.115, allocations: 31.98 kB / 0.6481 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/1.115, allocations: 3.938 kB / 0.6482 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/1.115, allocations: 11.94 kB / 0.6482 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.115, allocations: 0 / 0.6482 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.115, allocations: 0 / 0.6482 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/1.116, allocations: 0.51 MB / 0.6487 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.001e-05/1.116, allocations: 43.56 kB / 0.6487 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/1.116, allocations: 4 kB / 0.6487 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/1.116, allocations: 8.188 kB / 0.6487 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/1.116, allocations: 15.97 kB / 0.6487 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/1.116, allocations: 11.94 kB / 0.6487 GB, free: 11.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001035/1.116, allocations: 119.2 kB / 0.6489 GB, free: 11.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.116, allocations: 0 / 0.6489 GB, free: 11.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006885/1.117, allocations: 203.4 kB / 0.649 GB, free: 10.94 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): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/1.119, allocations: 1.24 MB / 0.6503 GB, free: 9.668 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008691/1.119, allocations: 0.5528 MB / 0.6508 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.119, allocations: 0 / 0.6508 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004997/1.12, allocations: 464 kB / 0.6512 GB, free: 8.57 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.121, allocations: 201.4 kB / 0.6514 GB, free: 8.375 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0054/1.126, allocations: 3.64 MB / 0.655 GB, free: 4.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/1.127, allocations: 348.7 kB / 0.6553 GB, free: 4.133 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005551/1.128, allocations: 257.9 kB / 0.6556 GB, free: 3.883 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003543/1.128, allocations: 271.3 kB / 0.6558 GB, free: 3.617 MB / 494.1 MB Notification: Performance of SimCode: time 1.372e-06/1.128, allocations: 0 / 0.6558 GB, free: 3.617 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/1.174, allocations: 19.27 MB / 0.6746 GB, free: 408 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.7, allocations: 17.42 kB / 0.6747 GB, free: 392 kB / 0.4981 GB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.65583391301334] Failed to read output from testmodel.py, exit status != 0: 14.095553444931284 14.127265168 13.028526101 Calling exit ...