Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.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.TestStatesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical",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.001088/0.001088, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 194.5 kB / 16.14 MB, free: 6.668 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.238/1.238, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1118/0.1118, allocations: 2.76 MB / 292.7 MB, free: 3.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 67.88 kB / 353.8 MB, free: 4.926 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07783/0.07898, allocations: 50.23 MB / 404.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical): time 0.1544/0.2334, allocations: 19.07 MB / 423.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003527/0.2369, allocations: 6.061 MB / 429.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2371, allocations: 3.188 kB / 429.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005023/0.2376, allocations: 241.5 kB / 429.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002007/0.2396, allocations: 1.105 MB / 430.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.2398, allocations: 86.61 kB / 430.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.2401, allocations: 299.1 kB / 430.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.005e-05/0.2401, allocations: 28.73 kB / 430.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.166e-05/0.2402, allocations: 96.67 kB / 431 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.2403, allocations: 111.5 kB / 431.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.2403, allocations: 5.719 kB / 431.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5301/0.7704, allocations: 35.06 MB / 466.2 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.7705, allocations: 33.78 kB / 466.2 MB, free: 21.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.7707, allocations: 131.8 kB / 466.4 MB, free: 21.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.7727, allocations: 0.496 MB / 466.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7727, allocations: 1.094 kB / 466.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.7727, allocations: 0 / 466.8 MB, free: 21.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.7727, allocations: 7.938 kB / 466.9 MB, free: 21.25 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.0005395/0.7732, allocations: 0.5597 MB / 467.4 MB, free: 20.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.7733, allocations: 12.98 kB / 467.4 MB, free: 20.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.077e-05/0.7733, allocations: 69.78 kB / 467.5 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007221/0.7741, allocations: 202.4 kB / 467.7 MB, free: 20.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.061e-05/0.7742, allocations: 184.9 kB / 467.9 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.7742, allocations: 20.06 kB / 467.9 MB, free: 20.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.7742, allocations: 26.03 kB / 467.9 MB, free: 20.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.7746, allocations: 339.5 kB / 468.3 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.7747, allocations: 3.938 kB / 468.3 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.7747, allocations: 8.688 kB / 468.3 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.7747, allocations: 11.12 kB / 468.3 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.775, allocations: 264.5 kB / 468.5 MB, free: 20.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.776, allocations: 2.122 MB / 470.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.7762, allocations: 134.8 kB / 470.8 MB, free: 18.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.538e-05/0.7763, allocations: 113.4 kB / 470.9 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004309/0.7767, allocations: 0.6879 MB / 471.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.177e-05/0.7767, allocations: 31.81 kB / 471.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.172e-06/0.7767, allocations: 0 / 471.6 MB, free: 17.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0002976/0.777, allocations: 187.8 kB / 471.8 MB, free: 17.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/0.7771, allocations: 80.67 kB / 471.9 MB, free: 17.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.988e-05/0.7771, allocations: 100.1 kB / 472 MB, free: 17.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.7771, allocations: 29.64 kB / 472 MB, free: 17.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.7772, allocations: 162.3 kB / 472.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.222e-05/0.7772, allocations: 107.3 kB / 472.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.7773, allocations: 35.83 kB / 472.3 MB, free: 16.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.607e-05/0.7773, allocations: 327.2 kB / 472.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.781e-05/0.7774, allocations: 34.19 kB / 472.7 MB, free: 16.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.978e-05/0.7774, allocations: 86.31 kB / 472.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001308/0.7776, allocations: 144 kB / 472.9 MB, free: 16.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.7776, allocations: 0 / 472.9 MB, free: 16.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0001953/0.7778, allocations: 162.2 kB / 473 MB, free: 16.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.7778, allocations: 5.469 kB / 473 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.7778, allocations: 1.188 kB / 473 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.7778, allocations: 2.469 kB / 473.1 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.137e-05/0.7779, allocations: 12.66 kB / 473.1 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.7779, allocations: 2.406 kB / 473.1 MB, free: 16.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.778, allocations: 30.36 kB / 473.1 MB, free: 16.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.7781, allocations: 4.469 kB / 473.1 MB, free: 16.17 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 7.379e-05/0.7781, allocations: 134.8 kB / 473.2 MB, free: 16.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.7782, allocations: 15.47 kB / 473.2 MB, free: 16.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003877/0.7786, allocations: 430.6 kB / 473.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003061/0.7789, allocations: 334.9 kB / 474 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7789, allocations: 5.156 kB / 474 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.7789, allocations: 4.344 kB / 474 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009277/0.7798, allocations: 1.037 MB / 475 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.7799, allocations: 1.156 kB / 475 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.78, allocations: 54.55 kB / 475.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.78, allocations: 1.344 kB / 475.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.78, allocations: 10.12 kB / 475.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.78, allocations: 6.031 kB / 475.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.7801, allocations: 1.125 kB / 475.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.7804, allocations: 0.4992 MB / 475.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.7805, allocations: 104.9 kB / 475.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.7805, allocations: 10.5 kB / 475.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.7807, allocations: 47.14 kB / 475.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.897e-05/0.7808, allocations: 19.7 kB / 475.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.7808, allocations: 6.438 kB / 475.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.013e-05/0.7808, allocations: 83.62 kB / 475.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7808, allocations: 0 / 475.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004004/0.7812, allocations: 97.41 kB / 476 MB, free: 14.36 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: 4 (state1.phase,$cse2.phase,state2.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 32 * 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.0006995/0.7819, allocations: 1.153 MB / 477.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003179/0.7822, allocations: 300.1 kB / 477.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7823, allocations: 384 / 477.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.7824, allocations: 172.2 kB / 477.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009154/0.7833, allocations: 156.6 kB / 477.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.7844, allocations: 0.8691 MB / 478.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002011/0.7846, allocations: 0.8031 MB / 479.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.7847, allocations: 34.67 kB / 479.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.7849, allocations: 118.7 kB / 479.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7849, allocations: 3.938 kB / 479.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.8054, allocations: 8.812 MB / 488.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001266/0.8055, allocations: 246.6 kB / 488.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.667, allocations: 0 / 488.6 MB, free: 10.57 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical.pipe 2>&1)