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.386/2.386, allocations: 253.2 MB / 260.6 MB, free: 7.422 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001506/0.001506, allocations: 196.8 kB / 319.9 MB, free: 3.066 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.168/2.168, allocations: 205.6 MB / 0.5708 GB, free: 15.27 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.001112/0.001111, allocations: 78.77 kB / 0.6751 GB, free: 4.641 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.224e-05/2.261e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2455, allocations: 106.3 MB / 0.8887 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9259/1.172, allocations: 131.6 MB / 1.017 GB, free: 5.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/1.172, allocations: 66.28 kB / 1.017 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.1003/1.272, allocations: 22.13 MB / 1.039 GB, free: 3.84 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.463e-06/1.272, allocations: 0 / 1.039 GB, free: 3.84 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.311e-05/1.272, allocations: 4 kB / 1.039 GB, free: 3.836 MB / 0.6511 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.00128/1.274, allocations: 0.607 MB / 1.039 GB, free: 3.176 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.274, allocations: 16.02 kB / 1.04 GB, free: 3.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/1.274, allocations: 27.67 kB / 1.04 GB, free: 3.133 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/1.274, allocations: 249.3 kB / 1.04 GB, free: 2.863 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/1.274, allocations: 7.984 kB / 1.04 GB, free: 2.855 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/1.274, allocations: 12 kB / 1.04 GB, free: 2.844 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006199/1.275, allocations: 306.1 kB / 1.04 GB, free: 2.598 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007854/1.276, allocations: 439.7 kB / 1.04 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/1.276, allocations: 0 / 1.04 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/1.276, allocations: 7.984 kB / 1.041 GB, free: 2.215 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/1.276, allocations: 7.938 kB / 1.041 GB, free: 2.207 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000879/1.277, allocations: 0.5167 MB / 1.041 GB, free: 1.711 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/1.278, allocations: 1.003 MB / 1.042 GB, free: 0.8359 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/1.28, allocations: 0.6454 MB / 1.043 GB, free: 296 kB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.751e-05/1.28, allocations: 4 kB / 1.043 GB, free: 292 kB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008567/1.281, allocations: 468 kB / 1.043 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 2.976e-06/1.281, allocations: 0 / 1.043 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001607/1.282, allocations: 0.7678 MB / 1.044 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/1.282, allocations: 139.6 kB / 1.044 GB, free: 15.06 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/1.283, allocations: 212.3 kB / 1.044 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 6.225e-05/1.283, allocations: 32.95 kB / 1.044 GB, free: 14.84 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/1.283, allocations: 123.6 kB / 1.044 GB, free: 14.75 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/1.283, allocations: 64.59 kB / 1.044 GB, free: 14.69 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/1.283, allocations: 8 kB / 1.044 GB, free: 14.68 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001834/1.283, allocations: 345 kB / 1.045 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006107/1.284, allocations: 314.5 kB / 1.045 GB, free: 14.1 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006924/1.285, allocations: 411.6 kB / 1.045 GB, free: 13.73 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007136/1.285, allocations: 355.5 kB / 1.046 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/1.285, allocations: 0 / 1.046 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001675/1.287, allocations: 0.7895 MB / 1.047 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/1.287, allocations: 11.94 kB / 1.047 GB, free: 12.76 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.287, allocations: 4 kB / 1.047 GB, free: 12.76 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/1.287, allocations: 4 kB / 1.047 GB, free: 12.75 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/1.288, allocations: 47.2 kB / 1.047 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/1.288, allocations: 4 kB / 1.047 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/1.288, allocations: 11.84 kB / 1.047 GB, free: 12.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004547/1.288, allocations: 210.7 kB / 1.047 GB, free: 12.49 MB / 0.6667 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.0002302/1.289, allocations: 147.5 kB / 1.047 GB, free: 12.35 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.383e-05/1.289, allocations: 31.64 kB / 1.047 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/1.289, allocations: 30.41 kB / 1.047 GB, free: 12.3 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/1.289, allocations: 8 kB / 1.047 GB, free: 12.3 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.289, allocations: 0 / 1.047 GB, free: 12.3 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/1.289, allocations: 3.984 kB / 1.047 GB, free: 12.29 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003035/1.292, allocations: 1.647 MB / 1.049 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/1.292, allocations: 0 / 1.049 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.882e-05/1.292, allocations: 19.42 kB / 1.049 GB, free: 10.79 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/1.292, allocations: 4 kB / 1.049 GB, free: 10.78 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/1.292, allocations: 19.91 kB / 1.049 GB, free: 10.77 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/1.292, allocations: 4 kB / 1.049 GB, free: 10.76 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.292, allocations: 0 / 1.049 GB, free: 10.76 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/1.294, allocations: 1.137 MB / 1.05 GB, free: 9.719 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/1.294, allocations: 104.8 kB / 1.05 GB, free: 9.598 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.512e-05/1.294, allocations: 7.953 kB / 1.05 GB, free: 9.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003803/1.295, allocations: 0 / 1.05 GB, free: 9.59 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/1.295, allocations: 48.88 kB / 1.05 GB, free: 9.555 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004878/1.295, allocations: 227.3 kB / 1.05 GB, free: 9.336 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002311/1.296, allocations: 161.8 kB / 1.05 GB, free: 9.207 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.31e-07/1.296, allocations: 0 / 1.05 GB, free: 9.207 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007537/1.296, allocations: 52 kB / 1.05 GB, free: 9.156 MB / 0.6667 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.0002657/1.297, allocations: 135.8 kB / 1.05 GB, free: 9.02 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001482/1.298, allocations: 0.7092 MB / 1.051 GB, free: 8.43 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.298, allocations: 0 / 1.051 GB, free: 8.43 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0008426/1.299, allocations: 394 kB / 1.052 GB, free: 8.109 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/1.302, allocations: 364.9 kB / 1.052 GB, free: 7.789 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/1.304, allocations: 0.8501 MB / 1.053 GB, free: 7.016 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/1.304, allocations: 0.7602 MB / 1.053 GB, free: 6.23 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005785/1.305, allocations: 99.78 kB / 1.054 GB, free: 6.137 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002025/1.305, allocations: 69.69 kB / 1.054 GB, free: 6.078 MB / 0.6667 GB Notification: Performance of SimCode: time 1.232e-06/1.305, allocations: 0 / 1.054 GB, free: 6.078 MB / 0.6667 GB Notification: Performance of Templates: time 0.02115/1.326, allocations: 7.708 MB / 1.061 GB, free: 14.46 MB / 0.6823 GB