Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadModel(Buildings): time 4.095/4.095, allocations: 433.4 MB / 440.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.066e-05/2.076e-05, allocations: 4 kB / 0.5325 GB, free: 1.941 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4934/0.4934, allocations: 98.71 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.6849, allocations: 123.7 MB / 0.7498 GB, free: 3.82 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.6852, allocations: 71.95 kB / 0.7498 GB, free: 3.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.08736/0.7726, allocations: 22.13 MB / 0.7714 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.181e-06/0.7726, allocations: 0 / 0.7714 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.166e-05/0.7727, allocations: 4 kB / 0.7715 GB, free: 13.59 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.001044/0.7737, allocations: 0.5958 MB / 0.772 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.7738, allocations: 16.02 kB / 0.772 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.578e-05/0.7739, allocations: 35.56 kB / 0.7721 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.7743, allocations: 249.7 kB / 0.7723 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.7743, allocations: 8 kB / 0.7723 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.303e-05/0.7744, allocations: 12 kB / 0.7723 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005393/0.7749, allocations: 308.4 kB / 0.7726 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007158/0.7757, allocations: 442.5 kB / 0.7731 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.7757, allocations: 0 / 0.7731 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.7757, allocations: 4 kB / 0.7731 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.358e-06/0.7758, allocations: 0 / 0.7731 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008088/0.7766, allocations: 0.524 MB / 0.7736 GB, free: 11.24 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.7782, allocations: 1.003 MB / 0.7746 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.7792, allocations: 0.6478 MB / 0.7752 GB, free: 9.543 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.7793, allocations: 7.938 kB / 0.7752 GB, free: 9.535 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007616/0.7801, allocations: 458.7 kB / 0.7756 GB, free: 9.062 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 2.933e-06/0.7801, allocations: 0 / 0.7756 GB, free: 9.062 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001469/0.7815, allocations: 0.7686 MB / 0.7764 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.7817, allocations: 140.5 kB / 0.7765 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.782, allocations: 220.4 kB / 0.7767 GB, free: 7.891 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.7821, allocations: 25.7 kB / 0.7767 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.7822, allocations: 128.8 kB / 0.7769 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.7823, allocations: 67.02 kB / 0.7769 GB, free: 7.664 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.7823, allocations: 0 / 0.7769 GB, free: 7.664 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002021/0.7825, allocations: 350.8 kB / 0.7773 GB, free: 7.312 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/0.7831, allocations: 316.7 kB / 0.7776 GB, free: 7.004 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.7837, allocations: 405.6 kB / 0.778 GB, free: 6.574 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.7843, allocations: 359.8 kB / 0.7783 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.7844, allocations: 4 kB / 0.7783 GB, free: 6.219 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001444/0.7858, allocations: 0.7782 MB / 0.7791 GB, free: 5.434 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.7859, allocations: 8 kB / 0.7791 GB, free: 5.426 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.884e-06/0.7859, allocations: 0 / 0.7791 GB, free: 5.426 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.7859, allocations: 8 kB / 0.7791 GB, free: 5.418 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.7861, allocations: 39.91 kB / 0.7791 GB, free: 5.379 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.7862, allocations: 15.98 kB / 0.7791 GB, free: 5.363 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.7865, allocations: 11.84 kB / 0.7791 GB, free: 5.352 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/0.7868, allocations: 207.8 kB / 0.7793 GB, free: 5.148 MB / 0.6511 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.0002094/0.7871, allocations: 146.4 kB / 0.7795 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.567e-05/0.7872, allocations: 27.62 kB / 0.7795 GB, free: 4.969 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.7873, allocations: 33.95 kB / 0.7795 GB, free: 4.941 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.174e-06/0.7873, allocations: 4 kB / 0.7795 GB, free: 4.938 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.189e-06/0.7873, allocations: 4 kB / 0.7795 GB, free: 4.934 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.978e-06/0.7873, allocations: 7.938 kB / 0.7796 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/0.79, allocations: 1.637 MB / 0.7812 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.7e-06/0.7901, allocations: 4 kB / 0.7812 GB, free: 3.238 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.7901, allocations: 27.91 kB / 0.7812 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.7902, allocations: 4 kB / 0.7812 GB, free: 3.207 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.7902, allocations: 19.97 kB / 0.7812 GB, free: 3.188 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.952e-06/0.7902, allocations: 80 / 0.7812 GB, free: 3.188 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.418e-06/0.7902, allocations: 7.984 kB / 0.7812 GB, free: 3.18 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.7918, allocations: 1.126 MB / 0.7823 GB, free: 2.016 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.966e-05/0.7919, allocations: 100.8 kB / 0.7824 GB, free: 1.898 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.792, allocations: 7.953 kB / 0.7824 GB, free: 1.891 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.7923, allocations: 7.922 kB / 0.7824 GB, free: 1.883 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.7924, allocations: 55.88 kB / 0.7825 GB, free: 1.828 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003479/0.7928, allocations: 223.5 kB / 0.7827 GB, free: 1.609 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002208/0.793, allocations: 160.5 kB / 0.7828 GB, free: 1.453 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.11e-07/0.793, allocations: 0 / 0.7828 GB, free: 1.453 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006661/0.7937, allocations: 48 kB / 0.7829 GB, free: 1.406 MB / 0.6511 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.0002308/0.794, allocations: 137.3 kB / 0.783 GB, free: 1.262 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.7952, allocations: 0.7067 MB / 0.7837 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.674e-06/0.7953, allocations: 0 / 0.7837 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.7959, allocations: 401.8 kB / 0.7841 GB, free: 168 kB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.7977, allocations: 360.9 kB / 0.7844 GB, free: 15.82 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.7994, allocations: 0.8486 MB / 0.7853 GB, free: 14.94 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.7999, allocations: 0.7647 MB / 0.786 GB, free: 14.15 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0004242/0.8003, allocations: 99.78 kB / 0.7861 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.8005, allocations: 67.38 kB / 0.7862 GB, free: 13.99 MB / 0.6667 GB Notification: Performance of SimCode: time 1.708e-06/0.8005, allocations: 4 kB / 0.7862 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of Templates: time 0.0181/0.8187, allocations: 7.688 MB / 0.7937 GB, free: 6.398 MB / 0.6667 GB