Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.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.001215/0.001215, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001535/0.001535, allocations: 215 kB / 23.04 MB, free: 5.074 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.01249/0.01249, allocations: 2.804 MB / 316 MB, free: 308 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.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",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.00192/0.00192, allocations: 67.89 kB / 439.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1025, allocations: 54.17 MB / 493.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.02154/0.124, allocations: 19.39 MB / 0.501 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2221/0.3461, allocations: 6.09 MB / 0.507 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.3463, allocations: 1.75 kB / 0.507 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005858/0.3469, allocations: 256 kB / 0.5072 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00343/0.3504, allocations: 1.207 MB / 0.5084 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.3507, allocations: 85.22 kB / 0.5085 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.3511, allocations: 306.5 kB / 0.5088 GB, free: 4.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.356e-05/0.3511, allocations: 21.33 kB / 0.5088 GB, free: 4.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.3513, allocations: 97.52 kB / 0.5089 GB, free: 4.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.3514, allocations: 111.8 kB / 0.509 GB, free: 4.066 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.3514, allocations: 6.844 kB / 0.509 GB, free: 4.066 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3361/0.6875, allocations: 38.67 MB / 0.5468 GB, free: 496 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.026e-05/0.6876, allocations: 31.23 kB / 0.5468 GB, free: 480 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.6879, allocations: 135.3 kB / 0.5469 GB, free: 376 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002248/0.6902, allocations: 0.5079 MB / 0.5474 GB, free: 64 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.6902, allocations: 0 / 0.5474 GB, free: 64 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.6902, allocations: 0 / 0.5474 GB, free: 64 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.6902, allocations: 0 / 0.5474 GB, free: 64 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0007065/0.6909, allocations: 0.4956 MB / 0.5479 GB, free: 15.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.6909, allocations: 12.03 kB / 0.5479 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.677e-05/0.691, allocations: 15.81 kB / 0.5479 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.509e-05/0.691, allocations: 65.95 kB / 0.548 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000779/0.6918, allocations: 207.3 kB / 0.5482 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.6919, allocations: 135 kB / 0.5483 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.6919, allocations: 15.62 kB / 0.5483 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.692, allocations: 25.94 kB / 0.5484 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.6925, allocations: 340 kB / 0.5487 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.6925, allocations: 7.984 kB / 0.5487 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.6925, allocations: 9.688 kB / 0.5487 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.862e-05/0.6925, allocations: 15.55 kB / 0.5487 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003339/0.6929, allocations: 277.8 kB / 0.549 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.6946, allocations: 2.084 MB / 0.551 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.6948, allocations: 98.14 kB / 0.5511 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.811e-05/0.6949, allocations: 76.92 kB / 0.5512 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005724/0.6955, allocations: 0.5165 MB / 0.5517 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.6955, allocations: 41.61 kB / 0.5517 GB, free: 11.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.132e-06/0.6955, allocations: 0 / 0.5517 GB, free: 11.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003757/0.6959, allocations: 178.4 kB / 0.5519 GB, free: 11.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.6959, allocations: 81.11 kB / 0.552 GB, free: 11.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.696, allocations: 113.3 kB / 0.5521 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/0.696, allocations: 25.7 kB / 0.5521 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.6962, allocations: 163.2 kB / 0.5523 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.251e-05/0.6962, allocations: 105.1 kB / 0.5524 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.6963, allocations: 39.47 kB / 0.5524 GB, free: 11.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.6965, allocations: 329.9 kB / 0.5527 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.826e-05/0.6965, allocations: 33.86 kB / 0.5528 GB, free: 10.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.542e-05/0.6966, allocations: 82.39 kB / 0.5528 GB, free: 10.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.6968, allocations: 134.9 kB / 0.553 GB, free: 10.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.6968, allocations: 7.984 kB / 0.553 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002358/0.697, allocations: 153.6 kB / 0.5531 GB, free: 10.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.697, allocations: 15.92 kB / 0.5531 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.697, allocations: 0 / 0.5531 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.6971, allocations: 0 / 0.5531 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.054e-05/0.6971, allocations: 12 kB / 0.5531 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.6971, allocations: 0 / 0.5531 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.532e-05/0.6972, allocations: 19.78 kB / 0.5532 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.6972, allocations: 11.44 kB / 0.5532 GB, free: 10.54 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (state2.phase,state1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001241/0.6973, allocations: 138.1 kB / 0.5533 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.94e-05/0.6974, allocations: 7.953 kB / 0.5533 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.6974, allocations: 12.2 kB / 0.5533 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.6974, allocations: 3.938 kB / 0.5533 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.6974, allocations: 4 kB / 0.5533 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.6974, allocations: 0 / 0.5533 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003417/0.6978, allocations: 260.1 kB / 0.5536 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6978, allocations: 0 / 0.5536 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.133e-05/0.6978, allocations: 4 kB / 0.5536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.6978, allocations: 0 / 0.5536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.6978, allocations: 4 kB / 0.5536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6978, allocations: 0 / 0.5536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6978, allocations: 4 kB / 0.5536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.6991, allocations: 312.8 kB / 0.5539 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.53e-05/0.6991, allocations: 23.83 kB / 0.5539 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.6992, allocations: 0 / 0.5539 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.889e-05/0.6993, allocations: 3.062 kB / 0.5539 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.6993, allocations: 8 kB / 0.5539 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.6993, allocations: 3.938 kB / 0.5539 GB, free: 9.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.709e-05/0.6993, allocations: 83.27 kB / 0.554 GB, free: 9.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6993, allocations: 0 / 0.554 GB, free: 9.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.6997, allocations: 90.97 kB / 0.5541 GB, free: 9.633 MB / 398.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: 2 (state2.phase,state1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0008671/0.7006, allocations: 0.9422 MB / 0.555 GB, free: 8.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003673/0.701, allocations: 209.1 kB / 0.5552 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.701, allocations: 0 / 0.5552 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.7012, allocations: 173.8 kB / 0.5554 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007003/0.7019, allocations: 95.61 kB / 0.5555 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.703, allocations: 0.5872 MB / 0.556 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004701/0.7035, allocations: 0.7956 MB / 0.5568 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.7036, allocations: 33.11 kB / 0.5569 GB, free: 6.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.7037, allocations: 115.4 kB / 0.557 GB, free: 6.629 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.7037, allocations: 4 kB / 0.557 GB, free: 6.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.7354, allocations: 8.759 MB / 0.5655 GB, free: 13.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.26, allocations: 10.67 kB / 0.5655 GB, free: 13.95 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.312945013982244] Failed to read output from testmodel.py, exit status != 0: 12.647984022973105 12.670046569 11.975784832 Calling exit ...