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.00577/0.00577, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.001368/0.001368, allocations: 202.5 kB / 16.68 MB, free: 5.965 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.119/0.119, allocations: 2.766 MB / 293.3 MB, free: 3.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.91 kB / 405.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2536, allocations: 50.23 MB / 455.7 MB, free: 20.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.08225/0.3359, allocations: 82.94 MB / 0.526 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04157/0.3775, allocations: 40.74 MB / 0.5658 GB, free: 9.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.3793, allocations: 4 kB / 0.5658 GB, free: 9.086 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004179/0.3835, allocations: 1.239 MB / 0.567 GB, free: 7.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02228/0.4058, allocations: 6.969 MB / 0.5738 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.407, allocations: 266.2 kB / 0.574 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.4095, allocations: 1.35 MB / 0.5754 GB, free: 15.2 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.4098, allocations: 107 kB / 0.5755 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005345/0.4103, allocations: 421.9 kB / 0.5759 GB, free: 14.67 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006743/0.411, allocations: 0.4974 MB / 0.5763 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.4111, allocations: 40 kB / 0.5764 GB, free: 14.13 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.654/2.065, allocations: 167 MB / 0.7394 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000222/2.065, allocations: 158.5 kB / 0.7396 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009208/2.066, allocations: 0.596 MB / 0.7402 GB, free: 12.07 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01132/2.077, allocations: 2.781 MB / 0.7429 GB, free: 10.15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/2.077, allocations: 0 / 0.7429 GB, free: 10.15 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/2.077, allocations: 0 / 0.7429 GB, free: 10.15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.228e-05/2.077, allocations: 0 / 0.7429 GB, free: 10.15 MB / 0.545 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.00283/2.08, allocations: 1.626 MB / 0.7445 GB, free: 8.684 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/2.08, allocations: 8.031 kB / 0.7445 GB, free: 8.676 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002162/2.081, allocations: 207 kB / 0.7447 GB, free: 8.543 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004559/2.085, allocations: 1.214 MB / 0.7459 GB, free: 7.777 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/2.086, allocations: 288.6 kB / 0.7461 GB, free: 7.496 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/2.086, allocations: 73.81 kB / 0.7462 GB, free: 7.449 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/2.086, allocations: 97.06 kB / 0.7463 GB, free: 7.387 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00236/2.088, allocations: 1.697 MB / 0.748 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/2.088, allocations: 0 / 0.748 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.56e-05/2.088, allocations: 40.38 kB / 0.748 GB, free: 6.379 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.719e-05/2.088, allocations: 75.56 kB / 0.7481 GB, free: 6.332 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/2.09, allocations: 1.608 MB / 0.7496 GB, free: 5.457 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008478/2.099, allocations: 8.582 MB / 0.758 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/2.1, allocations: 0.7658 MB / 0.7588 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007763/2.101, allocations: 0.7378 MB / 0.7595 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002978/2.104, allocations: 2.357 MB / 0.7618 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/2.104, allocations: 37.56 kB / 0.7618 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=182): time 3.076e-06/2.104, allocations: 0 / 0.7618 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=182): time 0.003276/2.107, allocations: 1.518 MB / 0.7633 GB, free: 9.176 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/2.107, allocations: 79.36 kB / 0.7634 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/2.107, allocations: 133.2 kB / 0.7635 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/2.107, allocations: 33.45 kB / 0.7636 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000279/2.108, allocations: 404.6 kB / 0.7639 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004721/2.108, allocations: 0.5882 MB / 0.7645 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002258/2.108, allocations: 147.6 kB / 0.7647 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002556/2.109, allocations: 310 kB / 0.7649 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/2.109, allocations: 338 kB / 0.7653 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006302/2.11, allocations: 498.7 kB / 0.7657 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/2.111, allocations: 1.013 MB / 0.7667 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/2.111, allocations: 4 kB / 0.7667 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of matching and sorting (n=194) (initialization): time 0.002394/2.114, allocations: 1.058 MB / 0.7678 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/2.114, allocations: 4 kB / 0.7678 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/2.114, allocations: 12.16 kB / 0.7678 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/2.114, allocations: 7.938 kB / 0.7678 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/2.114, allocations: 31.3 kB / 0.7678 GB, free: 4.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/2.114, allocations: 15.98 kB / 0.7678 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/2.114, allocations: 83.14 kB / 0.7679 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/2.114, allocations: 20 kB / 0.7679 GB, free: 4.715 MB / 0.5606 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.0004992/2.115, allocations: 223.4 kB / 0.7682 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/2.115, allocations: 54.84 kB / 0.7682 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/2.115, allocations: 31.89 kB / 0.7682 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.833e-05/2.115, allocations: 11.98 kB / 0.7682 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/2.115, allocations: 4 kB / 0.7683 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/2.115, allocations: 64 / 0.7683 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/2.117, allocations: 1.051 MB / 0.7693 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/2.117, allocations: 0 / 0.7693 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/2.117, allocations: 11.98 kB / 0.7693 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/2.117, allocations: 0 / 0.7693 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/2.117, allocations: 12 kB / 0.7693 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.332e-06/2.117, allocations: 4 kB / 0.7693 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/2.117, allocations: 0 / 0.7693 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/2.119, allocations: 1.196 MB / 0.7705 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002285/2.119, allocations: 156.3 kB / 0.7706 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/2.119, allocations: 4 kB / 0.7706 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/2.119, allocations: 3.984 kB / 0.7706 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/2.119, allocations: 23.98 kB / 0.7707 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/2.119, allocations: 16 kB / 0.7707 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.22e-05/2.12, allocations: 91.27 kB / 0.7708 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/2.12, allocations: 0 / 0.7708 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001215/2.121, allocations: 390.9 kB / 0.7711 GB, free: 1.367 MB / 0.5606 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.003055/2.124, allocations: 2.172 MB / 0.7732 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002258/2.126, allocations: 1.748 MB / 0.775 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/2.126, allocations: 0 / 0.775 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001695/2.128, allocations: 1.813 MB / 0.7767 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/2.13, allocations: 471.5 kB / 0.7772 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/2.135, allocations: 2.389 MB / 0.7795 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/2.136, allocations: 1.297 MB / 0.7808 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000694/2.137, allocations: 171.5 kB / 0.7809 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007411/2.137, allocations: 0.6203 MB / 0.7815 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of SimCode: time 6.42e-07/2.137, allocations: 4 kB / 0.7815 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2775/2.415, allocations: 41.72 MB / 0.8223 GB, free: 255.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/14.4, allocations: 9.328 kB / 0.8223 GB, free: 255.8 MB / 0.5919 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)