Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.162/2.162, allocations: 251.1 MB / 266.7 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001396/0.001396, allocations: 172.8 kB / 326.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.404/2.404, allocations: 205.4 MB / 0.5772 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009867/0.0009866, allocations: 99.84 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004942, allocations: 14.94 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2288, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.4539, allocations: 131.4 MB / 1.028 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4543, allocations: 79.94 kB / 1.028 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1019/0.5562, allocations: 22.44 MB / 1.05 GB, free: 7.375 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.874e-06/0.5563, allocations: 0 / 1.05 GB, free: 7.375 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.486e-05/0.5563, allocations: 8 kB / 1.05 GB, free: 7.367 MB / 0.698 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.001512/0.5578, allocations: 0.6473 MB / 1.05 GB, free: 6.641 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5579, allocations: 8.031 kB / 1.05 GB, free: 6.633 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.558, allocations: 28.66 kB / 1.051 GB, free: 6.605 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.5586, allocations: 255 kB / 1.051 GB, free: 6.32 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.079e-05/0.5587, allocations: 12.66 kB / 1.051 GB, free: 6.309 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.5588, allocations: 16.38 kB / 1.051 GB, free: 6.293 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009908/0.5598, allocations: 463.3 kB / 1.051 GB, free: 5.824 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.5598, allocations: 192 / 1.051 GB, free: 5.824 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.5599, allocations: 7.938 kB / 1.051 GB, free: 5.816 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.5599, allocations: 4 kB / 1.051 GB, free: 5.812 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006779/0.5606, allocations: 323.8 kB / 1.052 GB, free: 5.496 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.5617, allocations: 0.5508 MB / 1.052 GB, free: 4.887 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002687/0.5644, allocations: 1.029 MB / 1.053 GB, free: 3.82 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.5658, allocations: 0.6593 MB / 1.054 GB, free: 3.148 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-05/0.5659, allocations: 11.92 kB / 1.054 GB, free: 3.137 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/0.567, allocations: 486.3 kB / 1.054 GB, free: 2.637 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 3.436e-06/0.567, allocations: 0 / 1.054 GB, free: 2.637 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.002544/0.5696, allocations: 1.111 MB / 1.055 GB, free: 1.52 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.5697, allocations: 140.5 kB / 1.055 GB, free: 1.352 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/0.5702, allocations: 256.7 kB / 1.056 GB, free: 1.094 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/0.5702, allocations: 37.7 kB / 1.056 GB, free: 1.051 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.5704, allocations: 125.1 kB / 1.056 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.5705, allocations: 75.06 kB / 1.056 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.5705, allocations: 4 kB / 1.056 GB, free: 0.8438 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.5707, allocations: 350.7 kB / 1.056 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006733/0.5714, allocations: 328.7 kB / 1.057 GB, free: 172 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6328/1.204, allocations: 415.3 kB / 1.057 GB, free: 155.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008239/1.205, allocations: 363.7 kB / 1.057 GB, free: 155.6 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/1.205, allocations: 0 / 1.057 GB, free: 155.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001568/1.207, allocations: 0.8268 MB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/1.207, allocations: 10.59 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/1.207, allocations: 2.844 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/1.207, allocations: 6.344 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/1.207, allocations: 42.08 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/1.207, allocations: 9.375 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004122/1.208, allocations: 14.95 kB / 1.058 GB, free: 155.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003391/1.208, allocations: 206.9 kB / 1.058 GB, free: 155.5 MB / 0.698 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.0003148/1.208, allocations: 199.4 kB / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.389e-05/1.208, allocations: 29.41 kB / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.039e-05/1.208, allocations: 38.39 kB / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/1.208, allocations: 8.234 kB / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/1.208, allocations: 0 / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/1.209, allocations: 7.078 kB / 1.059 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/1.211, allocations: 1.701 MB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/1.211, allocations: 2.781 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.319e-05/1.211, allocations: 27.2 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/1.211, allocations: 3.062 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/1.211, allocations: 22.44 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/1.211, allocations: 6.281 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.211, allocations: 6.844 kB / 1.06 GB, free: 154.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/1.213, allocations: 1.108 MB / 1.061 GB, free: 154.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/1.213, allocations: 102.2 kB / 1.062 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/1.213, allocations: 12.88 kB / 1.062 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/1.214, allocations: 14.72 kB / 1.062 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/1.214, allocations: 49.83 kB / 1.062 GB, free: 154.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004212/1.214, allocations: 226.3 kB / 1.062 GB, free: 154.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002378/1.214, allocations: 170.3 kB / 1.062 GB, free: 154.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.21e-07/1.214, allocations: 0 / 1.062 GB, free: 154.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006842/1.215, allocations: 60.64 kB / 1.062 GB, free: 154.3 MB / 0.698 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.0002165/1.215, allocations: 140.4 kB / 1.062 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001471/1.217, allocations: 0.7362 MB / 1.063 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/1.217, allocations: 2.156 kB / 1.063 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008583/1.218, allocations: 405 kB / 1.063 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003005/1.221, allocations: 380.6 kB / 1.064 GB, free: 154.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/1.223, allocations: 1.016 MB / 1.065 GB, free: 153.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/1.224, allocations: 0.7586 MB / 1.065 GB, free: 153.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006332/1.224, allocations: 98.23 kB / 1.065 GB, free: 153.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/1.225, allocations: 71.88 kB / 1.066 GB, free: 153.2 MB / 0.698 GB Notification: Performance of SimCode: time 1.283e-06/1.225, allocations: 0 / 1.066 GB, free: 153.2 MB / 0.698 GB Notification: Performance of Templates: time 0.0232/1.248, allocations: 8.044 MB / 1.073 GB, free: 152.1 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)