Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadModel(Buildings): time 3.933/3.933, allocations: 432.7 MB / 445.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.682e-05/2.69e-05, allocations: 4.031 kB / 0.5383 GB, free: 10.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1748, allocations: 98.72 MB / 0.6347 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2001/0.375, allocations: 125.1 MB / 0.7569 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.3753, allocations: 83.89 kB / 0.7569 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.07858/0.4539, allocations: 18.82 MB / 0.7753 GB, free: 1.742 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.901e-06/0.4539, allocations: 4 kB / 0.7753 GB, free: 1.738 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.132e-05/0.454, allocations: 8 kB / 0.7753 GB, free: 1.73 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.001027/0.455, allocations: 0.5918 MB / 0.7759 GB, free: 1.066 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.4551, allocations: 8.031 kB / 0.7759 GB, free: 1.059 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9e-05/0.4552, allocations: 31.58 kB / 0.776 GB, free: 1.027 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.4556, allocations: 249.8 kB / 0.7762 GB, free: 0.7461 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.4557, allocations: 16.22 kB / 0.7762 GB, free: 0.7305 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.4557, allocations: 24 kB / 0.7762 GB, free: 0.707 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008127/0.4565, allocations: 458.7 kB / 0.7767 GB, free: 248 kB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.4566, allocations: 0 / 0.7767 GB, free: 248 kB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.4566, allocations: 4 kB / 0.7767 GB, free: 244 kB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.711e-06/0.4566, allocations: 4 kB / 0.7767 GB, free: 240 kB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.464/0.9207, allocations: 316.6 kB / 0.777 GB, free: 142.6 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008918/0.9216, allocations: 0.5512 MB / 0.7775 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.9232, allocations: 1.024 MB / 0.7785 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001043/0.9243, allocations: 0.6584 MB / 0.7792 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-05/0.9244, allocations: 5.797 kB / 0.7792 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007567/0.9252, allocations: 476.6 kB / 0.7796 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 4.385e-06/0.9252, allocations: 0 / 0.7796 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.00168/0.9269, allocations: 0.7789 MB / 0.7804 GB, free: 142.2 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.927, allocations: 147.7 kB / 0.7805 GB, free: 142 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.9273, allocations: 226.2 kB / 0.7807 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.9273, allocations: 35.77 kB / 0.7808 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/0.9274, allocations: 123.4 kB / 0.7809 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.818e-05/0.9275, allocations: 80.22 kB / 0.781 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.9276, allocations: 8.625 kB / 0.781 GB, free: 141.8 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.769e-05/0.9277, allocations: 342.2 kB / 0.7813 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006613/0.9283, allocations: 329.9 kB / 0.7816 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006161/0.929, allocations: 419.9 kB / 0.782 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006236/0.9296, allocations: 361 kB / 0.7824 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.619e-06/0.9296, allocations: 1.062 kB / 0.7824 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001475/0.9311, allocations: 0.8261 MB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.9312, allocations: 7.438 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.9312, allocations: 6.875 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.9312, allocations: 6 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.9314, allocations: 42.09 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-05/0.9315, allocations: 6.641 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.9318, allocations: 19.5 kB / 0.7832 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003555/0.9321, allocations: 211.1 kB / 0.7835 GB, free: 141.3 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.0001665/0.9323, allocations: 156.8 kB / 0.7836 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.257e-05/0.9324, allocations: 30.66 kB / 0.7836 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.771e-05/0.9325, allocations: 35.3 kB / 0.7837 GB, free: 141.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.913e-06/0.9325, allocations: 7.781 kB / 0.7837 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.389e-06/0.9326, allocations: 1.312 kB / 0.7837 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.512e-06/0.9326, allocations: 7.047 kB / 0.7837 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.9353, allocations: 1.7 MB / 0.7853 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-06/0.9354, allocations: 1.438 kB / 0.7853 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.999e-05/0.9354, allocations: 19.83 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.902e-06/0.9355, allocations: 2.906 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.585e-05/0.9355, allocations: 22.58 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.508e-06/0.9355, allocations: 4.234 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.723e-06/0.9355, allocations: 2.781 kB / 0.7854 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.937, allocations: 1.145 MB / 0.7865 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.945e-05/0.937, allocations: 105.7 kB / 0.7866 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.166e-05/0.9371, allocations: 13.53 kB / 0.7866 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.9375, allocations: 11.69 kB / 0.7866 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.9376, allocations: 52.47 kB / 0.7867 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003448/0.938, allocations: 224.4 kB / 0.7869 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001975/0.9382, allocations: 168.4 kB / 0.7871 GB, free: 140 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.1e-07/0.9382, allocations: 0 / 0.7871 GB, free: 140 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000687/0.9389, allocations: 65.14 kB / 0.7871 GB, free: 140 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.0001922/0.9391, allocations: 136.6 kB / 0.7872 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001278/0.9404, allocations: 0.7339 MB / 0.788 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.9404, allocations: 1.094 kB / 0.788 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.9411, allocations: 401.7 kB / 0.7884 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.9428, allocations: 312.8 kB / 0.7886 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.9444, allocations: 0.8613 MB / 0.7895 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.9447, allocations: 0.7604 MB / 0.7902 GB, free: 139 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004522/0.9452, allocations: 100.8 kB / 0.7903 GB, free: 139 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.9454, allocations: 66.52 kB / 0.7904 GB, free: 139 MB / 0.6511 GB Notification: Performance of SimCode: time 1.84e-06/0.9454, allocations: 0 / 0.7904 GB, free: 139 MB / 0.6511 GB Notification: Performance of Templates: time 0.02362/0.969, allocations: 7.85 MB / 0.7981 GB, free: 137.8 MB / 0.6511 GB