Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 103.8 kB / 16.35 MB, free: 5.824 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.00114/0.00114, allocations: 189.1 kB / 17.29 MB, free: 5.48 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.233/1.233, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 287 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.893/0.893, allocations: 169.3 MB / 0.4989 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 97.03 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1682, allocations: 86.97 MB / 0.6816 GB, free: 7.422 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.2767/0.4449, allocations: 14.41 MB / 0.6957 GB, free: 10.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00486/0.4498, allocations: 3.646 MB / 0.6992 GB, free: 8.734 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005946/0.4504, allocations: 24.41 kB / 0.6992 GB, free: 8.723 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006006/0.4511, allocations: 205.2 kB / 0.6994 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.4525, allocations: 0.5816 MB / 0.7 GB, free: 8.258 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000948/0.4534, allocations: 399.3 kB / 0.7004 GB, free: 8.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.4548, allocations: 1.088 MB / 0.7014 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.4552, allocations: 315.8 kB / 0.7017 GB, free: 7.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009061/0.4561, allocations: 388.8 kB / 0.7021 GB, free: 7.242 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.4565, allocations: 306.2 kB / 0.7024 GB, free: 7.105 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.515e-05/0.4566, allocations: 32.34 kB / 0.7024 GB, free: 7.105 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006064/0.4572, allocations: 263.8 kB / 0.7027 GB, free: 7 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.4573, allocations: 98.17 kB / 0.7028 GB, free: 6.941 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.4576, allocations: 214.8 kB / 0.703 GB, free: 6.816 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008427/0.4584, allocations: 0.5861 MB / 0.7036 GB, free: 6.598 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4584, allocations: 4.688 kB / 0.7036 GB, free: 6.594 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4584, allocations: 0 / 0.7036 GB, free: 6.594 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.4584, allocations: 0.625 kB / 0.7036 GB, free: 6.594 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001035/0.4595, allocations: 0.7473 MB / 0.7043 GB, free: 5.984 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.4595, allocations: 9.094 kB / 0.7043 GB, free: 5.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.4597, allocations: 46.34 kB / 0.7044 GB, free: 5.965 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/0.4604, allocations: 467.5 kB / 0.7048 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.4604, allocations: 26 kB / 0.7048 GB, free: 5.613 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/0.4605, allocations: 33.73 kB / 0.7049 GB, free: 5.598 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.461, allocations: 301.8 kB / 0.7051 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.4611, allocations: 3.938 kB / 0.7051 GB, free: 5.445 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.4611, allocations: 11.41 kB / 0.7052 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.4611, allocations: 12.41 kB / 0.7052 GB, free: 5.434 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004531/0.4616, allocations: 193.4 kB / 0.7054 GB, free: 5.375 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.4632, allocations: 1.476 MB / 0.7068 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.4636, allocations: 168.5 kB / 0.707 GB, free: 4.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.4638, allocations: 67.95 kB / 0.707 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.4639, allocations: 86.42 kB / 0.7071 GB, free: 3.992 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.4642, allocations: 122.6 kB / 0.7072 GB, free: 3.926 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 2.344e-06/0.4642, allocations: 0 / 0.7072 GB, free: 3.926 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006018/0.4648, allocations: 238.3 kB / 0.7074 GB, free: 3.828 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.4649, allocations: 63.03 kB / 0.7075 GB, free: 3.758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003485/0.4652, allocations: 347.1 kB / 0.7078 GB, free: 3.578 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.4652, allocations: 32.14 kB / 0.7079 GB, free: 3.543 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.4654, allocations: 219.5 kB / 0.7081 GB, free: 3.359 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.4654, allocations: 47.36 kB / 0.7081 GB, free: 3.324 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.393e-05/0.4655, allocations: 62.56 kB / 0.7082 GB, free: 3.281 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.859e-05/0.4656, allocations: 340 kB / 0.7085 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.4658, allocations: 69.72 kB / 0.7086 GB, free: 2.938 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.466, allocations: 149.3 kB / 0.7087 GB, free: 2.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.4664, allocations: 251.8 kB / 0.709 GB, free: 2.637 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4664, allocations: 1.219 kB / 0.709 GB, free: 2.637 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005555/0.4669, allocations: 305.4 kB / 0.7092 GB, free: 2.488 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.467, allocations: 37.88 kB / 0.7093 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.467, allocations: 3.5 kB / 0.7093 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.467, allocations: 4.75 kB / 0.7093 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.4672, allocations: 53.28 kB / 0.7093 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.4673, allocations: 13.58 kB / 0.7094 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.4675, allocations: 39.52 kB / 0.7094 GB, free: 2.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.4676, allocations: 14 kB / 0.7094 GB, free: 2.414 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.000141/0.4677, allocations: 157 kB / 0.7096 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.4678, allocations: 32.16 kB / 0.7096 GB, free: 2.258 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004318/0.4682, allocations: 190.7 kB / 0.7098 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.4682, allocations: 1.75 kB / 0.7098 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4682, allocations: 8.781 kB / 0.7098 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000376/0.4686, allocations: 488.2 kB / 0.7102 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004224/0.4691, allocations: 349.4 kB / 0.7106 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4691, allocations: 0.6562 kB / 0.7106 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.4692, allocations: 29.42 kB / 0.7106 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.4693, allocations: 1.375 kB / 0.7106 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.4693, allocations: 5.672 kB / 0.7106 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.4693, allocations: 1.75 kB / 0.7106 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4693, allocations: 8.719 kB / 0.7106 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005849/0.4699, allocations: 284.8 kB / 0.7109 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.47, allocations: 121 kB / 0.711 GB, free: 1.172 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.92e-05/0.4701, allocations: 6.688 kB / 0.711 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.4703, allocations: 17.7 kB / 0.711 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.4704, allocations: 21 kB / 0.7111 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.4704, allocations: 11.06 kB / 0.7111 GB, free: 1.152 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002492/0.4706, allocations: 246.5 kB / 0.7113 GB, free: 1.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4707, allocations: 0 / 0.7113 GB, free: 1.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004829/0.4711, allocations: 125.2 kB / 0.7114 GB, free: 0.9922 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003469/0.4715, allocations: 206.8 kB / 0.7116 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004758/0.472, allocations: 231.4 kB / 0.7118 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.472, allocations: 5 kB / 0.7118 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.4722, allocations: 76.5 kB / 0.7119 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008658/0.473, allocations: 203.6 kB / 0.7121 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.4744, allocations: 0.7378 MB / 0.7128 GB, free: 200 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.4747, allocations: 0.7904 MB / 0.7136 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002612/0.475, allocations: 65.16 kB / 0.7137 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.353e-05/0.4751, allocations: 32.98 kB / 0.7137 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of SimCode: time 6.91e-07/0.4751, allocations: 0 / 0.7137 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of Templates: time 0.01461/0.4897, allocations: 7.149 MB / 0.7207 GB, free: 13.89 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)