Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.63/1.63, allocations: 251.5 MB / 267.4 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 179 kB / 326.5 MB, free: 2.68 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205 MB / 0.5766 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008173/0.0008173, allocations: 86.31 kB / 0.6803 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003048, allocations: 10.19 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.1902, allocations: 105.4 MB / 0.8967 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001502/0.1917, allocations: 1.146 MB / 0.8979 GB, free: 66.99 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005916/0.1923, allocations: 275.9 kB / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.922e-05/0.1924, allocations: 0 / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.1926, allocations: 15.92 kB / 0.8981 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.955e-05/0.1927, allocations: 15.86 kB / 0.8982 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.193, allocations: 91.84 kB / 0.8982 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.1933, allocations: 208 kB / 0.8984 GB, free: 66.4 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.871e-05/0.1933, allocations: 5.125 kB / 0.8985 GB, free: 66.39 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.716e-05/0.1934, allocations: 79.81 kB / 0.8985 GB, free: 66.31 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001397/0.1935, allocations: 103.6 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.1936, allocations: 12 kB / 0.8986 GB, free: 66.2 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.358e-05/0.1936, allocations: 8 kB / 0.8986 GB, free: 66.19 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.327e-05/0.1937, allocations: 79.72 kB / 0.8987 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.543e-05/0.1938, allocations: 99.38 kB / 0.8988 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.194, allocations: 203.8 kB / 0.899 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.194, allocations: 7.938 kB / 0.899 GB, free: 65.81 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.974e-06/0.194, allocations: 0 / 0.899 GB, free: 65.81 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.194, allocations: 0 / 0.899 GB, free: 65.81 MB / 0.6042 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.0008829/0.1949, allocations: 0.6278 MB / 0.8996 GB, free: 65.1 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.195, allocations: 8.031 kB / 0.8996 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.626e-05/0.1951, allocations: 28.64 kB / 0.8997 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.1954, allocations: 270.7 kB / 0.8999 GB, free: 64.76 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.1954, allocations: 16.66 kB / 0.8999 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.1954, allocations: 24.36 kB / 0.9 GB, free: 64.72 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.1959, allocations: 456.2 kB / 0.9004 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.1959, allocations: 192 / 0.9004 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.196, allocations: 7.938 kB / 0.9004 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.196, allocations: 7.938 kB / 0.9004 GB, free: 64.25 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.1963, allocations: 323.8 kB / 0.9007 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004891/0.1968, allocations: 0.5662 MB / 0.9013 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008743/0.1977, allocations: 1.036 MB / 0.9023 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005499/0.1982, allocations: 0.6554 MB / 0.9029 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.1983, allocations: 4 kB / 0.9029 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004686/0.1987, allocations: 482.3 kB / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/0.1988, allocations: 0 / 0.9034 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001128/0.1999, allocations: 1.118 MB / 0.9045 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.2, allocations: 140.5 kB / 0.9046 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.2001, allocations: 252.8 kB / 0.9049 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.2002, allocations: 33.7 kB / 0.9049 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.802e-05/0.2002, allocations: 133.1 kB / 0.905 GB, free: 59.34 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.2003, allocations: 83.08 kB / 0.9051 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.883e-05/0.2004, allocations: 53.69 kB / 0.9051 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.203e-05/0.2004, allocations: 338.8 kB / 0.9055 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002981/0.2007, allocations: 332.7 kB / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.2011, allocations: 426.4 kB / 0.9062 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006461/0.2017, allocations: 0.7696 MB / 0.9069 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.2017, allocations: 0 / 0.9069 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007832/0.2025, allocations: 0.8344 MB / 0.9078 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.2026, allocations: 7.938 kB / 0.9078 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.2026, allocations: 7.938 kB / 0.9078 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2026, allocations: 4 kB / 0.9078 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.2028, allocations: 43.89 kB / 0.9078 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2028, allocations: 4 kB / 0.9078 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.203, allocations: 27.69 kB / 0.9079 GB, free: 56.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002259/0.2032, allocations: 271.5 kB / 0.9081 GB, free: 56.08 MB / 0.6042 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 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001721/0.2034, allocations: 190 kB / 0.9083 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.2035, allocations: 35.66 kB / 0.9083 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.2036, allocations: 46.09 kB / 0.9084 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2036, allocations: 8 kB / 0.9084 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.2036, allocations: 0 / 0.9084 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2036, allocations: 0 / 0.9084 GB, free: 55.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.2051, allocations: 1.721 MB / 0.9101 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.2051, allocations: 0 / 0.9101 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.626e-05/0.2052, allocations: 23.91 kB / 0.9101 GB, free: 54 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.2052, allocations: 4 kB / 0.9101 GB, free: 54 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.2052, allocations: 19.97 kB / 0.9101 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2052, allocations: 4 kB / 0.9101 GB, free: 53.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2052, allocations: 3.938 kB / 0.9101 GB, free: 53.97 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007884/0.206, allocations: 1.117 MB / 0.9112 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.2061, allocations: 104.7 kB / 0.9113 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.989e-05/0.2061, allocations: 11.98 kB / 0.9113 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.2064, allocations: 8 kB / 0.9113 GB, free: 52.69 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.333e-05/0.2065, allocations: 47.94 kB / 0.9114 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002169/0.2067, allocations: 279.5 kB / 0.9116 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001146/0.2068, allocations: 188.3 kB / 0.9118 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2068, allocations: 0 / 0.9118 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004768/0.2073, allocations: 64 kB / 0.9119 GB, free: 52.12 MB / 0.6042 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.2075, allocations: 131.9 kB / 0.912 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000734/0.2082, allocations: 0.7343 MB / 0.9127 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2082, allocations: 0 / 0.9127 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003568/0.2086, allocations: 391.9 kB / 0.9131 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.2101, allocations: 388.3 kB / 0.9135 GB, free: 50.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.2112, allocations: 1.072 MB / 0.9145 GB, free: 49.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.2114, allocations: 0.7569 MB / 0.9152 GB, free: 48.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2116, allocations: 67.38 kB / 0.9153 GB, free: 48.54 MB / 0.6042 GB Notification: Performance of SimCode: time 3.3e-07/0.2116, allocations: 0 / 0.9153 GB, free: 48.54 MB / 0.6042 GB Notification: Performance of Templates: time 0.005843/0.2174, allocations: 4.512 MB / 0.9197 GB, free: 44.05 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)