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.001228/0.001228, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001391/0.001391, allocations: 195.7 kB / 16.25 MB, free: 6.629 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.169/1.169, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1084/0.1084, allocations: 2.759 MB / 292.8 MB, free: 3.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 67.91 kB / 354 MB, free: 4.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07229/0.07341, allocations: 50.24 MB / 404.2 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.1761/0.2495, allocations: 82.27 MB / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02811/0.2777, allocations: 40.4 MB / 0.5146 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.2787, allocations: 4.938 kB / 0.5146 GB, free: 268 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.2813, allocations: 1.149 MB / 0.5157 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01595/0.2973, allocations: 6.411 MB / 0.5219 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007607/0.2981, allocations: 255.1 kB / 0.5222 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00134/0.2994, allocations: 1.335 MB / 0.5235 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.2996, allocations: 110.3 kB / 0.5236 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003189/0.2999, allocations: 418.5 kB / 0.524 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004617/0.3004, allocations: 0.4957 MB / 0.5245 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.3004, allocations: 42.8 kB / 0.5245 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.393/2.693, allocations: 165.5 MB / 0.6862 GB, free: 14.3 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/2.693, allocations: 159.1 kB / 0.6863 GB, free: 14.21 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009317/2.694, allocations: 0.5896 MB / 0.6869 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009039/2.703, allocations: 2.724 MB / 0.6896 GB, free: 11.96 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/2.703, allocations: 2.5 kB / 0.6896 GB, free: 11.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.142e-06/2.703, allocations: 0 / 0.6896 GB, free: 11.96 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.743e-05/2.703, allocations: 4 kB / 0.6896 GB, free: 11.96 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.001375/2.705, allocations: 1.58 MB / 0.6911 GB, free: 10.58 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/2.705, allocations: 12.03 kB / 0.6911 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001661/2.705, allocations: 204.5 kB / 0.6913 GB, free: 10.44 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003751/2.709, allocations: 1.207 MB / 0.6925 GB, free: 9.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/2.709, allocations: 281.4 kB / 0.6928 GB, free: 9.402 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.47e-05/2.709, allocations: 74.69 kB / 0.6928 GB, free: 9.363 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/2.709, allocations: 102 kB / 0.6929 GB, free: 9.293 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/2.711, allocations: 1.701 MB / 0.6946 GB, free: 8.293 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/2.711, allocations: 0 / 0.6946 GB, free: 8.293 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/2.711, allocations: 34.81 kB / 0.6946 GB, free: 8.285 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.964e-05/2.711, allocations: 74.55 kB / 0.6947 GB, free: 8.238 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/2.712, allocations: 1.61 MB / 0.6963 GB, free: 7.367 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/2.717, allocations: 8.592 MB / 0.7047 GB, free: 14.88 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006991/2.718, allocations: 0.7698 MB / 0.7054 GB, free: 14.56 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/2.719, allocations: 0.7378 MB / 0.7061 GB, free: 14.28 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001687/2.72, allocations: 2.352 MB / 0.7084 GB, free: 12.06 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.901e-05/2.72, allocations: 41.09 kB / 0.7085 GB, free: 12.02 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 2.044e-06/2.72, allocations: 0 / 0.7085 GB, free: 12.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=182): time 0.001581/2.722, allocations: 1.514 MB / 0.7099 GB, free: 11.07 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/2.722, allocations: 77.11 kB / 0.71 GB, free: 10.98 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.722e-05/2.722, allocations: 130.7 kB / 0.7101 GB, free: 10.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/2.722, allocations: 29.7 kB / 0.7102 GB, free: 10.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/2.722, allocations: 396.2 kB / 0.7105 GB, free: 10.45 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/2.723, allocations: 0.5666 MB / 0.7111 GB, free: 9.945 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/2.723, allocations: 143.6 kB / 0.7112 GB, free: 9.84 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.045e-05/2.723, allocations: 306 kB / 0.7115 GB, free: 9.535 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/2.723, allocations: 334.4 kB / 0.7118 GB, free: 9.391 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/2.724, allocations: 0.4893 MB / 0.7123 GB, free: 8.867 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009526/2.725, allocations: 1.025 MB / 0.7133 GB, free: 7.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.725, allocations: 0 / 0.7133 GB, free: 7.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001139/2.726, allocations: 1.059 MB / 0.7144 GB, free: 6.766 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/2.726, allocations: 4 kB / 0.7144 GB, free: 6.762 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/2.726, allocations: 4 kB / 0.7144 GB, free: 6.758 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/2.726, allocations: 4.406 kB / 0.7144 GB, free: 6.754 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/2.726, allocations: 34.89 kB / 0.7144 GB, free: 6.723 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/2.726, allocations: 7.234 kB / 0.7144 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/2.726, allocations: 130.7 kB / 0.7145 GB, free: 6.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/2.726, allocations: 23.98 kB / 0.7146 GB, free: 6.566 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.0002747/2.727, allocations: 218.8 kB / 0.7148 GB, free: 6.348 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.535e-05/2.727, allocations: 51.19 kB / 0.7148 GB, free: 6.297 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002671/2.73, allocations: 3.077 MB / 0.7178 GB, free: 3.188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001885/2.731, allocations: 1.84 MB / 0.7196 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/2.731, allocations: 0 / 0.7196 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/2.731, allocations: 7.969 kB / 0.7196 GB, free: 1.328 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004516/2.736, allocations: 4.571 MB / 0.7241 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/2.736, allocations: 4 kB / 0.7241 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/2.737, allocations: 236.2 kB / 0.7243 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/2.737, allocations: 4 kB / 0.7243 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/2.737, allocations: 32 kB / 0.7244 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/2.737, allocations: 6.906 kB / 0.7244 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/2.737, allocations: 7.875 kB / 0.7244 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/2.739, allocations: 1.954 MB / 0.7263 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/2.739, allocations: 238.9 kB / 0.7265 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.492e-05/2.739, allocations: 35.84 kB / 0.7265 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006113/2.74, allocations: 150.9 kB / 0.7267 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.772e-05/2.74, allocations: 97.31 kB / 0.7268 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/2.74, allocations: 47.98 kB / 0.7268 GB, free: 9.957 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001924/2.74, allocations: 231.1 kB / 0.727 GB, free: 9.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/2.74, allocations: 0 / 0.727 GB, free: 9.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0009514/2.741, allocations: 462.9 kB / 0.7275 GB, free: 9.277 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.002714/2.744, allocations: 2.972 MB / 0.7304 GB, free: 6.352 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003365/2.747, allocations: 2.128 MB / 0.7325 GB, free: 4.113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/2.747, allocations: 0 / 0.7325 GB, free: 4.113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00086/2.748, allocations: 0.9303 MB / 0.7334 GB, free: 3.203 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003763/2.752, allocations: 0.9512 MB / 0.7343 GB, free: 2.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008338/2.76, allocations: 8.79 MB / 0.7429 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/2.761, allocations: 1.324 MB / 0.7442 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006957/2.761, allocations: 179.2 kB / 0.7444 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005634/2.762, allocations: 0.6477 MB / 0.745 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/2.762, allocations: 4 kB / 0.745 GB, free: 7.207 MB / 0.4981 GB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical.Medium.setSat_p(1000000.0).