Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.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: translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00121/0.00121, allocations: 195.6 kB / 16.25 MB, free: 6.621 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.261/1.261, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1257/0.1257, allocations: 2.761 MB / 292.8 MB, free: 3.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 67.89 kB / 353.9 MB, free: 4.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09226, allocations: 50.24 MB / 404.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.1994/0.2916, allocations: 50.32 MB / 454.5 MB, free: 21.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01535/0.307, allocations: 28.88 MB / 483.3 MB, free: 324 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.3075, allocations: 2.781 kB / 483.3 MB, free: 324 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.3088, allocations: 0.5759 MB / 483.9 MB, free: 12 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004924/0.3137, allocations: 2.053 MB / 486 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006794/0.3205, allocations: 2.707 MB / 488.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.3216, allocations: 0.9181 MB / 489.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.918e-05/0.3217, allocations: 64.14 kB / 489.7 MB, free: 12.82 MB / 366.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.7082/1.03, allocations: 50.59 MB / 0.5276 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006708/1.031, allocations: 306.6 kB / 0.5279 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/1.031, allocations: 40 kB / 0.5279 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3368/1.368, allocations: 26.72 MB / 0.554 GB, free: 15.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/1.368, allocations: 111.4 kB / 0.5541 GB, free: 15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/1.368, allocations: 342.5 kB / 0.5544 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008238/1.377, allocations: 1.839 MB / 0.5562 GB, free: 12.82 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.377, allocations: 0 / 0.5562 GB, free: 12.82 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.364e-06/1.377, allocations: 0 / 0.5562 GB, free: 12.82 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/1.377, allocations: 3.938 kB / 0.5562 GB, free: 12.82 MB / 430.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.001608/1.378, allocations: 1.096 MB / 0.5573 GB, free: 11.67 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/1.378, allocations: 12.03 kB / 0.5573 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00198/1.38, allocations: 0.4958 MB / 0.5578 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007004/1.381, allocations: 331.4 kB / 0.5581 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.595e-05/1.381, allocations: 46.06 kB / 0.5582 GB, free: 10.76 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/1.381, allocations: 60 kB / 0.5582 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/1.383, allocations: 0.8723 MB / 0.5591 GB, free: 9.777 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/1.383, allocations: 3.984 kB / 0.5591 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.099e-05/1.383, allocations: 24 kB / 0.5591 GB, free: 9.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.097e-05/1.383, allocations: 35.92 kB / 0.5591 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/1.384, allocations: 0.7039 MB / 0.5598 GB, free: 9.008 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/1.388, allocations: 4.978 MB / 0.5647 GB, free: 3.438 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007024/1.388, allocations: 341.1 kB / 0.565 GB, free: 3.086 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003441/1.389, allocations: 229.6 kB / 0.5652 GB, free: 2.855 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001383/1.39, allocations: 1.543 MB / 0.5667 GB, free: 1.141 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/1.39, allocations: 38.56 kB / 0.5668 GB, free: 1.094 MB / 430.1 MB Notification: Performance of pre-optimization done (n=74): time 2.114e-06/1.39, allocations: 0 / 0.5668 GB, free: 1.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=74): time 0.001655/1.392, allocations: 0.627 MB / 0.5674 GB, free: 472 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/1.392, allocations: 85.05 kB / 0.5675 GB, free: 368 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/1.392, allocations: 175.5 kB / 0.5676 GB, free: 184 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/1.392, allocations: 29.7 kB / 0.5677 GB, free: 148 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/1.392, allocations: 271.9 kB / 0.5679 GB, free: 15.87 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/1.392, allocations: 244.3 kB / 0.5682 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/1.393, allocations: 101.9 kB / 0.5683 GB, free: 15.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/1.393, allocations: 338.8 kB / 0.5686 GB, free: 15.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002622/1.393, allocations: 121.3 kB / 0.5687 GB, free: 15.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/1.393, allocations: 289.4 kB / 0.569 GB, free: 14.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/1.394, allocations: 470.7 kB / 0.5694 GB, free: 14.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/1.394, allocations: 4 kB / 0.5694 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008443/1.395, allocations: 472.6 kB / 0.5699 GB, free: 13.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/1.395, allocations: 4.062 kB / 0.5699 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/1.395, allocations: 15.94 kB / 0.5699 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/1.395, allocations: 4 kB / 0.5699 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/1.395, allocations: 75.84 kB / 0.57 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/1.395, allocations: 7.984 kB / 0.57 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/1.396, allocations: 83.25 kB / 0.5701 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/1.396, allocations: 20 kB / 0.5701 GB, free: 13.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * 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.0002473/1.396, allocations: 194 kB / 0.5703 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.703e-05/1.396, allocations: 31.62 kB / 0.5703 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/1.398, allocations: 1.189 MB / 0.5714 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001217/1.399, allocations: 0.9865 MB / 0.5724 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/1.399, allocations: 7.938 kB / 0.5724 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/1.399, allocations: 7.984 kB / 0.5724 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/1.402, allocations: 2.325 MB / 0.5747 GB, free: 8.688 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/1.402, allocations: 7.938 kB / 0.5747 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003938/1.403, allocations: 119.8 kB / 0.5748 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/1.403, allocations: 4 kB / 0.5748 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/1.403, allocations: 12 kB / 0.5748 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/1.403, allocations: 0 / 0.5748 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.403, allocations: 8 kB / 0.5748 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/1.404, allocations: 0.8869 MB / 0.5757 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/1.404, allocations: 144.2 kB / 0.5758 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/1.404, allocations: 16 kB / 0.5759 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004354/1.405, allocations: 95.39 kB / 0.576 GB, free: 7.367 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.941e-05/1.405, allocations: 47.94 kB / 0.576 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/1.405, allocations: 23.98 kB / 0.576 GB, free: 7.297 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.59e-05/1.405, allocations: 116.1 kB / 0.5761 GB, free: 7.184 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.405, allocations: 0 / 0.5761 GB, free: 7.184 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008037/1.406, allocations: 231.3 kB / 0.5764 GB, free: 6.957 MB / 446.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: 6 (medium1.completeState.state.phase,$cse4.phase,medium1.baseProperties.phaseOutput,medium2.completeState.state.phase,$cse2.phase,medium2.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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.0006247/1.406, allocations: 306.4 kB / 0.5766 GB, free: 6.652 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/1.408, allocations: 0.7841 MB / 0.5774 GB, free: 5.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.408, allocations: 0 / 0.5774 GB, free: 5.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005177/1.408, allocations: 382.4 kB / 0.5778 GB, free: 5.469 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/1.41, allocations: 359.2 kB / 0.5781 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/1.412, allocations: 1.657 MB / 0.5797 GB, free: 3.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/1.413, allocations: 0.9608 MB / 0.5807 GB, free: 2.438 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004775/1.413, allocations: 129.2 kB / 0.5808 GB, free: 2.312 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.645e-05/1.413, allocations: 47.44 kB / 0.5808 GB, free: 2.266 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/1.413, allocations: 4 kB / 0.5808 GB, free: 2.262 MB / 446.1 MB Notification: Performance of Templates: time 0.1824/1.596, allocations: 13.51 MB / 0.594 GB, free: 141.7 MB / 446.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.makefile (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & ./ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)