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.614/1.614, allocations: 289.7 MB / 302.2 MB, free: 2.141 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.001257/0.001257, allocations: 184.8 kB / 371.6 MB, free: 3.383 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.589/1.589, allocations: 205.1 MB / 0.6309 GB, free: 11.74 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.001058/0.001058, allocations: 92.06 kB / 0.745 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.339e-05/3.341e-05, allocations: 4 kB / 0.8662 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3238, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9673/1.291, allocations: 138.5 MB / 1.115 GB, free: 44.91 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/1.292, allocations: 66.34 kB / 1.115 GB, free: 44.89 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.04837/1.34, allocations: 22.18 MB / 1.137 GB, free: 32.82 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.933e-06/1.34, allocations: 0 / 1.137 GB, free: 32.82 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.025e-05/1.34, allocations: 4 kB / 1.137 GB, free: 32.82 MB / 0.7448 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.0009574/1.341, allocations: 0.6058 MB / 1.137 GB, free: 32.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.341, allocations: 12.03 kB / 1.137 GB, free: 32.21 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/1.341, allocations: 33.91 kB / 1.137 GB, free: 32.18 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/1.341, allocations: 255.1 kB / 1.138 GB, free: 31.93 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/1.342, allocations: 11.08 kB / 1.138 GB, free: 31.93 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.215e-05/1.342, allocations: 21 kB / 1.138 GB, free: 31.91 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000631/1.342, allocations: 456 kB / 1.138 GB, free: 31.61 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/1.342, allocations: 4 kB / 1.138 GB, free: 31.6 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/1.342, allocations: 3.797 kB / 1.138 GB, free: 31.6 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/1.342, allocations: 4 kB / 1.138 GB, free: 31.6 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003894/1.343, allocations: 320.7 kB / 1.138 GB, free: 31.38 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007549/1.343, allocations: 0.5597 MB / 1.139 GB, free: 30.92 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/1.345, allocations: 1.025 MB / 1.14 GB, free: 30.16 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007748/1.345, allocations: 0.6562 MB / 1.141 GB, free: 29.68 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/1.346, allocations: 8.703 kB / 1.141 GB, free: 29.68 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006101/1.346, allocations: 462.3 kB / 1.141 GB, free: 29.35 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=37): time 1.383e-06/1.346, allocations: 7.938 kB / 1.141 GB, free: 29.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=37): time 0.001193/1.347, allocations: 0.7792 MB / 1.142 GB, free: 28.79 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/1.347, allocations: 142.5 kB / 1.142 GB, free: 28.62 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/1.348, allocations: 225.5 kB / 1.142 GB, free: 28.45 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/1.348, allocations: 36.14 kB / 1.142 GB, free: 28.42 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.831e-05/1.348, allocations: 127.1 kB / 1.142 GB, free: 28.32 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 7.778e-05/1.348, allocations: 71.25 kB / 1.142 GB, free: 28.27 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/1.348, allocations: 10.81 kB / 1.142 GB, free: 28.27 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001046/1.348, allocations: 345 kB / 1.143 GB, free: 27.94 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/1.348, allocations: 327.1 kB / 1.143 GB, free: 27.72 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/1.349, allocations: 433.1 kB / 1.144 GB, free: 27.37 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/1.349, allocations: 354.2 kB / 1.144 GB, free: 27.14 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.349, allocations: 0 / 1.144 GB, free: 27.14 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001001/1.35, allocations: 0.8185 MB / 1.145 GB, free: 26.56 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/1.35, allocations: 14.55 kB / 1.145 GB, free: 26.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.35, allocations: 4 kB / 1.145 GB, free: 26.54 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/1.35, allocations: 7.938 kB / 1.145 GB, free: 26.54 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/1.351, allocations: 40.95 kB / 1.145 GB, free: 26.51 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/1.351, allocations: 5.359 kB / 1.145 GB, free: 26.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/1.351, allocations: 15.31 kB / 1.145 GB, free: 26.5 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003844/1.351, allocations: 218.6 kB / 1.145 GB, free: 26.39 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.0001697/1.351, allocations: 156.1 kB / 1.145 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/1.351, allocations: 28.28 kB / 1.145 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.422e-05/1.352, allocations: 40.98 kB / 1.145 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/1.352, allocations: 8.516 kB / 1.145 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/1.352, allocations: 0 / 1.145 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/1.352, allocations: 2.438 kB / 1.145 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0021/1.354, allocations: 1.7 MB / 1.147 GB, free: 24.87 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.354, allocations: 0.5156 kB / 1.147 GB, free: 24.87 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.543e-05/1.354, allocations: 26.14 kB / 1.147 GB, free: 24.86 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/1.354, allocations: 0 / 1.147 GB, free: 24.86 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/1.354, allocations: 25.94 kB / 1.147 GB, free: 24.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/1.354, allocations: 4.656 kB / 1.147 GB, free: 24.84 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.354, allocations: 4.5 kB / 1.147 GB, free: 24.84 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/1.355, allocations: 1.139 MB / 1.148 GB, free: 23.9 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/1.355, allocations: 106 kB / 1.148 GB, free: 23.78 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.781e-05/1.355, allocations: 20.34 kB / 1.148 GB, free: 23.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/1.355, allocations: 4.484 kB / 1.148 GB, free: 23.77 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/1.355, allocations: 49.61 kB / 1.148 GB, free: 23.75 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003321/1.356, allocations: 224.6 kB / 1.148 GB, free: 23.64 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001581/1.356, allocations: 168.2 kB / 1.149 GB, free: 23.51 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.51e-07/1.356, allocations: 3.938 kB / 1.149 GB, free: 23.5 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004416/1.356, allocations: 62.66 kB / 1.149 GB, free: 23.45 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.0002244/1.357, allocations: 141.7 kB / 1.149 GB, free: 23.32 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0009317/1.358, allocations: 0.7251 MB / 1.149 GB, free: 22.8 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.358, allocations: 0 / 1.149 GB, free: 22.8 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0005031/1.358, allocations: 407.7 kB / 1.15 GB, free: 22.52 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/1.36, allocations: 366.5 kB / 1.15 GB, free: 22.32 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/1.361, allocations: 0.866 MB / 1.151 GB, free: 21.65 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/1.361, allocations: 0.7644 MB / 1.152 GB, free: 20.9 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003534/1.362, allocations: 102.6 kB / 1.152 GB, free: 20.82 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/1.362, allocations: 65.05 kB / 1.152 GB, free: 20.78 MB / 0.7448 GB Notification: Performance of SimCode: time 9.82e-07/1.362, allocations: 0 / 1.152 GB, free: 20.78 MB / 0.7448 GB Notification: Performance of Templates: time 0.01492/1.377, allocations: 8.046 MB / 1.16 GB, free: 16.3 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)