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.001182/0.001182, 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.001289/0.001289, allocations: 193.6 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1628/0.1628, allocations: 2.76 MB / 293.2 MB, free: 3.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 63.89 kB / 354.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09958, allocations: 50.24 MB / 404.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesTranscritical): time 0.1788/0.2784, allocations: 19.1 MB / 423.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.2826, allocations: 6.085 MB / 429.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.2828, allocations: 0 / 429.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005595/0.2834, allocations: 253.4 kB / 430.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.2863, allocations: 1.204 MB / 431.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.2867, allocations: 89.62 kB / 431.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.2871, allocations: 302.8 kB / 431.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.875e-05/0.2872, allocations: 35.61 kB / 431.8 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.948e-05/0.2874, allocations: 92.31 kB / 431.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2875, allocations: 106.9 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.2875, allocations: 6.531 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2374/0.525, allocations: 38.13 MB / 470.1 MB, free: 18.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.5251, allocations: 35.3 kB / 470.2 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.5253, allocations: 132 kB / 470.3 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00235/0.5277, allocations: 0.5033 MB / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.5277, allocations: 0 / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.5277, allocations: 0.9688 kB / 470.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.5277, allocations: 4 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.0006021/0.5283, allocations: 0.5589 MB / 471.4 MB, free: 17.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.5284, allocations: 9.312 kB / 471.4 MB, free: 17.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.477e-05/0.5284, allocations: 68.23 kB / 471.4 MB, free: 17.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/0.5297, allocations: 202 kB / 471.6 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.976e-05/0.5298, allocations: 189.1 kB / 471.8 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.5298, allocations: 18.75 kB / 471.8 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.5298, allocations: 26.94 kB / 471.9 MB, free: 17.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/0.5303, allocations: 340.2 kB / 472.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.5303, allocations: 1.438 kB / 472.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.5303, allocations: 9.375 kB / 472.2 MB, free: 17.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.5303, allocations: 14.97 kB / 472.2 MB, free: 17.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.5306, allocations: 257 kB / 472.5 MB, free: 17.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.5319, allocations: 2.14 MB / 474.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.532, allocations: 135.6 kB / 474.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.5321, allocations: 104.9 kB / 474.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004938/0.5326, allocations: 0.6877 MB / 475.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.5327, allocations: 31.69 kB / 475.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.493e-06/0.5327, allocations: 1.375 kB / 475.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.0003801/0.533, allocations: 185.5 kB / 475.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.5331, allocations: 82.36 kB / 475.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.995e-05/0.5332, allocations: 107.4 kB / 475.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.5332, allocations: 25.77 kB / 476 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.299e-05/0.5333, allocations: 162.1 kB / 476.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.037e-05/0.5333, allocations: 108.5 kB / 476.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.5334, allocations: 37.52 kB / 476.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.73e-05/0.5334, allocations: 326.2 kB / 476.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.518e-05/0.5335, allocations: 37.78 kB / 476.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.688e-05/0.5336, allocations: 87.34 kB / 476.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.5337, allocations: 134.7 kB / 476.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.5337, allocations: 0 / 476.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002014/0.5339, allocations: 169.2 kB / 477 MB, free: 12.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.5339, allocations: 9.312 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.5339, allocations: 1.812 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.534, allocations: 1.781 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.534, allocations: 16.48 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.5341, allocations: 1.781 kB / 477 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.771e-05/0.5341, allocations: 13.25 kB / 477 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.5341, allocations: 7.594 kB / 477.1 MB, free: 12.84 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.235e-05/0.5342, allocations: 131.6 kB / 477.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/0.5343, allocations: 16.09 kB / 477.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.5343, allocations: 13.23 kB / 477.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.5344, allocations: 1.312 kB / 477.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.5344, allocations: 1.344 kB / 477.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.5344, allocations: 0 / 477.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.5347, allocations: 280 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.5347, allocations: 1.094 kB / 477.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.359e-05/0.5347, allocations: 7.5 kB / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.5347, allocations: 0 / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.5347, allocations: 2.5 kB / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.5347, allocations: 5.125 kB / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5347, allocations: 0 / 477.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.5362, allocations: 321.4 kB / 477.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.222e-05/0.5363, allocations: 92.86 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.5363, allocations: 1.312 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.5364, allocations: 1.438 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.759e-05/0.5364, allocations: 2.281 kB / 477.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.5364, allocations: 10.83 kB / 477.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.218e-05/0.5365, allocations: 89.84 kB / 478 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5365, allocations: 0 / 478 MB, free: 11.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004539/0.5369, allocations: 80.56 kB / 478.1 MB, free: 11.95 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.0005957/0.5375, allocations: 0.92 MB / 479 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.5378, allocations: 237.2 kB / 479.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5378, allocations: 0 / 479.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.538, allocations: 210.9 kB / 479.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006796/0.5387, allocations: 83.97 kB / 479.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009746/0.5397, allocations: 0.5801 MB / 480.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.5399, allocations: 0.8019 MB / 480.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.5401, allocations: 27.48 kB / 480.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.5402, allocations: 116.9 kB / 481.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5402, allocations: 0 / 481.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.5709, allocations: 7.849 MB / 488.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.789/8.36, allocations: 9.266 kB / 488.9 MB, free: 8.48 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)