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.001332/0.001332, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001629/0.001629, allocations: 192.4 kB / 16.25 MB, free: 6.582 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.333/1.333, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1068/0.1068, allocations: 2.764 MB / 292.8 MB, free: 3.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 63.91 kB / 354 MB, free: 4.812 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07593/0.0773, allocations: 50.24 MB / 404.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical): time 0.194/0.2714, allocations: 82.26 MB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03115/0.3026, allocations: 40.4 MB / 0.5145 GB, free: 340 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.3037, allocations: 8.844 kB / 0.5146 GB, free: 336 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002834/0.3066, allocations: 1.156 MB / 0.5157 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01834/0.3249, allocations: 6.408 MB / 0.5219 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009281/0.3259, allocations: 258.8 kB / 0.5222 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.3275, allocations: 1.33 MB / 0.5235 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.3276, allocations: 111.2 kB / 0.5236 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003785/0.328, allocations: 419.8 kB / 0.524 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.3286, allocations: 0.4928 MB / 0.5245 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.308e-05/0.3286, allocations: 40.5 kB / 0.5245 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.38/3.709, allocations: 167.6 MB / 0.6882 GB, free: 12.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/3.709, allocations: 152.7 kB / 0.6884 GB, free: 12.4 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001093/3.71, allocations: 0.5913 MB / 0.6889 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009744/3.72, allocations: 2.717 MB / 0.6916 GB, free: 10.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/3.72, allocations: 0 / 0.6916 GB, free: 10.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.172e-06/3.72, allocations: 0 / 0.6916 GB, free: 10.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.464e-05/3.72, allocations: 3.938 kB / 0.6916 GB, free: 10.15 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.001802/3.722, allocations: 1.584 MB / 0.6931 GB, free: 8.77 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/3.722, allocations: 8.031 kB / 0.6932 GB, free: 8.762 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/3.722, allocations: 212.7 kB / 0.6934 GB, free: 8.629 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004012/3.726, allocations: 1.21 MB / 0.6945 GB, free: 7.867 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/3.726, allocations: 281.8 kB / 0.6948 GB, free: 7.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/3.726, allocations: 76.19 kB / 0.6949 GB, free: 7.547 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-05/3.726, allocations: 98.36 kB / 0.695 GB, free: 7.48 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001987/3.728, allocations: 1.698 MB / 0.6966 GB, free: 6.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/3.728, allocations: 4 kB / 0.6966 GB, free: 6.477 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/3.729, allocations: 38.56 kB / 0.6967 GB, free: 6.469 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.172e-05/3.729, allocations: 74.61 kB / 0.6967 GB, free: 6.422 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/3.73, allocations: 1.606 MB / 0.6983 GB, free: 5.551 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005376/3.735, allocations: 8.594 MB / 0.7067 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007056/3.736, allocations: 0.7627 MB / 0.7074 GB, free: 12.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000592/3.737, allocations: 0.7419 MB / 0.7082 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001787/3.739, allocations: 2.355 MB / 0.7105 GB, free: 10.25 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/3.739, allocations: 30.56 kB / 0.7105 GB, free: 10.21 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 2.014e-06/3.739, allocations: 0 / 0.7105 GB, free: 10.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=182): time 0.001636/3.74, allocations: 1.517 MB / 0.712 GB, free: 9.262 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/3.74, allocations: 79.73 kB / 0.7121 GB, free: 9.168 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/3.74, allocations: 131.4 kB / 0.7122 GB, free: 9.039 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/3.74, allocations: 27.58 kB / 0.7122 GB, free: 9.008 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/3.741, allocations: 395.6 kB / 0.7126 GB, free: 8.641 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/3.741, allocations: 0.5699 MB / 0.7131 GB, free: 8.137 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/3.741, allocations: 135.6 kB / 0.7133 GB, free: 8.035 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/3.741, allocations: 309.1 kB / 0.7136 GB, free: 7.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/3.742, allocations: 345.5 kB / 0.7139 GB, free: 7.461 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/3.742, allocations: 492.6 kB / 0.7144 GB, free: 6.938 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/3.743, allocations: 1.018 MB / 0.7154 GB, free: 5.879 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/3.743, allocations: 6.344 kB / 0.7154 GB, free: 5.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001221/3.744, allocations: 1.053 MB / 0.7164 GB, free: 4.836 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/3.744, allocations: 11.91 kB / 0.7164 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/3.744, allocations: 0 / 0.7164 GB, free: 4.824 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/3.744, allocations: 8 kB / 0.7164 GB, free: 4.816 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/3.745, allocations: 33.89 kB / 0.7164 GB, free: 4.789 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/3.745, allocations: 12.05 kB / 0.7165 GB, free: 4.781 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/3.745, allocations: 127.2 kB / 0.7166 GB, free: 4.656 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/3.745, allocations: 27.98 kB / 0.7166 GB, free: 4.629 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.0002668/3.745, allocations: 218.9 kB / 0.7168 GB, free: 4.41 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/3.745, allocations: 51.19 kB / 0.7169 GB, free: 4.359 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002986/3.748, allocations: 3.088 MB / 0.7199 GB, free: 1.242 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001853/3.75, allocations: 1.845 MB / 0.7217 GB, free: 15.39 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/3.75, allocations: 4 kB / 0.7217 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/3.75, allocations: 7.969 kB / 0.7217 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/3.755, allocations: 4.568 MB / 0.7262 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/3.755, allocations: 0 / 0.7262 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005607/3.756, allocations: 228.5 kB / 0.7264 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/3.756, allocations: 4 kB / 0.7264 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/3.756, allocations: 39.98 kB / 0.7264 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/3.756, allocations: 4 kB / 0.7264 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/3.756, allocations: 15.03 kB / 0.7264 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/3.758, allocations: 1.948 MB / 0.7283 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/3.758, allocations: 227 kB / 0.7286 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.154e-05/3.758, allocations: 35.84 kB / 0.7286 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006025/3.758, allocations: 162.9 kB / 0.7287 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/3.759, allocations: 93.47 kB / 0.7288 GB, free: 8.059 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.007e-05/3.759, allocations: 40 kB / 0.7289 GB, free: 8.02 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002004/3.759, allocations: 235 kB / 0.7291 GB, free: 7.789 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.12e-07/3.759, allocations: 0 / 0.7291 GB, free: 7.789 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008997/3.76, allocations: 461.9 kB / 0.7295 GB, free: 7.34 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.002892/3.763, allocations: 2.959 MB / 0.7324 GB, free: 4.422 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003444/3.766, allocations: 2.132 MB / 0.7345 GB, free: 2.18 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/3.766, allocations: 0 / 0.7345 GB, free: 2.18 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/3.767, allocations: 0.9351 MB / 0.7354 GB, free: 1.266 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003877/3.771, allocations: 0.9511 MB / 0.7363 GB, free: 320 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009138/3.78, allocations: 8.788 MB / 0.7449 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008699/3.781, allocations: 1.328 MB / 0.7462 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006878/3.782, allocations: 179.2 kB / 0.7464 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/3.782, allocations: 0.6555 MB / 0.747 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of SimCode: time 5.71e-07/3.782, allocations: 0 / 0.747 GB, free: 5.27 MB / 0.4981 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical.Medium.setSat_p(1000000.0).