Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.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.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode") translateModel(Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, 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.008407/0.008407, allocations: 170 kB / 16.27 MB, free: 6.648 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.601/1.601, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.086/3.086, allocations: 473.4 MB / 0.7469 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004081, allocations: 17.14 kB / 0.9158 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4398/0.4402, allocations: 162.2 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode): time 0.003213/0.4435, allocations: 2.229 MB / 1.076 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003595/0.4471, allocations: 1.813 MB / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005057/0.4476, allocations: 11.94 kB / 1.078 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006176/0.4483, allocations: 171.1 kB / 1.078 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.4486, allocations: 119.4 kB / 1.078 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009582/0.4496, allocations: 339.2 kB / 1.079 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001048/0.4506, allocations: 0.9773 MB / 1.08 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000777/0.4514, allocations: 0.5073 MB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.4518, allocations: 270.6 kB / 1.08 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/0.4522, allocations: 338.1 kB / 1.081 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.777e-05/0.4523, allocations: 24 kB / 1.081 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.4525, allocations: 59.95 kB / 1.081 GB, free: 0.6797 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002647/0.4528, allocations: 215.1 kB / 1.081 GB, free: 480 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.4531, allocations: 371.2 kB / 1.081 GB, free: 100 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.4542, allocations: 1.238 MB / 1.083 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4543, allocations: 0 / 1.083 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.345e-06/0.4543, allocations: 0 / 1.083 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.4543, allocations: 0 / 1.083 GB, free: 14.86 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.002091/0.4564, allocations: 1.076 MB / 1.084 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4564, allocations: 8.031 kB / 1.084 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.4566, allocations: 107.7 kB / 1.084 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008819/0.4575, allocations: 0.6028 MB / 1.084 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.4576, allocations: 58.38 kB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.4577, allocations: 80.38 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.4592, allocations: 0.7952 MB / 1.085 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.4592, allocations: 7.938 kB / 1.085 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.819e-05/0.4593, allocations: 32 kB / 1.085 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.4593, allocations: 19.94 kB / 1.085 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.4604, allocations: 0.5856 MB / 1.086 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003981/0.4644, allocations: 2.518 MB / 1.088 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.466, allocations: 1.072 MB / 1.089 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006601/0.4667, allocations: 414.3 kB / 1.09 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.4668, allocations: 4.562 kB / 1.09 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000844/0.4676, allocations: 476.1 kB / 1.09 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=73): time 3.997e-06/0.4676, allocations: 0 / 1.09 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of matching and sorting (n=73): time 0.001998/0.4696, allocations: 1.086 MB / 1.091 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.721e-05/0.4698, allocations: 162.9 kB / 1.091 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.4708, allocations: 0.6913 MB / 1.092 GB, free: 4.742 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.4709, allocations: 41.7 kB / 1.092 GB, free: 4.695 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.4712, allocations: 352.8 kB / 1.092 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.4714, allocations: 220.8 kB / 1.093 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.4716, allocations: 73.67 kB / 1.093 GB, free: 4.047 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.4718, allocations: 386.8 kB / 1.093 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004912/0.4723, allocations: 261.9 kB / 1.093 GB, free: 3.402 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/0.473, allocations: 0.5202 MB / 1.094 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.474, allocations: 0.7202 MB / 1.095 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4741, allocations: 0 / 1.095 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0015/0.4756, allocations: 0.8355 MB / 1.095 GB, free: 1.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001963/0.4758, allocations: 222.3 kB / 1.096 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4758, allocations: 0 / 1.096 GB, free: 0.8945 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.957e-05/0.4758, allocations: 11.94 kB / 1.096 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004951/0.4763, allocations: 123.8 kB / 1.096 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.4764, allocations: 11.92 kB / 1.096 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007062/0.4771, allocations: 113 kB / 1.096 GB, free: 0.6445 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-05/0.4772, allocations: 43.97 kB / 1.096 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/0.4772, allocations: 8 kB / 1.096 GB, free: 0.5938 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001026/0.4782, allocations: 0.6745 MB / 1.097 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.4782, allocations: 0 / 1.097 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.4783, allocations: 8 kB / 1.097 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/0.4787, allocations: 112.1 kB / 1.097 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.4787, allocations: 8 kB / 1.097 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006589/0.4793, allocations: 106.8 kB / 1.097 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.747e-05/0.4794, allocations: 39.97 kB / 1.097 GB, free: 15.64 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 29 ($whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mode.idx,$PRE.mode.idx,mode.y[1],$PRE.mode.y[1],limPIPar.addPar.y,limPIPar.isDis.y,limPIPar.cha.down,limPIPar.cha.up,limPIPar.cha.y,limPIPar.cha.u,$PRE.limPIPar.cha.u,limPIDPar.addPar.y,limPIDPar.isDis.y,limPIDPar.cha.down,limPIDPar.cha.up,limPIDPar.cha.y,limPIDPar.cha.u,$PRE.limPIDPar.cha.u,$whenCondition9,$whenCondition10,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 2 * 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.0006105/0.48, allocations: 402.5 kB / 1.097 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.4802, allocations: 79.05 kB / 1.097 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.4816, allocations: 0.8633 MB / 1.098 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.4816, allocations: 4 kB / 1.098 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.4816, allocations: 0 / 1.098 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.4816, allocations: 7.984 kB / 1.098 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/0.4843, allocations: 1.887 MB / 1.1 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4844, allocations: 3.938 kB / 1.1 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.4848, allocations: 107.8 kB / 1.1 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.4848, allocations: 4 kB / 1.1 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.4849, allocations: 19.98 kB / 1.1 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.4849, allocations: 4 kB / 1.1 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.558e-06/0.4849, allocations: 4 kB / 1.1 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.4869, allocations: 1.352 MB / 1.101 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.4871, allocations: 172.1 kB / 1.102 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.824e-05/0.4872, allocations: 16 kB / 1.102 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.4876, allocations: 53.36 kB / 1.102 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.4877, allocations: 48.5 kB / 1.102 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.4878, allocations: 47.95 kB / 1.102 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006624/0.4885, allocations: 487 kB / 1.102 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.02e-07/0.4885, allocations: 0 / 1.102 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009783/0.4895, allocations: 287.1 kB / 1.103 GB, free: 9.656 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (limPIDPar.conPID.I.y,limPIDPar.conPID.D.x,intWitRes1.y,limPIPar.conPID.I.y,intWitRes3.y) * Number of discrete variables: 24 (limPIDPar.cha.y,limPIPar.cha.y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,limPIDPar.cha.u,limPIDPar.cha.up,limPIDPar.cha.down,limPIDPar.isDis.y,limPIDPar.addPar.y,limPIPar.cha.u,limPIPar.cha.up,limPIPar.cha.down,limPIPar.isDis.y,limPIPar.addPar.y,mode.y[1],mode.idx) * Number of discrete states: 2 (limPIPar.cha.u,limPIDPar.cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * 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.0002695/0.4898, allocations: 144.9 kB / 1.103 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001959/0.4917, allocations: 1.236 MB / 1.104 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4917, allocations: 1.25 kB / 1.104 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006267/0.4924, allocations: 490 kB / 1.104 GB, free: 7.707 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008941/0.4933, allocations: 138.7 kB / 1.104 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.4961, allocations: 1.822 MB / 1.106 GB, free: 5.723 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.4967, allocations: 0.9669 MB / 1.107 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005101/0.4972, allocations: 153.3 kB / 1.107 GB, free: 4.578 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.4974, allocations: 59.42 kB / 1.107 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of SimCode: time 3.126e-06/0.4974, allocations: 4 kB / 1.107 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of Templates: time 0.01866/0.5161, allocations: 8.569 MB / 1.116 GB, free: 12.02 MB / 0.8731 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.makefile (rm -f Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.sim & ./Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HydronicConfigurations.Controls.Validation.PIDWithOperatingMode.pipe 2>&1)