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.0007844/0.0007846, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005639/0.005639, allocations: 170.9 kB / 16.27 MB, free: 6.652 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1208/0.1208, allocations: 2.786 MB / 294.2 MB, free: 4.332 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 8 kB / 356.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.08322, allocations: 51.26 MB / 407.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSatSubcritical): time 0.2163/0.2996, allocations: 80.91 MB / 488.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03245/0.332, allocations: 39.93 MB / 0.516 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.3331, allocations: 7.781 kB / 0.516 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.3361, allocations: 1.147 MB / 0.5172 GB, free: 32 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02/0.3561, allocations: 6.409 MB / 0.5234 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3572, allocations: 246 kB / 0.5237 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001973/0.3591, allocations: 1.31 MB / 0.5249 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.3593, allocations: 106.9 kB / 0.525 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005872/0.3599, allocations: 411.2 kB / 0.5254 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006317/0.3606, allocations: 0.4985 MB / 0.5259 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.3607, allocations: 23.62 kB / 0.5259 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.519/2.879, allocations: 152.4 MB / 0.6748 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002123/2.879, allocations: 128.5 kB / 0.6749 GB, free: 15.32 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/2.881, allocations: 0.612 MB / 0.6755 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01413/2.895, allocations: 2.676 MB / 0.6781 GB, free: 13 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/2.895, allocations: 0 / 0.6781 GB, free: 13 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/2.895, allocations: 4 kB / 0.6781 GB, free: 13 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/2.895, allocations: 0 / 0.6781 GB, free: 13 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.001835/2.897, allocations: 1.394 MB / 0.6795 GB, free: 11.73 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/2.897, allocations: 8.031 kB / 0.6795 GB, free: 11.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001929/2.897, allocations: 208.1 kB / 0.6797 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004132/2.901, allocations: 1.208 MB / 0.6809 GB, free: 10.83 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/2.901, allocations: 281.1 kB / 0.6812 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/2.901, allocations: 76.59 kB / 0.6812 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/2.901, allocations: 94.31 kB / 0.6813 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/2.904, allocations: 1.701 MB / 0.683 GB, free: 9.453 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/2.904, allocations: 0 / 0.683 GB, free: 9.453 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.628e-05/2.904, allocations: 38.38 kB / 0.683 GB, free: 9.445 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.119e-05/2.904, allocations: 74.5 kB / 0.6831 GB, free: 9.398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/2.906, allocations: 1.608 MB / 0.6847 GB, free: 8.531 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007137/2.913, allocations: 8.602 MB / 0.6931 GB, free: 44 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/2.914, allocations: 0.7628 MB / 0.6938 GB, free: 15.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000779/2.914, allocations: 0.7379 MB / 0.6945 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002619/2.917, allocations: 2.359 MB / 0.6968 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/2.917, allocations: 30.56 kB / 0.6969 GB, free: 13.19 MB / 478.1 MB Notification: Performance of pre-optimization done (n=182): time 1.533e-06/2.917, allocations: 0 / 0.6969 GB, free: 13.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=182): time 0.001879/2.919, allocations: 1.511 MB / 0.6983 GB, free: 12.25 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/2.919, allocations: 88.86 kB / 0.6984 GB, free: 12.15 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/2.919, allocations: 132.9 kB / 0.6985 GB, free: 12.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/2.919, allocations: 33.64 kB / 0.6986 GB, free: 11.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/2.919, allocations: 388.7 kB / 0.699 GB, free: 11.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000416/2.92, allocations: 0.5665 MB / 0.6995 GB, free: 11.12 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/2.92, allocations: 98.45 kB / 0.6996 GB, free: 11.04 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/2.92, allocations: 313.1 kB / 0.6999 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/2.921, allocations: 336.8 kB / 0.7002 GB, free: 10.59 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/2.921, allocations: 496.4 kB / 0.7007 GB, free: 10.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/2.922, allocations: 1.029 MB / 0.7017 GB, free: 9.035 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/2.922, allocations: 0 / 0.7017 GB, free: 9.035 MB / 478.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.001418/2.924, allocations: 1.044 MB / 0.7027 GB, free: 8.008 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/2.924, allocations: 8.406 kB / 0.7027 GB, free: 8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/2.924, allocations: 8 kB / 0.7027 GB, free: 7.992 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/2.924, allocations: 4 kB / 0.7027 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/2.924, allocations: 35.08 kB / 0.7028 GB, free: 7.957 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/2.924, allocations: 6.531 kB / 0.7028 GB, free: 7.953 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005015/2.925, allocations: 122.7 kB / 0.7029 GB, free: 7.832 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/2.925, allocations: 24 kB / 0.7029 GB, free: 7.809 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.0003478/2.925, allocations: 223.1 kB / 0.7031 GB, free: 7.586 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.94e-05/2.925, allocations: 51.28 kB / 0.7032 GB, free: 7.535 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00349/2.929, allocations: 3.08 MB / 0.7062 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002287/2.931, allocations: 1.833 MB / 0.708 GB, free: 2.582 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/2.931, allocations: 3.938 kB / 0.708 GB, free: 2.578 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/2.931, allocations: 7.969 kB / 0.708 GB, free: 2.57 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005966/2.937, allocations: 4.569 MB / 0.7124 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/2.937, allocations: 2.906 kB / 0.7124 GB, free: 14.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006315/2.937, allocations: 242.7 kB / 0.7127 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/2.938, allocations: 7.984 kB / 0.7127 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.109e-05/2.938, allocations: 32 kB / 0.7127 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/2.938, allocations: 4 kB / 0.7127 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/2.938, allocations: 7.938 kB / 0.7127 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/2.94, allocations: 1.952 MB / 0.7146 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/2.94, allocations: 274.6 kB / 0.7149 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.089e-05/2.94, allocations: 28 kB / 0.7149 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006752/2.941, allocations: 146.9 kB / 0.7151 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/2.941, allocations: 104.6 kB / 0.7152 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/2.941, allocations: 39.98 kB / 0.7152 GB, free: 11.17 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002356/2.942, allocations: 231.1 kB / 0.7154 GB, free: 10.94 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/2.942, allocations: 0 / 0.7154 GB, free: 10.94 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001116/2.943, allocations: 463 kB / 0.7159 GB, free: 10.49 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.003387/2.946, allocations: 2.966 MB / 0.7188 GB, free: 7.574 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/2.948, allocations: 2.043 MB / 0.7208 GB, free: 5.422 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/2.949, allocations: 8.062 kB / 0.7208 GB, free: 5.414 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/2.95, allocations: 0.9401 MB / 0.7217 GB, free: 4.496 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004654/2.954, allocations: 0.9087 MB / 0.7226 GB, free: 3.586 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/2.966, allocations: 8.825 MB / 0.7312 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00097/2.967, allocations: 1.336 MB / 0.7325 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0008546/2.967, allocations: 182.4 kB / 0.7327 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006832/2.968, allocations: 0.6477 MB / 0.7333 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of SimCode: time 2.565e-06/2.968, allocations: 0 / 0.7333 GB, free: 8.496 MB / 0.4981 GB [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).