Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestStatesSatSubcritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestStatesSatSubcritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_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.0008143/0.0008141, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004835/0.004836, allocations: 170 kB / 16.26 MB, free: 6.613 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.318/1.318, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1292/0.1292, allocations: 2.783 MB / 294.2 MB, free: 4.348 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002963, allocations: 8 kB / 356.3 MB, free: 3.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09082, allocations: 51.25 MB / 407.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical): time 0.2099/0.3008, allocations: 80.92 MB / 488.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03226/0.3331, allocations: 39.92 MB / 0.516 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.3341, allocations: 9.344 kB / 0.516 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002945/0.3371, allocations: 1.152 MB / 0.5172 GB, free: 116 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02189/0.3589, allocations: 6.4 MB / 0.5234 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.3601, allocations: 246.3 kB / 0.5237 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002141/0.3622, allocations: 1.312 MB / 0.5249 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000262/0.3625, allocations: 113.5 kB / 0.525 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008289/0.3634, allocations: 409 kB / 0.5254 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000664/0.364, allocations: 0.4944 MB / 0.5259 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.466e-05/0.3641, allocations: 23.38 kB / 0.5259 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.808/3.173, allocations: 154.4 MB / 0.6767 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/3.173, allocations: 141.7 kB / 0.6768 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001157/3.174, allocations: 0.6025 MB / 0.6774 GB, free: 13.12 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01154/3.185, allocations: 2.687 MB / 0.68 GB, free: 11.28 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/3.186, allocations: 0 / 0.68 GB, free: 11.28 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.473e-06/3.186, allocations: 0 / 0.68 GB, free: 11.28 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.39e-05/3.186, allocations: 0 / 0.68 GB, free: 11.28 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.001709/3.187, allocations: 1.397 MB / 0.6814 GB, free: 10 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/3.187, allocations: 8.031 kB / 0.6814 GB, free: 9.996 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002088/3.188, allocations: 203.3 kB / 0.6816 GB, free: 9.863 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/3.192, allocations: 1.215 MB / 0.6828 GB, free: 9.098 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002415/3.192, allocations: 281.5 kB / 0.683 GB, free: 8.82 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.591e-05/3.192, allocations: 74.94 kB / 0.6831 GB, free: 8.781 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/3.192, allocations: 94.25 kB / 0.6832 GB, free: 8.719 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002005/3.194, allocations: 1.699 MB / 0.6849 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/3.194, allocations: 0 / 0.6849 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/3.194, allocations: 38.5 kB / 0.6849 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.247e-05/3.194, allocations: 78.73 kB / 0.685 GB, free: 7.668 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/3.196, allocations: 1.602 MB / 0.6865 GB, free: 6.805 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006171/3.202, allocations: 8.603 MB / 0.6949 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008194/3.203, allocations: 0.7611 MB / 0.6957 GB, free: 14 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006957/3.204, allocations: 0.7415 MB / 0.6964 GB, free: 13.72 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002322/3.206, allocations: 2.348 MB / 0.6987 GB, free: 11.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/3.206, allocations: 37.94 kB / 0.6987 GB, free: 11.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 1.973e-06/3.206, allocations: 0 / 0.6987 GB, free: 11.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=182): time 0.001948/3.208, allocations: 1.51 MB / 0.7002 GB, free: 10.52 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/3.208, allocations: 77.11 kB / 0.7003 GB, free: 10.43 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/3.208, allocations: 136.9 kB / 0.7004 GB, free: 10.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/3.208, allocations: 31.7 kB / 0.7004 GB, free: 10.26 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/3.209, allocations: 399.1 kB / 0.7008 GB, free: 9.895 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/3.209, allocations: 0.5628 MB / 0.7014 GB, free: 9.395 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/3.209, allocations: 98.14 kB / 0.7015 GB, free: 9.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/3.209, allocations: 309.6 kB / 0.7018 GB, free: 9.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004812/3.21, allocations: 340.1 kB / 0.7021 GB, free: 8.816 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006445/3.21, allocations: 0.4889 MB / 0.7026 GB, free: 8.285 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/3.212, allocations: 1.015 MB / 0.7036 GB, free: 7.234 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/3.212, allocations: 4 kB / 0.7036 GB, free: 7.23 MB / 478.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001578/3.213, allocations: 1.042 MB / 0.7046 GB, free: 6.203 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/3.213, allocations: 8.406 kB / 0.7046 GB, free: 6.195 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/3.213, allocations: 3.938 kB / 0.7046 GB, free: 6.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/3.213, allocations: 12 kB / 0.7046 GB, free: 6.18 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/3.214, allocations: 34.61 kB / 0.7046 GB, free: 6.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/3.214, allocations: 10.84 kB / 0.7046 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/3.214, allocations: 126.7 kB / 0.7048 GB, free: 6.016 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/3.214, allocations: 16 kB / 0.7048 GB, free: 6 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.000382/3.215, allocations: 222.8 kB / 0.705 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/3.215, allocations: 51.27 kB / 0.705 GB, free: 5.727 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/3.218, allocations: 3.085 MB / 0.7081 GB, free: 2.609 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002195/3.221, allocations: 1.839 MB / 0.7099 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/3.221, allocations: 0 / 0.7099 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.662e-05/3.221, allocations: 7.969 kB / 0.7099 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006047/3.227, allocations: 4.579 MB / 0.7143 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/3.227, allocations: 0 / 0.7143 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/3.227, allocations: 234.2 kB / 0.7146 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.366e-05/3.227, allocations: 7.984 kB / 0.7146 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/3.227, allocations: 36 kB / 0.7146 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.416e-06/3.227, allocations: 4 kB / 0.7146 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/3.227, allocations: 7.938 kB / 0.7146 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/3.23, allocations: 1.951 MB / 0.7165 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003495/3.23, allocations: 266.7 kB / 0.7168 GB, free: 9.668 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.263e-05/3.23, allocations: 24 kB / 0.7168 GB, free: 9.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006961/3.231, allocations: 150.9 kB / 0.7169 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/3.231, allocations: 97.47 kB / 0.717 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.727e-05/3.231, allocations: 55.92 kB / 0.7171 GB, free: 9.348 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002268/3.231, allocations: 231.1 kB / 0.7173 GB, free: 9.121 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/3.231, allocations: 0 / 0.7173 GB, free: 9.121 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001092/3.232, allocations: 459 kB / 0.7177 GB, free: 8.672 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: 20 (state1.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.dewStateOnePhase.state.phase,$cse8.phase,$cse9.phase,$cse10.phase,$cse11.phase,$cse12.phase,state2.phase,completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,$cse2.phase,$cse3.phase,$cse4.phase,$cse5.phase,$cse6.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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.003208/3.236, allocations: 2.963 MB / 0.7206 GB, free: 5.758 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/3.238, allocations: 2.048 MB / 0.7226 GB, free: 3.605 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/3.238, allocations: 0 / 0.7226 GB, free: 3.605 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/3.239, allocations: 0.9372 MB / 0.7236 GB, free: 2.688 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004467/3.243, allocations: 0.9023 MB / 0.7244 GB, free: 1.785 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/3.253, allocations: 8.834 MB / 0.7331 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000987/3.254, allocations: 1.328 MB / 0.7344 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007994/3.255, allocations: 179.2 kB / 0.7345 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006926/3.256, allocations: 0.6555 MB / 0.7352 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of SimCode: time 9.71e-07/3.256, allocations: 0 / 0.7352 GB, free: 6.684 MB / 0.4981 GB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical.Medium.setSat_p(1000000.0).