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.001375/0.001375, allocations: 108 kB / 15.61 MB, free: 152 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.001553/0.001553, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1057/0.1057, allocations: 2.758 MB / 293.2 MB, free: 3.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.91 kB / 354.5 MB, free: 4.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08516, allocations: 50.24 MB / 404.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.1962/0.2814, allocations: 82.93 MB / 487.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03401/0.3155, allocations: 40.73 MB / 0.516 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009816/0.3165, allocations: 5 kB / 0.516 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00303/0.3196, allocations: 1.235 MB / 0.5172 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01889/0.3385, allocations: 6.968 MB / 0.524 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009895/0.3395, allocations: 268.8 kB / 0.5243 GB, free: 9.637 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002033/0.3415, allocations: 1.339 MB / 0.5256 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.3418, allocations: 108.5 kB / 0.5257 GB, free: 8.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008563/0.3427, allocations: 418.6 kB / 0.5261 GB, free: 8.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.3437, allocations: 0.4985 MB / 0.5266 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.3439, allocations: 37.31 kB / 0.5266 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.175/1.519, allocations: 165.6 MB / 0.6883 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/1.519, allocations: 149.2 kB / 0.6885 GB, free: 10.76 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/1.521, allocations: 0.594 MB / 0.689 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/1.531, allocations: 2.721 MB / 0.6917 GB, free: 8.512 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.531, allocations: 0 / 0.6917 GB, free: 8.512 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.573e-06/1.531, allocations: 0 / 0.6917 GB, free: 8.512 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.774e-05/1.531, allocations: 4 kB / 0.6917 GB, free: 8.508 MB / 462.1 MB 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.001908/1.533, allocations: 1.581 MB / 0.6932 GB, free: 7.156 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/1.533, allocations: 12.03 kB / 0.6933 GB, free: 7.145 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/1.533, allocations: 206.2 kB / 0.6934 GB, free: 7.012 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004312/1.538, allocations: 1.211 MB / 0.6946 GB, free: 6.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/1.538, allocations: 283.8 kB / 0.6949 GB, free: 5.973 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/1.538, allocations: 69.62 kB / 0.695 GB, free: 5.938 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/1.538, allocations: 97.5 kB / 0.6951 GB, free: 5.871 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/1.54, allocations: 1.704 MB / 0.6967 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/1.54, allocations: 0 / 0.6967 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.441e-05/1.54, allocations: 38.69 kB / 0.6968 GB, free: 4.859 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.583e-05/1.54, allocations: 74.23 kB / 0.6968 GB, free: 4.812 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/1.542, allocations: 1.604 MB / 0.6984 GB, free: 3.938 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006353/1.548, allocations: 8.653 MB / 0.7068 GB, free: 11.39 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008298/1.549, allocations: 0.7619 MB / 0.7076 GB, free: 11.08 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/1.55, allocations: 0.7451 MB / 0.7083 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001929/1.552, allocations: 2.345 MB / 0.7106 GB, free: 8.586 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/1.552, allocations: 41.66 kB / 0.7106 GB, free: 8.543 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 2.004e-06/1.552, allocations: 4 kB / 0.7107 GB, free: 8.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=182): time 0.002637/1.554, allocations: 1.507 MB / 0.7121 GB, free: 7.598 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/1.554, allocations: 81.11 kB / 0.7122 GB, free: 7.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/1.555, allocations: 133.4 kB / 0.7123 GB, free: 7.371 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/1.555, allocations: 28.52 kB / 0.7124 GB, free: 7.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/1.555, allocations: 396.2 kB / 0.7127 GB, free: 6.973 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003545/1.555, allocations: 0.5677 MB / 0.7133 GB, free: 6.469 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/1.555, allocations: 135.6 kB / 0.7134 GB, free: 6.367 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.86e-05/1.555, allocations: 313.4 kB / 0.7137 GB, free: 6.059 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/1.556, allocations: 336.5 kB / 0.714 GB, free: 5.801 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005462/1.556, allocations: 0.4921 MB / 0.7145 GB, free: 5.266 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/1.558, allocations: 1.017 MB / 0.7155 GB, free: 4.215 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.558, allocations: 0 / 0.7155 GB, free: 4.215 MB / 478.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001442/1.559, allocations: 1.054 MB / 0.7165 GB, free: 3.168 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/1.559, allocations: 4 kB / 0.7165 GB, free: 3.164 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/1.559, allocations: 4 kB / 0.7165 GB, free: 3.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.559, allocations: 4 kB / 0.7166 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/1.559, allocations: 31.27 kB / 0.7166 GB, free: 3.129 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/1.559, allocations: 7 kB / 0.7166 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/1.56, allocations: 83.22 kB / 0.7167 GB, free: 3.043 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/1.56, allocations: 27.98 kB / 0.7167 GB, free: 3.016 MB / 478.1 MB 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.0003231/1.56, allocations: 226.6 kB / 0.7169 GB, free: 2.789 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/1.56, allocations: 51.19 kB / 0.717 GB, free: 2.738 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/1.56, allocations: 31.89 kB / 0.717 GB, free: 2.711 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.426e-05/1.56, allocations: 7.984 kB / 0.717 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.56, allocations: 64 / 0.717 GB, free: 2.703 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/1.56, allocations: 4 kB / 0.717 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/1.561, allocations: 1.054 MB / 0.718 GB, free: 1.598 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/1.561, allocations: 3.281 kB / 0.718 GB, free: 1.598 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.819e-05/1.562, allocations: 7.984 kB / 0.718 GB, free: 1.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/1.562, allocations: 4 kB / 0.718 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/1.562, allocations: 12 kB / 0.7181 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.562, allocations: 4 kB / 0.7181 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.562, allocations: 0 / 0.7181 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/1.563, allocations: 1.18 MB / 0.7192 GB, free: 384 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/1.563, allocations: 156 kB / 0.7194 GB, free: 208 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/1.563, allocations: 8 kB / 0.7194 GB, free: 200 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/1.563, allocations: 0 / 0.7194 GB, free: 200 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/1.563, allocations: 27.92 kB / 0.7194 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/1.563, allocations: 16 kB / 0.7194 GB, free: 156 kB / 478.1 MB Notification: Performance of sorting global known variables: time 5.118e-05/1.563, allocations: 91.27 kB / 0.7195 GB, free: 64 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.563, allocations: 0 / 0.7195 GB, free: 64 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009856/1.564, allocations: 386.6 kB / 0.7199 GB, free: 15.68 MB / 494.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: 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.002313/1.567, allocations: 2.167 MB / 0.722 GB, free: 13.58 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/1.569, allocations: 1.737 MB / 0.7237 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.569, allocations: 0 / 0.7237 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/1.57, allocations: 1.829 MB / 0.7255 GB, free: 9.523 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/1.572, allocations: 477.4 kB / 0.7259 GB, free: 9.055 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/1.576, allocations: 2.36 MB / 0.7282 GB, free: 6.652 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009612/1.577, allocations: 1.293 MB / 0.7295 GB, free: 5.332 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006967/1.578, allocations: 175.5 kB / 0.7297 GB, free: 5.156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006487/1.578, allocations: 0.6312 MB / 0.7303 GB, free: 4.527 MB / 494.1 MB Notification: Performance of SimCode: time 4.01e-07/1.578, allocations: 0 / 0.7303 GB, free: 4.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2099/1.788, allocations: 40.3 MB / 0.7696 GB, free: 215 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.74/10.53, allocations: 3.953 kB / 0.7696 GB, free: 215 MB / 0.5137 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)