Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV") translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, 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.00129/0.00129, allocations: 196.4 kB / 16.14 MB, free: 6.688 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.486/1.486, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.043/3.043, allocations: 472.6 MB / 0.7447 GB, free: 5.004 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 65.64 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4047, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV): time 0.007541/0.4123, allocations: 6.042 MB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00416/0.4165, allocations: 1.803 MB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.4184, allocations: 35.88 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.4195, allocations: 186.3 kB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.4206, allocations: 143 kB / 1.076 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.422, allocations: 0.5191 MB / 1.076 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001988/0.424, allocations: 1.574 MB / 1.078 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.4253, allocations: 0.975 MB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006402/0.4259, allocations: 473.5 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005203/0.4265, allocations: 0.5669 MB / 1.08 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.4266, allocations: 76 kB / 1.08 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.4268, allocations: 80 kB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.427, allocations: 262.7 kB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000494/0.4275, allocations: 0.6171 MB / 1.081 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001598/0.4291, allocations: 2.118 MB / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4291, allocations: 0 / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.112e-06/0.4291, allocations: 4 kB / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.139e-05/0.4291, allocations: 0 / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003097/0.4322, allocations: 1.754 MB / 1.084 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4323, allocations: 8.031 kB / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.4326, allocations: 166.9 kB / 1.084 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.4338, allocations: 0.8526 MB / 1.085 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.4338, allocations: 94.75 kB / 1.085 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.434, allocations: 120.4 kB / 1.086 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.4361, allocations: 1.214 MB / 1.087 GB, free: 7.008 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.4362, allocations: 11.88 kB / 1.087 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.133e-05/0.4363, allocations: 52 kB / 1.087 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.4363, allocations: 28 kB / 1.087 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.4382, allocations: 0.942 MB / 1.088 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005951/0.4441, allocations: 4.084 MB / 1.092 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002683/0.4469, allocations: 1.16 MB / 1.093 GB, free: 0.582 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000846/0.4477, allocations: 470.8 kB / 1.093 GB, free: 124 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.003e-05/0.4478, allocations: 16.62 kB / 1.093 GB, free: 104 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.4479, allocations: 47.16 kB / 1.093 GB, free: 48 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=75): time 3.337e-06/0.4479, allocations: 0 / 1.093 GB, free: 48 kB / 0.8419 GB Notification: Performance of matching and sorting (n=75): time 0.002404/0.4503, allocations: 1.039 MB / 1.094 GB, free: 15 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.4504, allocations: 192.6 kB / 1.095 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.4518, allocations: 1.015 MB / 1.096 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.863e-05/0.4519, allocations: 41.7 kB / 1.096 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005206/0.4525, allocations: 0.6169 MB / 1.096 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.4527, allocations: 256.2 kB / 1.096 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.4529, allocations: 158.6 kB / 1.097 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4531, allocations: 337.9 kB / 1.097 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007687/0.4538, allocations: 332.7 kB / 1.097 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009016/0.4548, allocations: 0.5552 MB / 1.098 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.4562, allocations: 0.7828 MB / 1.099 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4562, allocations: 0 / 1.099 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002095/0.4583, allocations: 0.9804 MB / 1.099 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.4583, allocations: 15.92 kB / 1.099 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.4583, allocations: 4 kB / 1.099 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/0.4584, allocations: 8 kB / 1.099 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000715/0.4591, allocations: 183.7 kB / 1.1 GB, free: 9.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/0.4591, allocations: 16.05 kB / 1.1 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007586/0.4599, allocations: 158.8 kB / 1.1 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.46, allocations: 32 kB / 1.1 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000929/0.4609, allocations: 486 kB / 1.1 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006562/0.4616, allocations: 0.4966 MB / 1.101 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001038/0.4626, allocations: 0.6736 MB / 1.101 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.46e-06/0.4626, allocations: 4 kB / 1.101 GB, free: 7.316 MB / 0.8575 GB Notification: Performance of matching and sorting (n=105) (initialization_lambda0): time 0.001509/0.4641, allocations: 0.8515 MB / 1.102 GB, free: 6.453 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.4642, allocations: 9.875 kB / 1.102 GB, free: 6.445 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.4642, allocations: 7.938 kB / 1.102 GB, free: 6.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.4642, allocations: 8 kB / 1.102 GB, free: 6.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006104/0.4648, allocations: 163.7 kB / 1.102 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.4648, allocations: 11.94 kB / 1.103 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/0.4655, allocations: 127.5 kB / 1.103 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/0.4655, allocations: 32 kB / 1.103 GB, free: 6.102 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 11 (boxWitPreIndDam.conCoo.con1.y,boxWitPreIndDam.conHea.con1.y,boxWitExpDam.conDam.con1.y,boxWitExpDam.conCoo.con1.y,boxWitExpDam.conHea.con1.y,boxWitPreIndDam.hysWitHol.y,$PRE.boxWitPreIndDam.hysWitHol.y,boxWitExpDam.hysWitHol.y,$PRE.boxWitExpDam.hysWitHol.y,boxWitPreIndDam.greThr.y,boxWitExpDam.greThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * 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.0002838/0.4658, allocations: 236.7 kB / 1.103 GB, free: 5.863 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.466, allocations: 114.5 kB / 1.103 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.4678, allocations: 0.8256 MB / 1.104 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.4678, allocations: 8 kB / 1.104 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4678, allocations: 0 / 1.104 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.4678, allocations: 3.984 kB / 1.104 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003116/0.4709, allocations: 2.04 MB / 1.106 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4709, allocations: 0 / 1.106 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006753/0.4716, allocations: 151.8 kB / 1.106 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.4716, allocations: 4 kB / 1.106 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.4717, allocations: 23.98 kB / 1.106 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.4717, allocations: 4 kB / 1.106 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4717, allocations: 0 / 1.106 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.4741, allocations: 1.283 MB / 1.107 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.4744, allocations: 211.5 kB / 1.107 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.4745, allocations: 23.94 kB / 1.107 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.4751, allocations: 67.92 kB / 1.108 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4752, allocations: 52.56 kB / 1.108 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.4753, allocations: 27.98 kB / 1.108 GB, free: 0.9375 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0009881/0.4763, allocations: 0.6875 MB / 1.108 GB, free: 248 kB / 0.8575 GB Notification: Performance of sort global known variables: time 3.01e-07/0.4763, allocations: 7.938 kB / 1.108 GB, free: 240 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00115/0.4774, allocations: 402.3 kB / 1.109 GB, free: 15.84 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (boxWitExpDam.conHea.I.y,boxWitExpDam.conCoo.I.y,boxWitExpDam.conDam.I.y,boxWitPreIndDam.conHea.I.y,boxWitPreIndDam.conCoo.I.y) * Number of discrete variables: 2 (boxWitExpDam.hysWitHol.y,boxWitPreIndDam.hysWitHol.y) * Number of discrete states: 2 (boxWitPreIndDam.hysWitHol.y,boxWitExpDam.hysWitHol.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002153/0.4777, allocations: 135 kB / 1.109 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002533/0.4802, allocations: 1.166 MB / 1.11 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4802, allocations: 4 kB / 1.11 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007244/0.481, allocations: 384.5 kB / 1.11 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.4822, allocations: 225.5 kB / 1.111 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.4857, allocations: 2.454 MB / 1.113 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006714/0.4864, allocations: 1.093 MB / 1.114 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0007788/0.4872, allocations: 139.9 kB / 1.114 GB, free: 10.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.4875, allocations: 83.41 kB / 1.114 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of SimCode: time 1.793e-06/0.4875, allocations: 0 / 1.114 GB, free: 10.1 MB / 0.8731 GB Notification: Performance of Templates: time 0.02216/0.5097, allocations: 11 MB / 1.125 GB, free: 15.21 MB / 0.8887 GB make -j1 -f Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.makefile (rm -f Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; mkfifo Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe >> ../files/Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.sim & ./Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe 2>&1)