Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.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.TestStatesSatSubcritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSatSubcritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSatSubcritical",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.005909/0.005909, allocations: 98.17 kB / 15.73 MB, free: 6.055 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.001084/0.001085, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01313/0.01314, allocations: 2.785 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 405.4 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09406, allocations: 50.23 MB / 455.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.3388/0.4329, allocations: 82.92 MB / 0.526 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03001/0.4629, allocations: 40.73 MB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.4641, allocations: 3.062 kB / 0.5658 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002924/0.4671, allocations: 1.246 MB / 0.567 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01945/0.4866, allocations: 6.958 MB / 0.5738 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009354/0.4875, allocations: 269.2 kB / 0.574 GB, free: 8.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00193/0.4895, allocations: 1.357 MB / 0.5753 GB, free: 7.902 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.4897, allocations: 104.6 kB / 0.5754 GB, free: 7.797 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004983/0.4902, allocations: 421.9 kB / 0.5758 GB, free: 7.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005455/0.4907, allocations: 0.4974 MB / 0.5763 GB, free: 6.883 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-05/0.4908, allocations: 40 kB / 0.5764 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.335/1.826, allocations: 167 MB / 0.7394 GB, free: 126 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002349/1.826, allocations: 150.5 kB / 0.7396 GB, free: 126 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001224/1.827, allocations: 0.5947 MB / 0.7402 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01995/1.847, allocations: 2.783 MB / 0.7429 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/1.847, allocations: 2.625 kB / 0.7429 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.646e-06/1.847, allocations: 4 kB / 0.7429 GB, free: 124.4 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.217e-05/1.847, allocations: 0 / 0.7429 GB, free: 124.4 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.003201/1.85, allocations: 1.626 MB / 0.7445 GB, free: 123 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/1.85, allocations: 12.03 kB / 0.7445 GB, free: 123 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/1.851, allocations: 198.7 kB / 0.7447 GB, free: 122.9 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004458/1.855, allocations: 1.215 MB / 0.7459 GB, free: 122.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/1.855, allocations: 284.9 kB / 0.7461 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.209e-05/1.855, allocations: 74.42 kB / 0.7462 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/1.856, allocations: 99.38 kB / 0.7463 GB, free: 122.1 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/1.858, allocations: 1.706 MB / 0.748 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/1.858, allocations: 0 / 0.748 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/1.858, allocations: 37.44 kB / 0.748 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.927e-05/1.858, allocations: 72.19 kB / 0.7481 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/1.859, allocations: 1.609 MB / 0.7496 GB, free: 120.5 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005823/1.865, allocations: 8.586 MB / 0.758 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000831/1.866, allocations: 0.7663 MB / 0.7588 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/1.867, allocations: 0.7407 MB / 0.7595 GB, free: 112.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001707/1.868, allocations: 2.366 MB / 0.7618 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/1.868, allocations: 30.56 kB / 0.7618 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=182): time 2.405e-06/1.868, allocations: 4 kB / 0.7618 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=182): time 0.002527/1.871, allocations: 1.52 MB / 0.7633 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/1.871, allocations: 81.11 kB / 0.7634 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/1.871, allocations: 130.7 kB / 0.7635 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/1.871, allocations: 25.7 kB / 0.7636 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/1.871, allocations: 406.7 kB / 0.7639 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/1.871, allocations: 0.5957 MB / 0.7645 GB, free: 108.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/1.872, allocations: 137.9 kB / 0.7647 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.59e-05/1.872, allocations: 314 kB / 0.765 GB, free: 107.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/1.872, allocations: 340.5 kB / 0.7653 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004522/1.873, allocations: 493 kB / 0.7658 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009017/1.873, allocations: 1.025 MB / 0.7668 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/1.873, allocations: 0 / 0.7668 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001156/1.875, allocations: 1.055 MB / 0.7678 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/1.875, allocations: 8 kB / 0.7678 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/1.875, allocations: 4 kB / 0.7678 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/1.875, allocations: 4 kB / 0.7678 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/1.875, allocations: 31.27 kB / 0.7678 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/1.875, allocations: 6.906 kB / 0.7678 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/1.875, allocations: 83.55 kB / 0.7679 GB, free: 104.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/1.875, allocations: 28 kB / 0.7679 GB, free: 104.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 10 (completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,state2.phase,state1.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.dewStateOnePhase.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.0003276/1.875, allocations: 218.4 kB / 0.7681 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/1.876, allocations: 51.56 kB / 0.7682 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/1.876, allocations: 34.5 kB / 0.7682 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/1.876, allocations: 8 kB / 0.7682 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/1.876, allocations: 6.516 kB / 0.7682 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.876, allocations: 0 / 0.7682 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/1.877, allocations: 1.046 MB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.877, allocations: 4 kB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/1.877, allocations: 8 kB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/1.877, allocations: 0 / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/1.877, allocations: 19.98 kB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/1.877, allocations: 4.062 kB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.877, allocations: 3.984 kB / 0.7693 GB, free: 103.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/1.878, allocations: 1.187 MB / 0.7705 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 9.501e-05/1.878, allocations: 160.3 kB / 0.7706 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/1.878, allocations: 7.938 kB / 0.7706 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/1.878, allocations: 8 kB / 0.7706 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/1.878, allocations: 15.98 kB / 0.7706 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.19e-05/1.878, allocations: 19.98 kB / 0.7707 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.055e-05/1.878, allocations: 93.91 kB / 0.7708 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.878, allocations: 0 / 0.7708 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000989/1.879, allocations: 386.9 kB / 0.7711 GB, free: 101.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (state2.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,state1.phase,completeBubbleDewStates1.dewStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.001947/1.881, allocations: 2.168 MB / 0.7732 GB, free: 99.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00143/1.883, allocations: 1.746 MB / 0.7749 GB, free: 97.19 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.883, allocations: 4 kB / 0.775 GB, free: 97.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008967/1.884, allocations: 1.821 MB / 0.7767 GB, free: 94.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/1.886, allocations: 465.4 kB / 0.7772 GB, free: 94.54 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/1.889, allocations: 2.384 MB / 0.7795 GB, free: 92.12 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/1.89, allocations: 1.297 MB / 0.7808 GB, free: 90.79 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006149/1.89, allocations: 175.5 kB / 0.7809 GB, free: 90.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005266/1.891, allocations: 0.6243 MB / 0.7815 GB, free: 90 MB / 0.5294 GB Notification: Performance of SimCode: time 6.41e-07/1.891, allocations: 2.625 kB / 0.7815 GB, free: 90 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06581/1.957, allocations: 41.73 MB / 0.8223 GB, free: 48.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/13.08, allocations: 3.938 kB / 0.8223 GB, free: 48.6 MB / 0.5294 GB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestStatesSatSubcritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.pipe 2>&1)