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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.676/1.676, allocations: 293 MB / 309 MB, free: 4.828 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.0009909/0.0009906, allocations: 180 kB / 378.7 MB, free: 1.02 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.758/1.758, allocations: 205.4 MB / 0.6383 GB, free: 9.152 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.000797/0.0007969, allocations: 91.41 kB / 0.7527 GB, free: 62.49 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004722/0.0004723, allocations: 12 kB / 0.8768 GB, free: 10.54 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2782, allocations: 116.4 MB / 0.9904 GB, free: 6 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6974/0.9756, allocations: 138.7 MB / 1.126 GB, free: 35.16 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.9759, allocations: 69.27 kB / 1.126 GB, free: 35.11 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.05208/1.028, allocations: 22.39 MB / 1.148 GB, free: 19.01 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.206e-06/1.028, allocations: 0 / 1.148 GB, free: 19.01 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.836e-05/1.028, allocations: 8 kB / 1.148 GB, free: 19 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.001152/1.029, allocations: 0.6275 MB / 1.148 GB, free: 18.36 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.029, allocations: 12.69 kB / 1.148 GB, free: 18.35 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/1.029, allocations: 38.05 kB / 1.148 GB, free: 18.32 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/1.03, allocations: 253.3 kB / 1.149 GB, free: 18.05 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/1.03, allocations: 18.25 kB / 1.149 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/1.03, allocations: 16.38 kB / 1.149 GB, free: 18.02 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/1.031, allocations: 457.7 kB / 1.149 GB, free: 17.64 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/1.031, allocations: 192 / 1.149 GB, free: 17.64 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/1.031, allocations: 13.44 kB / 1.149 GB, free: 17.63 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/1.031, allocations: 4 kB / 1.149 GB, free: 17.63 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/1.031, allocations: 328.6 kB / 1.15 GB, free: 17.36 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006916/1.032, allocations: 0.5527 MB / 1.15 GB, free: 16.83 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/1.033, allocations: 1.033 MB / 1.151 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006821/1.034, allocations: 0.6606 MB / 1.152 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/1.034, allocations: 4.656 kB / 1.152 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005123/1.034, allocations: 482.6 kB / 1.152 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 2.975e-06/1.034, allocations: 0 / 1.152 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001262/1.036, allocations: 1.118 MB / 1.153 GB, free: 13.93 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/1.036, allocations: 143.1 kB / 1.153 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/1.036, allocations: 250.8 kB / 1.154 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/1.036, allocations: 37.7 kB / 1.154 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/1.036, allocations: 118.5 kB / 1.154 GB, free: 13.38 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.419e-05/1.036, allocations: 84.56 kB / 1.154 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/1.036, allocations: 4 kB / 1.154 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.548e-05/1.036, allocations: 339.9 kB / 1.154 GB, free: 12.96 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003456/1.036, allocations: 333 kB / 1.155 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/1.037, allocations: 423.2 kB / 1.155 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007578/1.038, allocations: 0.7675 MB / 1.156 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/1.038, allocations: 0.5625 kB / 1.156 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000911/1.039, allocations: 0.832 MB / 1.156 GB, free: 10.85 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/1.039, allocations: 7.938 kB / 1.156 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.039, allocations: 4 kB / 1.156 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/1.039, allocations: 4 kB / 1.156 GB, free: 10.83 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/1.039, allocations: 45.58 kB / 1.157 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.039, allocations: 6.391 kB / 1.157 GB, free: 10.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/1.039, allocations: 21.53 kB / 1.157 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002542/1.039, allocations: 210.6 kB / 1.157 GB, free: 10.66 MB / 0.7292 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 () * Number of clocked 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.0002143/1.04, allocations: 205.8 kB / 1.157 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/1.04, allocations: 31.56 kB / 1.157 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.314e-05/1.04, allocations: 37.47 kB / 1.157 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/1.04, allocations: 4 kB / 1.157 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.04, allocations: 4 kB / 1.157 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/1.04, allocations: 2.953 kB / 1.157 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/1.042, allocations: 1.704 MB / 1.159 GB, free: 8.855 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/1.042, allocations: 4 kB / 1.159 GB, free: 8.852 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.452e-05/1.042, allocations: 19.11 kB / 1.159 GB, free: 8.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/1.042, allocations: 4 kB / 1.159 GB, free: 8.836 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/1.042, allocations: 23.22 kB / 1.159 GB, free: 8.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.042, allocations: 8 kB / 1.159 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/1.042, allocations: 0 / 1.159 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009032/1.043, allocations: 1.115 MB / 1.16 GB, free: 7.793 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.828e-05/1.043, allocations: 102.4 kB / 1.16 GB, free: 7.676 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/1.043, allocations: 14.95 kB / 1.16 GB, free: 7.664 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/1.043, allocations: 8 kB / 1.16 GB, free: 7.656 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.454e-05/1.043, allocations: 49.3 kB / 1.16 GB, free: 7.625 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.043, allocations: 224.1 kB / 1.16 GB, free: 7.457 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.000137/1.044, allocations: 172.4 kB / 1.16 GB, free: 7.289 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.044, allocations: 0 / 1.16 GB, free: 7.289 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00051/1.044, allocations: 63.98 kB / 1.16 GB, free: 7.227 MB / 0.7292 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) * Number of clocked states: 0 () * 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.0001875/1.044, allocations: 139.2 kB / 1.161 GB, free: 7.078 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007782/1.045, allocations: 0.7415 MB / 1.161 GB, free: 6.336 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/1.045, allocations: 0 / 1.161 GB, free: 6.336 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004159/1.045, allocations: 411.7 kB / 1.162 GB, free: 5.934 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/1.047, allocations: 370.3 kB / 1.162 GB, free: 5.594 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/1.048, allocations: 1.021 MB / 1.163 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/1.049, allocations: 0.7491 MB / 1.164 GB, free: 3.773 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003848/1.049, allocations: 91.86 kB / 1.164 GB, free: 3.688 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/1.049, allocations: 68.5 kB / 1.164 GB, free: 3.621 MB / 0.7292 GB Notification: Performance of SimCode: time 5.11e-07/1.049, allocations: 0 / 1.164 GB, free: 3.621 MB / 0.7292 GB Notification: Performance of Templates: time 0.01368/1.063, allocations: 8.15 MB / 1.172 GB, free: 11.59 MB / 0.7448 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)