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.01082/0.01082, allocations: 221.6 kB / 15.17 MB, free: 5.93 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.00112/0.00112, allocations: 175.1 kB / 16.06 MB, free: 5.828 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 4.065/4.065, allocations: 389.1 MB / 405.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.272/4.272, allocations: 472.3 MB / 0.9018 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.0005132, allocations: 16 kB / 1.008 GB, free: 21.59 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5345/0.5351, allocations: 98.71 MB / 1.104 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001957/0.5371, allocations: 1.111 MB / 1.105 GB, free: 9.598 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.000986/0.5381, allocations: 263.3 kB / 1.105 GB, free: 9.34 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.44e-05/0.5382, allocations: 0.625 kB / 1.105 GB, free: 9.34 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.5383, allocations: 15.14 kB / 1.105 GB, free: 9.328 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 8.487e-05/0.5384, allocations: 15.92 kB / 1.105 GB, free: 9.312 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004983/0.539, allocations: 75.73 kB / 1.105 GB, free: 9.238 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.000349/0.5393, allocations: 196 kB / 1.106 GB, free: 9.043 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 7.034e-05/0.5394, allocations: 5.125 kB / 1.106 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.5396, allocations: 79.81 kB / 1.106 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.5398, allocations: 104.3 kB / 1.106 GB, free: 8.859 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.5399, allocations: 8.5 kB / 1.106 GB, free: 8.852 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 5.768e-05/0.54, allocations: 8 kB / 1.106 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.5401, allocations: 76.38 kB / 1.106 GB, free: 8.77 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 7.962e-05/0.5402, allocations: 58.27 kB / 1.106 GB, free: 8.707 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0003029/0.5406, allocations: 199.6 kB / 1.106 GB, free: 8.512 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.57e-06/0.5406, allocations: 4.844 kB / 1.106 GB, free: 8.508 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.187e-06/0.5406, allocations: 0 / 1.106 GB, free: 8.508 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.829e-06/0.5406, allocations: 3.938 kB / 1.106 GB, free: 8.504 MB / 0.5105 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.001346/0.542, allocations: 0.6309 MB / 1.107 GB, free: 7.801 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5421, allocations: 8.031 kB / 1.107 GB, free: 7.793 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.5422, allocations: 35.56 kB / 1.107 GB, free: 7.758 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.5427, allocations: 256 kB / 1.107 GB, free: 7.473 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.5428, allocations: 20.28 kB / 1.107 GB, free: 7.453 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.5429, allocations: 16 kB / 1.107 GB, free: 7.438 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.544, allocations: 467 kB / 1.108 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.544, allocations: 0 / 1.108 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.5441, allocations: 8 kB / 1.108 GB, free: 6.961 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.5441, allocations: 4 kB / 1.108 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008462/0.545, allocations: 322.9 kB / 1.108 GB, free: 6.645 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.5461, allocations: 0.563 MB / 1.108 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002501/0.5486, allocations: 1.033 MB / 1.109 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.5502, allocations: 0.6544 MB / 1.11 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.709e-05/0.5503, allocations: 9.359 kB / 1.11 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.5514, allocations: 487.1 kB / 1.111 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=37): time 5.504e-06/0.5515, allocations: 0 / 1.111 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of matching and sorting (n=37): time 0.003077/0.5546, allocations: 1.105 MB / 1.112 GB, free: 2.688 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.5547, allocations: 140.5 kB / 1.112 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.5551, allocations: 252.9 kB / 1.112 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.5552, allocations: 37.7 kB / 1.112 GB, free: 2.223 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.5553, allocations: 125.1 kB / 1.112 GB, free: 2.094 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.5555, allocations: 82.94 kB / 1.112 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.5555, allocations: 11.94 kB / 1.112 GB, free: 2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.5557, allocations: 346.8 kB / 1.113 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008211/0.5565, allocations: 332.7 kB / 1.113 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009012/0.5574, allocations: 422.4 kB / 1.113 GB, free: 0.875 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000955/0.5584, allocations: 357.4 kB / 1.114 GB, free: 0.5273 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.012e-06/0.5584, allocations: 0 / 1.114 GB, free: 0.5273 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002478/0.5609, allocations: 0.8288 MB / 1.114 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.561, allocations: 8 kB / 1.114 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.561, allocations: 4.562 kB / 1.114 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.5611, allocations: 4 kB / 1.114 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.5615, allocations: 43.84 kB / 1.115 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.5615, allocations: 4 kB / 1.115 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005758/0.5621, allocations: 35.67 kB / 1.115 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007202/0.5628, allocations: 267.5 kB / 1.115 GB, free: 15.33 MB / 0.5261 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.0004613/0.5633, allocations: 197.6 kB / 1.115 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.5635, allocations: 23.72 kB / 1.115 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.5636, allocations: 42.17 kB / 1.115 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.5637, allocations: 4 kB / 1.115 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.5637, allocations: 3.938 kB / 1.115 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.5637, allocations: 3.984 kB / 1.115 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.5685, allocations: 1.71 MB / 1.117 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.5686, allocations: 3.938 kB / 1.117 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.5687, allocations: 23.92 kB / 1.117 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.719e-05/0.5687, allocations: 7.984 kB / 1.117 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.5688, allocations: 19.97 kB / 1.117 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.658e-06/0.5689, allocations: 0 / 1.117 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.336e-06/0.5689, allocations: 4 kB / 1.117 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002666/0.5716, allocations: 1.117 MB / 1.118 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.5717, allocations: 108.7 kB / 1.118 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.5719, allocations: 8 kB / 1.118 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/0.5725, allocations: 8 kB / 1.118 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.5728, allocations: 55.89 kB / 1.118 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006893/0.5735, allocations: 279.5 kB / 1.118 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003452/0.5738, allocations: 172.5 kB / 1.119 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.12e-06/0.5739, allocations: 0 / 1.119 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001202/0.5751, allocations: 64 kB / 1.119 GB, free: 11.39 MB / 0.5261 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.0002911/0.5754, allocations: 135.8 kB / 1.119 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00212/0.5775, allocations: 0.7434 MB / 1.119 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.111e-06/0.5776, allocations: 256 / 1.119 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.5788, allocations: 411.1 kB / 1.12 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/0.5825, allocations: 371.2 kB / 1.12 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.5858, allocations: 1.029 MB / 1.121 GB, free: 8.691 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/0.5865, allocations: 0.7569 MB / 1.122 GB, free: 7.902 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0007101/0.5873, allocations: 94.91 kB / 1.122 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.5876, allocations: 71.38 kB / 1.122 GB, free: 7.746 MB / 0.5261 GB Notification: Performance of SimCode: time 2.608e-06/0.5876, allocations: 4 kB / 1.122 GB, free: 7.742 MB / 0.5261 GB Notification: Performance of Templates: time 0.03234/0.62, allocations: 8.342 MB / 1.13 GB, free: 15.5 MB / 0.5417 GB