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.341/2.341, allocations: 251.1 MB / 266.1 MB, free: 11.62 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.001527, allocations: 186.3 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.683/2.683, allocations: 205.4 MB / 0.5766 GB, free: 20.73 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.00107/0.001069, allocations: 96.36 kB / 0.6811 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.0004849, allocations: 11.5 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2207, allocations: 106.3 MB / 0.8989 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2217/0.4424, allocations: 131.4 MB / 1.027 GB, free: 13.82 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.4428, allocations: 67.97 kB / 1.027 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1026/0.5454, allocations: 22.32 MB / 1.049 GB, free: 7.391 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.324e-06/0.5455, allocations: 0 / 1.049 GB, free: 7.391 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.365e-05/0.5455, allocations: 4 kB / 1.049 GB, free: 7.387 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.001531/0.5471, allocations: 0.6471 MB / 1.05 GB, free: 6.664 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.5471, allocations: 8.031 kB / 1.05 GB, free: 6.656 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.5473, allocations: 27.67 kB / 1.05 GB, free: 6.629 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004693/0.5477, allocations: 253.7 kB / 1.05 GB, free: 6.344 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.5478, allocations: 12.28 kB / 1.05 GB, free: 6.332 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.5479, allocations: 16 kB / 1.05 GB, free: 6.316 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009583/0.5488, allocations: 458.7 kB / 1.05 GB, free: 5.852 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.5489, allocations: 0 / 1.05 GB, free: 5.852 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/0.5489, allocations: 8 kB / 1.05 GB, free: 5.844 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.5489, allocations: 4 kB / 1.051 GB, free: 5.84 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006678/0.5496, allocations: 323.8 kB / 1.051 GB, free: 5.523 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.5507, allocations: 0.5547 MB / 1.051 GB, free: 4.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002156/0.5528, allocations: 1.034 MB / 1.052 GB, free: 3.844 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.568e-05/0.553, allocations: 11.95 kB / 1.052 GB, free: 3.832 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.554, allocations: 478.8 kB / 1.053 GB, free: 3.34 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 3.396e-06/0.554, allocations: 0 / 1.053 GB, free: 3.34 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.002678/0.5567, allocations: 1.102 MB / 1.054 GB, free: 2.23 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.5569, allocations: 144.5 kB / 1.054 GB, free: 2.059 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.5573, allocations: 224 kB / 1.054 GB, free: 1.836 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.887e-05/0.5574, allocations: 41.64 kB / 1.054 GB, free: 1.789 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.5575, allocations: 129 kB / 1.054 GB, free: 1.656 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.5576, allocations: 67.16 kB / 1.054 GB, free: 1.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.775e-05/0.5577, allocations: 12 kB / 1.054 GB, free: 1.578 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.5579, allocations: 346.8 kB / 1.055 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000674/0.5586, allocations: 332.6 kB / 1.055 GB, free: 0.9023 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008077/0.5594, allocations: 418.5 kB / 1.056 GB, free: 472 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007999/0.5602, allocations: 363.8 kB / 1.056 GB, free: 108 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5602, allocations: 0 / 1.056 GB, free: 108 kB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.6742/1.234, allocations: 0.8261 MB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/1.235, allocations: 9.094 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/1.235, allocations: 3.344 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.41e-05/1.235, allocations: 8.406 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0043/1.239, allocations: 39 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/1.239, allocations: 6.875 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/1.24, allocations: 16.92 kB / 1.057 GB, free: 155.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004836/1.24, allocations: 218.3 kB / 1.057 GB, free: 155.4 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.000396/1.241, allocations: 190.1 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/1.241, allocations: 26.03 kB / 1.057 GB, free: 155.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/1.241, allocations: 40.64 kB / 1.057 GB, free: 155.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/1.241, allocations: 9.469 kB / 1.057 GB, free: 155.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/1.241, allocations: 3.328 kB / 1.057 GB, free: 155.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/1.241, allocations: 1.547 kB / 1.057 GB, free: 155.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008054/1.249, allocations: 1.703 MB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/1.249, allocations: 6.75 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.986e-05/1.249, allocations: 22.08 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/1.249, allocations: 4.438 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.418e-05/1.249, allocations: 21.97 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-05/1.249, allocations: 5.125 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.249, allocations: 1.75 kB / 1.059 GB, free: 154.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002274/1.252, allocations: 1.153 MB / 1.06 GB, free: 154.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/1.252, allocations: 99.06 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/1.252, allocations: 13.38 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/1.253, allocations: 7.969 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/1.253, allocations: 57.66 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006372/1.253, allocations: 224.3 kB / 1.06 GB, free: 154.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003592/1.254, allocations: 170.1 kB / 1.061 GB, free: 154.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.21e-07/1.254, allocations: 0 / 1.061 GB, free: 154.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001228/1.255, allocations: 66.56 kB / 1.061 GB, free: 154.1 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.0003047/1.255, allocations: 140.9 kB / 1.061 GB, free: 154 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002241/1.258, allocations: 0.7333 MB / 1.062 GB, free: 154 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.258, allocations: 0 / 1.062 GB, free: 154 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001272/1.259, allocations: 407.2 kB / 1.062 GB, free: 154 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003789/1.263, allocations: 366.5 kB / 1.062 GB, free: 154 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003437/1.266, allocations: 1.014 MB / 1.063 GB, free: 153.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/1.267, allocations: 0.7628 MB / 1.064 GB, free: 153.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009319/1.268, allocations: 101.5 kB / 1.064 GB, free: 153 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/1.268, allocations: 67.22 kB / 1.064 GB, free: 153 MB / 0.698 GB Notification: Performance of SimCode: time 1.563e-06/1.268, allocations: 0.9375 kB / 1.064 GB, free: 153 MB / 0.698 GB Notification: Performance of Templates: time 0.02875/1.297, allocations: 8.036 MB / 1.072 GB, free: 152.1 MB / 0.698 GB