Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/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") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.6/2.6, allocations: 251.1 MB / 266.1 MB, free: 11.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 177.2 kB / 325.6 MB, free: 2.824 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.487/2.487, allocations: 205.4 MB / 0.5766 GB, free: 21.09 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001207/0.001207, allocations: 111 kB / 0.6811 GB, free: 14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007274/0.0007277, allocations: 9.812 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2541, allocations: 106.3 MB / 0.8989 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001681/0.2558, allocations: 1.114 MB / 0.9 GB, free: 64.8 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007508/0.2566, allocations: 265.2 kB / 0.9002 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.393e-05/0.2567, allocations: 7.875 kB / 0.9002 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.2568, allocations: 7.922 kB / 0.9002 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.746e-05/0.2569, allocations: 19.97 kB / 0.9003 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.2573, allocations: 81.39 kB / 0.9003 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.2576, allocations: 140.2 kB / 0.9005 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.377e-05/0.2577, allocations: 21.05 kB / 0.9005 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.136e-05/0.2578, allocations: 75.83 kB / 0.9006 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001843/0.2579, allocations: 103.7 kB / 0.9007 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.169e-05/0.258, allocations: 8 kB / 0.9007 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.141e-05/0.2581, allocations: 12 kB / 0.9007 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.2582, allocations: 67.8 kB / 0.9007 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.2583, allocations: 61.58 kB / 0.9008 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002343/0.2585, allocations: 203.6 kB / 0.901 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2585, allocations: 0 / 0.901 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2585, allocations: 4 kB / 0.901 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.231e-06/0.2585, allocations: 3.938 kB / 0.901 GB, free: 63.74 MB / 0.6042 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.001316/0.2599, allocations: 0.6277 MB / 0.9016 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.2599, allocations: 12.02 kB / 0.9016 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.26, allocations: 31.59 kB / 0.9017 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.2604, allocations: 261.6 kB / 0.9019 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.2605, allocations: 12.28 kB / 0.9019 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.2606, allocations: 27.98 kB / 0.9019 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007713/0.2613, allocations: 454.7 kB / 0.9024 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2614, allocations: 4 kB / 0.9024 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.2614, allocations: 4 kB / 0.9024 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.2614, allocations: 4 kB / 0.9024 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000539/0.262, allocations: 319.8 kB / 0.9027 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007578/0.2628, allocations: 0.574 MB / 0.9033 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/0.2644, allocations: 1.031 MB / 0.9043 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.174e-05/0.2645, allocations: 4 kB / 0.9043 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008228/0.2653, allocations: 479 kB / 0.9047 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 2.434e-06/0.2654, allocations: 4 kB / 0.9047 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.002081/0.2674, allocations: 1.104 MB / 0.9058 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/0.2676, allocations: 148.5 kB / 0.9059 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003342/0.2679, allocations: 248.8 kB / 0.9062 GB, free: 58.14 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.268, allocations: 37.7 kB / 0.9062 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.253e-05/0.2681, allocations: 125.1 kB / 0.9063 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.124e-05/0.2682, allocations: 79.08 kB / 0.9064 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.2682, allocations: 12 kB / 0.9064 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.716e-05/0.2683, allocations: 342.8 kB / 0.9068 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/0.2689, allocations: 332.7 kB / 0.9071 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006024/0.2695, allocations: 418.5 kB / 0.9075 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006366/0.2701, allocations: 363.7 kB / 0.9078 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.2702, allocations: 4 kB / 0.9078 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001499/0.2717, allocations: 0.8158 MB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.2717, allocations: 8 kB / 0.9086 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.2718, allocations: 320 / 0.9086 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.2718, allocations: 8.562 kB / 0.9086 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.2721, allocations: 43.83 kB / 0.9087 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.2721, allocations: 12.06 kB / 0.9087 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.2725, allocations: 31.69 kB / 0.9087 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004224/0.273, allocations: 271.7 kB / 0.909 GB, free: 55.21 MB / 0.6042 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.0002821/0.2733, allocations: 201.6 kB / 0.9092 GB, free: 55.01 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.561e-05/0.2734, allocations: 27.62 kB / 0.9092 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.261e-05/0.2735, allocations: 42.11 kB / 0.9092 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.2735, allocations: 4 kB / 0.9092 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.2735, allocations: 4 kB / 0.9092 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.2735, allocations: 0 / 0.9092 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.2762, allocations: 1.72 MB / 0.9109 GB, free: 53.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.2763, allocations: 0 / 0.9109 GB, free: 53.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.2763, allocations: 23.91 kB / 0.9109 GB, free: 53.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.2764, allocations: 0 / 0.9109 GB, free: 53.13 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.2764, allocations: 23.97 kB / 0.911 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.2764, allocations: 4 kB / 0.911 GB, free: 53.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2765, allocations: 4 kB / 0.911 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.2779, allocations: 1.149 MB / 0.9121 GB, free: 51.91 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.19e-05/0.278, allocations: 112.6 kB / 0.9122 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.249e-05/0.2781, allocations: 8 kB / 0.9122 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.2786, allocations: 7.984 kB / 0.9122 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.2787, allocations: 55.88 kB / 0.9123 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004235/0.2792, allocations: 279.5 kB / 0.9125 GB, free: 51.44 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002183/0.2794, allocations: 172.5 kB / 0.9127 GB, free: 51.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2794, allocations: 0 / 0.9127 GB, free: 51.27 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000774/0.2802, allocations: 64 kB / 0.9128 GB, free: 51.21 MB / 0.6042 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.0002006/0.2804, allocations: 139.2 kB / 0.9129 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001381/0.2818, allocations: 0.7299 MB / 0.9136 GB, free: 50.34 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.2818, allocations: 0 / 0.9136 GB, free: 50.34 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007707/0.2826, allocations: 399.8 kB / 0.914 GB, free: 49.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.2851, allocations: 369.3 kB / 0.9143 GB, free: 49.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/0.287, allocations: 1.032 MB / 0.9154 GB, free: 48.53 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.2874, allocations: 0.7608 MB / 0.9161 GB, free: 47.74 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0005315/0.2879, allocations: 94.91 kB / 0.9162 GB, free: 47.65 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.2881, allocations: 71.38 kB / 0.9163 GB, free: 47.58 MB / 0.6042 GB Notification: Performance of SimCode: time 9.32e-07/0.2881, allocations: 0 / 0.9163 GB, free: 47.58 MB / 0.6042 GB Notification: Performance of Templates: time 0.0188/0.3069, allocations: 8.339 MB / 0.9244 GB, free: 39.32 MB / 0.6042 GB