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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1243/0.1243, allocations: 2.773 MB / 293.2 MB, free: 3.512 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 71.88 kB / 354.5 MB, free: 4.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08973, allocations: 50.24 MB / 404.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.2021/0.2919, allocations: 19.1 MB / 423.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004066/0.296, allocations: 6.086 MB / 429.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.2962, allocations: 0 / 429.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006016/0.2968, allocations: 255 kB / 430.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002496/0.2993, allocations: 1.207 MB / 431.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.2996, allocations: 84.94 kB / 431.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.2998, allocations: 302.7 kB / 431.8 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.285e-05/0.2999, allocations: 22.98 kB / 431.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.448e-05/0.3, allocations: 97.22 kB / 431.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.3001, allocations: 116.8 kB / 432 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.3001, allocations: 6.469 kB / 432 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2426/0.5428, allocations: 38.12 MB / 470.1 MB, free: 18.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.5429, allocations: 35.97 kB / 470.2 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002792/0.5431, allocations: 131.8 kB / 470.3 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.5455, allocations: 0.5045 MB / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5455, allocations: 0 / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5455, allocations: 0 / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.5455, allocations: 1.25 kB / 470.8 MB, free: 18.11 MB / 350.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.000598/0.5461, allocations: 0.5622 MB / 471.4 MB, free: 17.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.5462, allocations: 8.656 kB / 471.4 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.012e-05/0.5463, allocations: 65.06 kB / 471.4 MB, free: 17.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007942/0.5471, allocations: 203 kB / 471.6 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.69e-05/0.5472, allocations: 189.5 kB / 471.8 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.5472, allocations: 24.16 kB / 471.8 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.5472, allocations: 24.53 kB / 471.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004546/0.5477, allocations: 340.2 kB / 472.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.5477, allocations: 0 / 472.2 MB, free: 17.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.5478, allocations: 10.81 kB / 472.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.5478, allocations: 10.45 kB / 472.2 MB, free: 17.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.5481, allocations: 261.1 kB / 472.5 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.5493, allocations: 2.136 MB / 474.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.5495, allocations: 134.2 kB / 474.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.5496, allocations: 113.2 kB / 474.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004802/0.5501, allocations: 0.6846 MB / 475.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.5501, allocations: 43.81 kB / 475.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.282e-06/0.5501, allocations: 0 / 475.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003456/0.5505, allocations: 184 kB / 475.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.5505, allocations: 81.17 kB / 475.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.522e-05/0.5506, allocations: 107.8 kB / 475.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.799e-06/0.5506, allocations: 25.7 kB / 476 MB, free: 13.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.5507, allocations: 163.2 kB / 476.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.835e-05/0.5507, allocations: 102.5 kB / 476.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.5508, allocations: 37.72 kB / 476.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.5509, allocations: 322.2 kB / 476.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.937e-05/0.5509, allocations: 37.06 kB / 476.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-05/0.551, allocations: 90.83 kB / 476.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.5511, allocations: 134.2 kB / 476.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5511, allocations: 9.469 kB / 476.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00021/0.5514, allocations: 161.8 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.5514, allocations: 9.312 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.5514, allocations: 1.812 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.5514, allocations: 5.5 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.322e-05/0.5515, allocations: 9.281 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.5515, allocations: 1.312 kB / 477 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.969e-05/0.5516, allocations: 13.16 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.5516, allocations: 7.969 kB / 477.1 MB, free: 12.86 MB / 350.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 8.052e-05/0.5517, allocations: 131 kB / 477.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.5517, allocations: 19.86 kB / 477.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.5518, allocations: 13.31 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.5518, allocations: 1.438 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.5518, allocations: 1.031 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.5518, allocations: 1.188 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.5521, allocations: 278.8 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.5521, allocations: 1.188 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.5521, allocations: 6.594 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.5521, allocations: 1.125 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.5522, allocations: 6.25 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5522, allocations: 1.188 kB / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5522, allocations: 0 / 477.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.554, allocations: 326.2 kB / 477.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.554, allocations: 89.33 kB / 477.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.5541, allocations: 5.062 kB / 477.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.5542, allocations: 3.938 kB / 477.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-05/0.5542, allocations: 10.77 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.5542, allocations: 2.75 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.765e-05/0.5543, allocations: 82.03 kB / 478 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.143e-06/0.5543, allocations: 3.938 kB / 478 MB, free: 11.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005574/0.5548, allocations: 88.22 kB / 478.1 MB, free: 11.96 MB / 350.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.0007587/0.5556, allocations: 0.9154 MB / 479 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003325/0.556, allocations: 240.4 kB / 479.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.556, allocations: 1.094 kB / 479.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001571/0.5561, allocations: 202.6 kB / 479.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007371/0.5569, allocations: 89.95 kB / 479.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000998/0.5579, allocations: 0.5877 MB / 480.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.5581, allocations: 0.794 MB / 480.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.5583, allocations: 26.62 kB / 480.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.5584, allocations: 121.5 kB / 481.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.5584, allocations: 0 / 481.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.589, allocations: 7.838 MB / 488.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/8.332, allocations: 18.55 kB / 488.9 MB, free: 8.492 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSupercritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.pipe 2>&1)