Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.588/1.588, allocations: 289.9 MB / 297.4 MB, free: 6.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 184.8 kB / 366.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.3 MB / 0.626 GB, free: 7.121 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000823/0.0008229, allocations: 87.72 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.05e-05/2.049e-05, allocations: 4 kB / 0.8597 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7078/0.7078, allocations: 116.3 MB / 0.9733 GB, free: 76.36 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.9068, allocations: 137.8 MB / 1.108 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.907, allocations: 67.94 kB / 1.108 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.05357/0.9606, allocations: 22.08 MB / 1.13 GB, free: 6.281 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9607, allocations: 0.5312 kB / 1.13 GB, free: 6.281 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.028e-05/0.9607, allocations: 9.469 kB / 1.13 GB, free: 6.273 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001041/0.9617, allocations: 0.6074 MB / 1.13 GB, free: 5.59 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.9618, allocations: 9.312 kB / 1.13 GB, free: 5.582 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.9619, allocations: 23.72 kB / 1.13 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.9623, allocations: 251.1 kB / 1.13 GB, free: 5.273 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.9623, allocations: 7.938 kB / 1.13 GB, free: 5.266 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.9624, allocations: 15.98 kB / 1.13 GB, free: 5.25 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003928/0.9628, allocations: 308 kB / 1.131 GB, free: 4.953 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005013/0.9633, allocations: 429.9 kB / 1.131 GB, free: 4.52 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.9633, allocations: 5.219 kB / 1.131 GB, free: 4.516 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.9633, allocations: 3.984 kB / 1.131 GB, free: 4.512 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.9633, allocations: 4 kB / 1.131 GB, free: 4.508 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005942/0.9639, allocations: 0.5254 MB / 1.132 GB, free: 3.941 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.965, allocations: 0.9997 MB / 1.133 GB, free: 2.906 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006815/0.9657, allocations: 0.6478 MB / 1.133 GB, free: 2.246 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.9657, allocations: 4 kB / 1.133 GB, free: 2.242 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005219/0.9662, allocations: 470 kB / 1.134 GB, free: 1.758 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.285e-06/0.9662, allocations: 0 / 1.134 GB, free: 1.758 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.0009836/0.9672, allocations: 0.7641 MB / 1.134 GB, free: 0.9883 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.9673, allocations: 132.5 kB / 1.135 GB, free: 0.8281 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.9675, allocations: 220.3 kB / 1.135 GB, free: 0.6094 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.9676, allocations: 29.7 kB / 1.135 GB, free: 0.5742 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/0.9677, allocations: 120.9 kB / 1.135 GB, free: 464 kB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.9677, allocations: 75.06 kB / 1.135 GB, free: 388 kB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.9678, allocations: 4 kB / 1.135 GB, free: 384 kB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.9679, allocations: 345.6 kB / 1.135 GB, free: 32 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.9683, allocations: 324.6 kB / 1.136 GB, free: 15.71 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004028/0.9687, allocations: 409.6 kB / 1.136 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.9691, allocations: 349.3 kB / 1.136 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.9691, allocations: 0 / 1.136 GB, free: 14.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009068/0.97, allocations: 0.8004 MB / 1.137 GB, free: 14.13 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.97, allocations: 4 kB / 1.137 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.97, allocations: 4 kB / 1.137 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.9701, allocations: 4 kB / 1.137 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.9702, allocations: 43.89 kB / 1.137 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.9703, allocations: 7.938 kB / 1.137 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.9705, allocations: 7.938 kB / 1.137 GB, free: 14.06 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/0.9707, allocations: 212.4 kB / 1.137 GB, free: 13.85 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.9709, allocations: 138.4 kB / 1.138 GB, free: 13.71 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.9709, allocations: 43.56 kB / 1.138 GB, free: 13.67 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.418e-05/0.971, allocations: 29.97 kB / 1.138 GB, free: 13.64 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.971, allocations: 4 kB / 1.138 GB, free: 13.64 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.971, allocations: 2.25 kB / 1.138 GB, free: 13.64 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.971, allocations: 3.984 kB / 1.138 GB, free: 13.63 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.9727, allocations: 1.633 MB / 1.139 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.9728, allocations: 0 / 1.139 GB, free: 11.95 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.836e-05/0.9728, allocations: 23.91 kB / 1.139 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.9728, allocations: 7.938 kB / 1.139 GB, free: 11.92 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.303e-05/0.9729, allocations: 19.97 kB / 1.139 GB, free: 11.9 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.9729, allocations: 4 kB / 1.139 GB, free: 11.9 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.9729, allocations: 0 / 1.139 GB, free: 11.9 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009931/0.9739, allocations: 1.129 MB / 1.14 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.075e-05/0.974, allocations: 100.7 kB / 1.14 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.974, allocations: 7.984 kB / 1.14 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.9742, allocations: 4 kB / 1.14 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.9743, allocations: 54.42 kB / 1.141 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/0.9746, allocations: 220.1 kB / 1.141 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001246/0.9747, allocations: 160.5 kB / 1.141 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9747, allocations: 0 / 1.141 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004216/0.9751, allocations: 56 kB / 1.141 GB, free: 10.13 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001867/0.9753, allocations: 130.3 kB / 1.141 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008663/0.9762, allocations: 0.7117 MB / 1.142 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.9762, allocations: 0 / 1.142 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.9767, allocations: 402.8 kB / 1.142 GB, free: 8.891 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.9782, allocations: 355.2 kB / 1.142 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.9794, allocations: 0.8441 MB / 1.143 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.9797, allocations: 0.7634 MB / 1.144 GB, free: 6.898 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002638/0.98, allocations: 110.4 kB / 1.144 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.9801, allocations: 67.38 kB / 1.144 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of SimCode: time 2.51e-07/0.9801, allocations: 0 / 1.144 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of Templates: time 0.01301/0.9931, allocations: 7.695 MB / 1.152 GB, free: 15.2 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)