Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01006/0.01007, allocations: 111.2 kB / 15.06 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001722/0.001722, allocations: 180.5 kB / 15.94 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.047/2.047, allocations: 194.6 MB / 211.3 MB, free: 11.05 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.291/2.291, allocations: 236.2 MB / 492.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004673/0.0004672, allocations: 12 kB / 0.587 GB, free: 2.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.576/0.5764, allocations: 98.7 MB / 0.6833 GB, free: 16.74 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.7839, allocations: 124.5 MB / 0.8049 GB, free: 1.797 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.7842, allocations: 71.95 kB / 0.805 GB, free: 1.727 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.09474/0.8789, allocations: 22.29 MB / 0.8268 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of FrontEnd: time 6.548e-06/0.879, allocations: 0 / 0.8268 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.134e-05/0.879, allocations: 11.88 kB / 0.8268 GB, free: 11.38 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.001168/0.8802, allocations: 0.6471 MB / 0.8274 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.8803, allocations: 12.03 kB / 0.8274 GB, free: 10.65 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.121e-05/0.8804, allocations: 27.67 kB / 0.8274 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.8808, allocations: 245.8 kB / 0.8277 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.027e-05/0.8808, allocations: 16.27 kB / 0.8277 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.935e-05/0.8809, allocations: 16 kB / 0.8277 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007887/0.8817, allocations: 458.6 kB / 0.8282 GB, free: 9.848 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.8817, allocations: 4 kB / 0.8282 GB, free: 9.844 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.8818, allocations: 11.92 kB / 0.8282 GB, free: 9.832 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.8818, allocations: 4 kB / 0.8282 GB, free: 9.828 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005435/0.8823, allocations: 321.3 kB / 0.8285 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008956/0.8832, allocations: 0.5588 MB / 0.829 GB, free: 8.898 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.885, allocations: 1.033 MB / 0.83 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.885, allocations: 11.97 kB / 0.83 GB, free: 7.816 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007884/0.8858, allocations: 478.8 kB / 0.8305 GB, free: 7.324 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.187e-06/0.8858, allocations: 0 / 0.8305 GB, free: 7.324 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002067/0.8879, allocations: 1.103 MB / 0.8316 GB, free: 6.215 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.8881, allocations: 144.5 kB / 0.8317 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.8884, allocations: 227.9 kB / 0.8319 GB, free: 5.809 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.916e-05/0.8885, allocations: 37.7 kB / 0.832 GB, free: 5.766 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.8886, allocations: 125.1 kB / 0.8321 GB, free: 5.641 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.8887, allocations: 79.05 kB / 0.8322 GB, free: 5.562 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.8887, allocations: 12 kB / 0.8322 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.8889, allocations: 342.8 kB / 0.8325 GB, free: 5.207 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.8895, allocations: 328.7 kB / 0.8328 GB, free: 4.887 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.8901, allocations: 418.5 kB / 0.8332 GB, free: 4.445 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006272/0.8908, allocations: 355.8 kB / 0.8336 GB, free: 4.098 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.8908, allocations: 0 / 0.8336 GB, free: 4.098 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001514/0.8923, allocations: 0.8418 MB / 0.8344 GB, free: 3.25 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.8924, allocations: 4 kB / 0.8344 GB, free: 3.246 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.8924, allocations: 4 kB / 0.8344 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.8924, allocations: 4 kB / 0.8344 GB, free: 3.238 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.8926, allocations: 39.91 kB / 0.8344 GB, free: 3.199 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.8927, allocations: 11.92 kB / 0.8344 GB, free: 3.188 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.893, allocations: 16 kB / 0.8345 GB, free: 3.172 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003352/0.8933, allocations: 212.5 kB / 0.8347 GB, free: 2.965 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 () * 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.0003199/0.8937, allocations: 193.7 kB / 0.8348 GB, free: 2.766 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.8938, allocations: 27.62 kB / 0.8349 GB, free: 2.738 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.902e-05/0.8939, allocations: 38.17 kB / 0.8349 GB, free: 2.695 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.8939, allocations: 8 kB / 0.8349 GB, free: 2.688 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.261e-06/0.8939, allocations: 0 / 0.8349 GB, free: 2.688 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.995e-06/0.8939, allocations: 8.203 kB / 0.8349 GB, free: 2.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.8968, allocations: 1.712 MB / 0.8366 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.8968, allocations: 0 / 0.8366 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.639e-05/0.8969, allocations: 19.91 kB / 0.8366 GB, free: 0.8906 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.8969, allocations: 4 kB / 0.8366 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-05/0.8969, allocations: 23.97 kB / 0.8366 GB, free: 0.8633 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.512e-06/0.897, allocations: 8 kB / 0.8366 GB, free: 0.8555 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.897, allocations: 0 / 0.8366 GB, free: 0.8555 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.8985, allocations: 1.146 MB / 0.8378 GB, free: 15.67 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.8987, allocations: 108.7 kB / 0.8379 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.232e-05/0.8988, allocations: 8 kB / 0.8379 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/0.8991, allocations: 8.125 kB / 0.8379 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.8993, allocations: 55.78 kB / 0.8379 GB, free: 15.48 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003829/0.8996, allocations: 227.5 kB / 0.8382 GB, free: 15.25 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0003907/0.9001, allocations: 168.5 kB / 0.8383 GB, free: 15.09 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.527e-06/0.9001, allocations: 8 kB / 0.8383 GB, free: 15.08 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001318/0.9014, allocations: 64 kB / 0.8384 GB, free: 15.02 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) * 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.0003899/0.9019, allocations: 135.1 kB / 0.8385 GB, free: 14.88 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002483/0.9044, allocations: 0.7339 MB / 0.8392 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 5.862e-06/0.9044, allocations: 0 / 0.8392 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.9056, allocations: 407.9 kB / 0.8396 GB, free: 13.74 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/0.9087, allocations: 365.1 kB / 0.84 GB, free: 13.39 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003188/0.9119, allocations: 1.017 MB / 0.841 GB, free: 12.34 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007553/0.9127, allocations: 0.7569 MB / 0.8417 GB, free: 11.56 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0007212/0.9134, allocations: 106.9 kB / 0.8418 GB, free: 11.46 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.9136, allocations: 71.38 kB / 0.8419 GB, free: 11.39 MB / 0.6667 GB Notification: Performance of SimCode: time 1.873e-06/0.9136, allocations: 0 / 0.8419 GB, free: 11.39 MB / 0.6667 GB Notification: Performance of Templates: time 0.01863/0.9323, allocations: 8.039 MB / 0.8497 GB, free: 3.461 MB / 0.6667 GB