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.389/2.389, allocations: 252.6 MB / 265.2 MB, free: 5.715 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.001449/0.001449, allocations: 181.4 kB / 324.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.4 MB / 0.5753 GB, free: 10.52 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.001112, allocations: 98.31 kB / 0.6797 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.475e-05/3.484e-05, allocations: 4 kB / 0.7911 GB, free: 96.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2035, allocations: 106.2 MB / 0.8949 GB, free: 6.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9579/1.162, allocations: 131.4 MB / 1.023 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/1.162, allocations: 68.78 kB / 1.023 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.09796/1.26, allocations: 22.24 MB / 1.045 GB, free: 0.7891 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.754e-06/1.26, allocations: 4 kB / 1.045 GB, free: 0.7852 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.332e-05/1.26, allocations: 4 kB / 1.045 GB, free: 0.7812 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.001266/1.261, allocations: 0.6054 MB / 1.046 GB, free: 120 kB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.261, allocations: 15.97 kB / 1.046 GB, free: 104 kB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/1.261, allocations: 27.67 kB / 1.046 GB, free: 76 kB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/1.262, allocations: 242 kB / 1.046 GB, free: 15.81 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/1.262, allocations: 19.39 kB / 1.046 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.769e-05/1.262, allocations: 23.62 kB / 1.046 GB, free: 15.78 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009157/1.263, allocations: 452.7 kB / 1.046 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/1.263, allocations: 0 / 1.046 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/1.263, allocations: 7.938 kB / 1.046 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/1.263, allocations: 4 kB / 1.046 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006155/1.264, allocations: 330.9 kB / 1.047 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000952/1.265, allocations: 0.5534 MB / 1.047 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/1.267, allocations: 1.021 MB / 1.048 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/1.268, allocations: 0.6568 MB / 1.049 GB, free: 13.14 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.891e-05/1.268, allocations: 4.469 kB / 1.049 GB, free: 13.14 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008925/1.269, allocations: 480.8 kB / 1.049 GB, free: 12.72 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 3.356e-06/1.269, allocations: 4 kB / 1.049 GB, free: 12.71 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001706/1.271, allocations: 0.7833 MB / 1.05 GB, free: 12.05 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.465e-05/1.271, allocations: 140.1 kB / 1.05 GB, free: 11.89 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003461/1.271, allocations: 231.2 kB / 1.05 GB, free: 11.68 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 5.559e-05/1.271, allocations: 32.64 kB / 1.05 GB, free: 11.65 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/1.271, allocations: 128.7 kB / 1.051 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/1.271, allocations: 72.38 kB / 1.051 GB, free: 11.49 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.847e-05/1.271, allocations: 7.312 kB / 1.051 GB, free: 11.49 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001953/1.272, allocations: 348.7 kB / 1.051 GB, free: 11.15 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006622/1.272, allocations: 328.9 kB / 1.051 GB, free: 10.89 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007261/1.273, allocations: 417.8 kB / 1.052 GB, free: 10.52 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007374/1.274, allocations: 360.4 kB / 1.052 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.274, allocations: 0 / 1.052 GB, free: 10.23 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001699/1.275, allocations: 0.8198 MB / 1.053 GB, free: 9.535 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/1.275, allocations: 15.92 kB / 1.053 GB, free: 9.52 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/1.276, allocations: 4 kB / 1.053 GB, free: 9.516 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/1.276, allocations: 4 kB / 1.053 GB, free: 9.512 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/1.276, allocations: 39.59 kB / 1.053 GB, free: 9.477 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/1.276, allocations: 8 kB / 1.053 GB, free: 9.469 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/1.276, allocations: 27.08 kB / 1.053 GB, free: 9.449 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004078/1.277, allocations: 203.2 kB / 1.053 GB, free: 9.254 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.0002107/1.277, allocations: 159.2 kB / 1.053 GB, free: 9.105 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.319e-05/1.277, allocations: 27.62 kB / 1.053 GB, free: 9.078 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/1.277, allocations: 39.14 kB / 1.053 GB, free: 9.059 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/1.277, allocations: 4 kB / 1.053 GB, free: 9.055 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/1.277, allocations: 4 kB / 1.053 GB, free: 9.051 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/1.277, allocations: 0 / 1.053 GB, free: 9.051 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/1.28, allocations: 1.703 MB / 1.055 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/1.28, allocations: 0 / 1.055 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/1.281, allocations: 23.59 kB / 1.055 GB, free: 7.484 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.407e-05/1.281, allocations: 4 kB / 1.055 GB, free: 7.48 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/1.281, allocations: 26.34 kB / 1.055 GB, free: 7.461 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-06/1.281, allocations: 4 kB / 1.055 GB, free: 7.457 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/1.281, allocations: 3.953 kB / 1.055 GB, free: 7.453 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/1.282, allocations: 1.145 MB / 1.056 GB, free: 6.402 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/1.283, allocations: 100.8 kB / 1.056 GB, free: 6.285 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.379e-05/1.283, allocations: 15.67 kB / 1.056 GB, free: 6.273 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/1.283, allocations: 11.06 kB / 1.056 GB, free: 6.27 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/1.283, allocations: 46.12 kB / 1.056 GB, free: 6.234 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004186/1.284, allocations: 227.2 kB / 1.057 GB, free: 6.016 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002539/1.284, allocations: 174.6 kB / 1.057 GB, free: 5.867 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.3e-07/1.284, allocations: 0 / 1.057 GB, free: 5.867 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0007345/1.285, allocations: 61.81 kB / 1.057 GB, free: 5.816 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.0002607/1.285, allocations: 138.3 kB / 1.057 GB, free: 5.688 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001551/1.287, allocations: 0.7351 MB / 1.058 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.287, allocations: 256 / 1.058 GB, free: 5.074 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000838/1.287, allocations: 410.8 kB / 1.058 GB, free: 4.738 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002688/1.29, allocations: 373.6 kB / 1.058 GB, free: 4.414 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/1.292, allocations: 0.8611 MB / 1.059 GB, free: 3.645 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/1.293, allocations: 0.7638 MB / 1.06 GB, free: 2.859 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0005538/1.293, allocations: 95 kB / 1.06 GB, free: 2.766 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/1.294, allocations: 67.62 kB / 1.06 GB, free: 2.707 MB / 0.6667 GB Notification: Performance of SimCode: time 9.62e-07/1.294, allocations: 0 / 1.06 GB, free: 2.707 MB / 0.6667 GB Notification: Performance of Templates: time 0.03128/1.325, allocations: 8.038 MB / 1.068 GB, free: 10.76 MB / 0.6823 GB