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.00103/0.001034, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009922/0.0009922, allocations: 193 kB / 16.14 MB, free: 6.668 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.272/1.272, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1029/0.1029, allocations: 2.756 MB / 292.7 MB, free: 3.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 59.91 kB / 353.8 MB, free: 4.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.08013, allocations: 50.24 MB / 404.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.1875/0.2677, allocations: 82.41 MB / 486.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03032/0.2981, allocations: 40.55 MB / 0.5147 GB, free: 336 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009867/0.2991, allocations: 7.875 kB / 0.5147 GB, free: 332 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002763/0.3019, allocations: 1.161 MB / 0.5158 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01807/0.32, allocations: 6.4 MB / 0.5221 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.321, allocations: 254.1 kB / 0.5223 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001718/0.3228, allocations: 1.308 MB / 0.5236 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.3229, allocations: 105.5 kB / 0.5237 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004252/0.3234, allocations: 411 kB / 0.5241 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005283/0.3239, allocations: 0.4901 MB / 0.5245 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.922e-05/0.3239, allocations: 24.34 kB / 0.5246 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.483/2.806, allocations: 152.4 MB / 0.6734 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001913/2.807, allocations: 134.9 kB / 0.6736 GB, free: 10.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/2.808, allocations: 0.5775 MB / 0.6741 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/2.818, allocations: 2.703 MB / 0.6768 GB, free: 8.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/2.818, allocations: 0 / 0.6768 GB, free: 8.535 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.52e-07/2.818, allocations: 0 / 0.6768 GB, free: 8.535 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/2.818, allocations: 0 / 0.6768 GB, free: 8.535 MB / 446.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.001291/2.819, allocations: 1.585 MB / 0.6783 GB, free: 7.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/2.819, allocations: 12.03 kB / 0.6783 GB, free: 7.168 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/2.82, allocations: 207.1 kB / 0.6785 GB, free: 7.035 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0039/2.824, allocations: 1.212 MB / 0.6797 GB, free: 6.273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/2.824, allocations: 278.3 kB / 0.68 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.872e-05/2.824, allocations: 76.19 kB / 0.6801 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/2.824, allocations: 95.44 kB / 0.6801 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/2.826, allocations: 1.699 MB / 0.6818 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/2.826, allocations: 0 / 0.6818 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.169e-05/2.826, allocations: 38.56 kB / 0.6818 GB, free: 4.883 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.655e-05/2.826, allocations: 82.55 kB / 0.6819 GB, free: 4.828 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/2.827, allocations: 1.605 MB / 0.6835 GB, free: 3.961 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005264/2.832, allocations: 8.597 MB / 0.6919 GB, free: 11.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007971/2.833, allocations: 0.7597 MB / 0.6926 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007036/2.834, allocations: 0.7394 MB / 0.6933 GB, free: 10.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001889/2.836, allocations: 2.361 MB / 0.6957 GB, free: 8.656 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/2.836, allocations: 30.56 kB / 0.6957 GB, free: 8.617 MB / 462.1 MB Notification: Performance of pre-optimization done (n=182): time 1.693e-06/2.836, allocations: 0 / 0.6957 GB, free: 8.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=182): time 0.001787/2.838, allocations: 1.511 MB / 0.6972 GB, free: 7.676 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/2.838, allocations: 81.11 kB / 0.6972 GB, free: 7.578 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/2.838, allocations: 133 kB / 0.6974 GB, free: 7.449 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/2.838, allocations: 29.52 kB / 0.6974 GB, free: 7.418 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/2.838, allocations: 397.6 kB / 0.6978 GB, free: 7.051 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003296/2.838, allocations: 0.5686 MB / 0.6983 GB, free: 6.547 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/2.839, allocations: 135.2 kB / 0.6985 GB, free: 6.445 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.222e-05/2.839, allocations: 306 kB / 0.6987 GB, free: 6.141 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/2.839, allocations: 342.6 kB / 0.6991 GB, free: 5.992 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005082/2.84, allocations: 496.8 kB / 0.6995 GB, free: 5.672 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/2.841, allocations: 1.021 MB / 0.7005 GB, free: 4.711 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/2.841, allocations: 4 kB / 0.7005 GB, free: 4.707 MB / 462.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001296/2.842, allocations: 1.058 MB / 0.7016 GB, free: 3.664 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/2.842, allocations: 4 kB / 0.7016 GB, free: 3.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/2.842, allocations: 4 kB / 0.7016 GB, free: 3.656 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/2.842, allocations: 8 kB / 0.7016 GB, free: 3.648 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/2.842, allocations: 26.98 kB / 0.7016 GB, free: 3.625 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/2.842, allocations: 14.8 kB / 0.7016 GB, free: 3.613 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004299/2.843, allocations: 118.9 kB / 0.7017 GB, free: 3.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/2.843, allocations: 19.98 kB / 0.7018 GB, free: 3.477 MB / 462.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.0003007/2.843, allocations: 223.5 kB / 0.702 GB, free: 3.254 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/2.843, allocations: 51.19 kB / 0.702 GB, free: 3.203 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/2.846, allocations: 3.084 MB / 0.705 GB, free: 92 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002005/2.848, allocations: 1.844 MB / 0.7068 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/2.848, allocations: 0 / 0.7068 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/2.848, allocations: 7.969 kB / 0.7068 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/2.853, allocations: 4.567 MB / 0.7113 GB, free: 9.707 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/2.853, allocations: 4 kB / 0.7113 GB, free: 9.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007942/2.854, allocations: 230.5 kB / 0.7115 GB, free: 9.492 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/2.854, allocations: 4 kB / 0.7115 GB, free: 9.488 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-05/2.854, allocations: 39.98 kB / 0.7116 GB, free: 9.449 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/2.854, allocations: 4 kB / 0.7116 GB, free: 9.445 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/2.854, allocations: 3.938 kB / 0.7116 GB, free: 9.441 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/2.856, allocations: 1.959 MB / 0.7135 GB, free: 7.434 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/2.856, allocations: 226.9 kB / 0.7137 GB, free: 7.191 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/2.856, allocations: 39.84 kB / 0.7138 GB, free: 7.152 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/2.857, allocations: 158.9 kB / 0.7139 GB, free: 6.996 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/2.857, allocations: 93.47 kB / 0.714 GB, free: 6.906 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/2.857, allocations: 40 kB / 0.714 GB, free: 6.867 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002231/2.857, allocations: 239 kB / 0.7143 GB, free: 6.633 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/2.857, allocations: 0 / 0.7143 GB, free: 6.633 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001019/2.858, allocations: 458.9 kB / 0.7147 GB, free: 6.184 MB / 478.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.002995/2.861, allocations: 2.98 MB / 0.7176 GB, free: 3.254 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001941/2.863, allocations: 2.05 MB / 0.7196 GB, free: 1.074 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/2.863, allocations: 0 / 0.7196 GB, free: 1.074 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009608/2.864, allocations: 0.936 MB / 0.7205 GB, free: 164 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/2.868, allocations: 0.9179 MB / 0.7214 GB, free: 15.24 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009558/2.878, allocations: 8.786 MB / 0.73 GB, free: 6.391 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000856/2.879, allocations: 1.328 MB / 0.7313 GB, free: 5.027 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007899/2.88, allocations: 179.2 kB / 0.7315 GB, free: 4.852 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006115/2.88, allocations: 0.6555 MB / 0.7321 GB, free: 4.195 MB / 494.1 MB Notification: Performance of SimCode: time 1.393e-06/2.88, allocations: 0 / 0.7321 GB, free: 4.195 MB / 494.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.Medium.setSat_p(1000000.0).