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.765/1.765, allocations: 292.6 MB / 307.5 MB, free: 5.18 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.002075/0.002075, allocations: 185 kB / 377.1 MB, free: 1.531 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.803/1.803, allocations: 205.4 MB / 0.6367 GB, free: 8.613 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.001131/0.001131, allocations: 98.14 kB / 0.751 GB, free: 62.9 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003375, allocations: 8 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2987, allocations: 116.3 MB / 0.9884 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8117/1.11, allocations: 138.6 MB / 1.124 GB, free: 35.95 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/1.111, allocations: 67.67 kB / 1.124 GB, free: 35.9 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.04989/1.161, allocations: 22.25 MB / 1.146 GB, free: 19.85 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.084e-06/1.161, allocations: 0 / 1.146 GB, free: 19.85 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.467e-05/1.161, allocations: 12 kB / 1.146 GB, free: 19.84 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.0008466/1.162, allocations: 0.6331 MB / 1.146 GB, free: 19.19 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/1.162, allocations: 12.02 kB / 1.146 GB, free: 19.18 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.235e-05/1.162, allocations: 33.69 kB / 1.146 GB, free: 19.15 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/1.162, allocations: 249.7 kB / 1.146 GB, free: 18.89 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/1.162, allocations: 21.59 kB / 1.146 GB, free: 18.88 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.359e-05/1.162, allocations: 17.36 kB / 1.146 GB, free: 18.86 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004971/1.163, allocations: 455.8 kB / 1.147 GB, free: 18.48 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/1.163, allocations: 4 kB / 1.147 GB, free: 18.48 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/1.163, allocations: 5.641 kB / 1.147 GB, free: 18.47 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.163, allocations: 8 kB / 1.147 GB, free: 18.46 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003113/1.163, allocations: 318.4 kB / 1.147 GB, free: 18.2 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004934/1.163, allocations: 0.5533 MB / 1.148 GB, free: 17.67 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000923/1.164, allocations: 1.038 MB / 1.149 GB, free: 16.73 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/1.164, allocations: 8.219 kB / 1.149 GB, free: 16.73 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004503/1.165, allocations: 483.1 kB / 1.149 GB, free: 16.31 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=37): time 1.393e-06/1.165, allocations: 0 / 1.149 GB, free: 16.31 MB / 0.7292 GB Notification: Performance of matching and sorting (n=37): time 0.001234/1.166, allocations: 1.111 MB / 1.15 GB, free: 15.35 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.166, allocations: 138.2 kB / 1.15 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/1.166, allocations: 229.9 kB / 1.151 GB, free: 14.98 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/1.166, allocations: 34.45 kB / 1.151 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/1.167, allocations: 122.6 kB / 1.151 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/1.167, allocations: 87.64 kB / 1.151 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/1.167, allocations: 11.94 kB / 1.151 GB, free: 14.73 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.399e-05/1.167, allocations: 340.1 kB / 1.151 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003281/1.167, allocations: 328.8 kB / 1.152 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003434/1.167, allocations: 420.8 kB / 1.152 GB, free: 13.73 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003749/1.168, allocations: 367.3 kB / 1.152 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.168, allocations: 0.6562 kB / 1.152 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008275/1.169, allocations: 0.8317 MB / 1.153 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/1.169, allocations: 9.453 kB / 1.153 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.169, allocations: 6.062 kB / 1.153 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/1.169, allocations: 4 kB / 1.153 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/1.169, allocations: 42.3 kB / 1.153 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/1.169, allocations: 4 kB / 1.153 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/1.169, allocations: 13.81 kB / 1.153 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/1.169, allocations: 218 kB / 1.153 GB, free: 12.51 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.0001549/1.169, allocations: 189.9 kB / 1.154 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/1.169, allocations: 33.41 kB / 1.154 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.986e-05/1.17, allocations: 35.88 kB / 1.154 GB, free: 12.27 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/1.17, allocations: 4 kB / 1.154 GB, free: 12.26 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.17, allocations: 8.5 kB / 1.154 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/1.17, allocations: 1.922 kB / 1.154 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/1.171, allocations: 1.701 MB / 1.155 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.171, allocations: 0 / 1.155 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/1.171, allocations: 21.77 kB / 1.155 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/1.171, allocations: 4 kB / 1.155 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/1.171, allocations: 24.94 kB / 1.155 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.171, allocations: 0.9375 kB / 1.155 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.171, allocations: 4 kB / 1.155 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/1.172, allocations: 1.149 MB / 1.157 GB, free: 9.602 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/1.172, allocations: 100.7 kB / 1.157 GB, free: 9.484 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/1.172, allocations: 18.86 kB / 1.157 GB, free: 9.469 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/1.173, allocations: 5.734 kB / 1.157 GB, free: 9.465 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.31e-05/1.173, allocations: 56.16 kB / 1.157 GB, free: 9.426 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002455/1.173, allocations: 222 kB / 1.157 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001195/1.173, allocations: 171.2 kB / 1.157 GB, free: 9.164 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.6e-07/1.173, allocations: 0 / 1.157 GB, free: 9.164 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004296/1.173, allocations: 65.41 kB / 1.157 GB, free: 9.102 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.0001793/1.174, allocations: 139.8 kB / 1.157 GB, free: 8.961 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007951/1.174, allocations: 0.7374 MB / 1.158 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/1.174, allocations: 0 / 1.158 GB, free: 8.324 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004144/1.175, allocations: 404.6 kB / 1.158 GB, free: 7.984 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/1.176, allocations: 369.7 kB / 1.159 GB, free: 7.75 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001227/1.178, allocations: 1.021 MB / 1.16 GB, free: 6.816 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/1.178, allocations: 0.7587 MB / 1.16 GB, free: 6.043 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.00028/1.178, allocations: 102.7 kB / 1.161 GB, free: 5.945 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.744e-05/1.178, allocations: 67.38 kB / 1.161 GB, free: 5.879 MB / 0.7292 GB Notification: Performance of SimCode: time 8.11e-07/1.178, allocations: 0 / 1.161 GB, free: 5.879 MB / 0.7292 GB Notification: Performance of Templates: time 0.01052/1.189, allocations: 8.039 MB / 1.168 GB, free: 13.97 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)