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.001566/0.001566, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001654/0.001654, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.235/1.235, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1067/0.1067, allocations: 2.767 MB / 292.7 MB, free: 3.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 55.91 kB / 353.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.08059, allocations: 50.24 MB / 404.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesSatSubcritical): time 0.1792/0.2599, allocations: 82.42 MB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0311/0.291, allocations: 40.55 MB / 0.5147 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008465/0.2919, allocations: 5.188 kB / 0.5147 GB, free: 264 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.2946, allocations: 1.156 MB / 0.5158 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01599/0.3106, allocations: 6.4 MB / 0.5221 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007032/0.3113, allocations: 253.9 kB / 0.5223 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.3125, allocations: 1.307 MB / 0.5236 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.3127, allocations: 99.83 kB / 0.5237 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003258/0.313, allocations: 411.8 kB / 0.5241 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004661/0.3135, allocations: 0.4979 MB / 0.5246 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.218e-05/0.3135, allocations: 23.38 kB / 0.5246 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.659/2.973, allocations: 154.4 MB / 0.6753 GB, free: 9.156 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/2.973, allocations: 131.3 kB / 0.6754 GB, free: 9.074 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/2.974, allocations: 0.5874 MB / 0.676 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009968/2.984, allocations: 2.704 MB / 0.6787 GB, free: 6.836 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/2.984, allocations: 0 / 0.6787 GB, free: 6.836 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.21e-07/2.984, allocations: 0 / 0.6787 GB, free: 6.836 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/2.984, allocations: 0 / 0.6787 GB, free: 6.836 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.985, allocations: 1.577 MB / 0.6802 GB, free: 5.488 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/2.985, allocations: 12.03 kB / 0.6802 GB, free: 5.477 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/2.986, allocations: 206.3 kB / 0.6804 GB, free: 5.344 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004046/2.99, allocations: 1.212 MB / 0.6816 GB, free: 4.582 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/2.99, allocations: 286.5 kB / 0.6819 GB, free: 4.301 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.905e-05/2.99, allocations: 73.69 kB / 0.6819 GB, free: 4.262 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.64e-05/2.99, allocations: 93.25 kB / 0.682 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/2.992, allocations: 1.702 MB / 0.6837 GB, free: 3.199 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/2.992, allocations: 0 / 0.6837 GB, free: 3.199 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.099e-05/2.992, allocations: 38.5 kB / 0.6837 GB, free: 3.191 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.395e-05/2.992, allocations: 78.56 kB / 0.6838 GB, free: 3.141 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/2.993, allocations: 1.599 MB / 0.6854 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/2.999, allocations: 8.609 MB / 0.6938 GB, free: 9.773 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008498/2.999, allocations: 0.7613 MB / 0.6945 GB, free: 9.461 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006763/3, allocations: 0.7374 MB / 0.6952 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00209/3.002, allocations: 2.351 MB / 0.6975 GB, free: 6.965 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/3.002, allocations: 41.55 kB / 0.6976 GB, free: 6.922 MB / 462.1 MB Notification: Performance of pre-optimization done (n=182): time 1.924e-06/3.002, allocations: 0 / 0.6976 GB, free: 6.922 MB / 462.1 MB Notification: Performance of matching and sorting (n=182): time 0.001867/3.004, allocations: 1.509 MB / 0.699 GB, free: 5.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/3.004, allocations: 77.11 kB / 0.6991 GB, free: 5.887 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003449/3.005, allocations: 137.2 kB / 0.6992 GB, free: 5.754 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/3.005, allocations: 25.7 kB / 0.6993 GB, free: 5.723 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/3.005, allocations: 406 kB / 0.6997 GB, free: 5.352 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/3.005, allocations: 0.5573 MB / 0.7002 GB, free: 4.852 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/3.005, allocations: 143.8 kB / 0.7003 GB, free: 4.746 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.472e-05/3.006, allocations: 306 kB / 0.7006 GB, free: 4.441 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004267/3.006, allocations: 339.4 kB / 0.701 GB, free: 4.293 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/3.007, allocations: 499.5 kB / 0.7014 GB, free: 3.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/3.008, allocations: 1.017 MB / 0.7024 GB, free: 2.879 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/3.008, allocations: 4 kB / 0.7024 GB, free: 2.875 MB / 462.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001355/3.009, allocations: 1.055 MB / 0.7035 GB, free: 1.836 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/3.009, allocations: 4 kB / 0.7035 GB, free: 1.832 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/3.009, allocations: 4 kB / 0.7035 GB, free: 1.828 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/3.009, allocations: 8 kB / 0.7035 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/3.009, allocations: 34.92 kB / 0.7035 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/3.009, allocations: 11.38 kB / 0.7035 GB, free: 1.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/3.01, allocations: 118.8 kB / 0.7036 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/3.01, allocations: 20 kB / 0.7037 GB, free: 1.645 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.0003601/3.01, allocations: 227.3 kB / 0.7039 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/3.01, allocations: 51.19 kB / 0.7039 GB, free: 1.367 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00317/3.014, allocations: 3.082 MB / 0.7069 GB, free: 14.25 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002022/3.016, allocations: 1.836 MB / 0.7087 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/3.016, allocations: 0 / 0.7087 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/3.016, allocations: 7.969 kB / 0.7087 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005448/3.021, allocations: 4.577 MB / 0.7132 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/3.021, allocations: 7.938 kB / 0.7132 GB, free: 7.859 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00062/3.022, allocations: 234.5 kB / 0.7134 GB, free: 7.645 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/3.022, allocations: 4 kB / 0.7134 GB, free: 7.641 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-05/3.022, allocations: 32 kB / 0.7135 GB, free: 7.609 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/3.022, allocations: 4 kB / 0.7135 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/3.022, allocations: 3.938 kB / 0.7135 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/3.024, allocations: 1.963 MB / 0.7154 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003745/3.024, allocations: 226.9 kB / 0.7156 GB, free: 5.348 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/3.025, allocations: 35.84 kB / 0.7156 GB, free: 5.312 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006647/3.025, allocations: 162.9 kB / 0.7158 GB, free: 5.152 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/3.025, allocations: 97.41 kB / 0.7159 GB, free: 5.059 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.795e-05/3.025, allocations: 44 kB / 0.7159 GB, free: 5.016 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002411/3.026, allocations: 231.1 kB / 0.7161 GB, free: 4.789 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.31e-07/3.026, allocations: 0 / 0.7161 GB, free: 4.789 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001193/3.027, allocations: 458.9 kB / 0.7166 GB, free: 4.34 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.003285/3.03, allocations: 2.966 MB / 0.7195 GB, free: 1.422 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00218/3.032, allocations: 2.05 MB / 0.7215 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/3.032, allocations: 0 / 0.7215 GB, free: 15.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/3.033, allocations: 0.9336 MB / 0.7224 GB, free: 14.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004129/3.038, allocations: 0.9088 MB / 0.7233 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/3.049, allocations: 8.801 MB / 0.7319 GB, free: 4.562 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008404/3.05, allocations: 1.328 MB / 0.7332 GB, free: 3.199 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008037/3.051, allocations: 181.8 kB / 0.7333 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006286/3.051, allocations: 0.6516 MB / 0.734 GB, free: 2.371 MB / 494.1 MB Notification: Performance of SimCode: time 6.41e-07/3.051, allocations: 0 / 0.734 GB, free: 2.371 MB / 494.1 MB [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).