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.478/1.478, allocations: 252 MB / 268 MB, free: 10.87 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.00131/0.00131, allocations: 175.8 kB / 327.6 MB, free: 2.09 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.05/2.05, allocations: 205.4 MB / 0.5786 GB, free: 20.37 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.001045/0.001046, allocations: 85.38 kB / 0.6832 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003185, allocations: 11.59 kB / 0.7976 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1843/0.1846, allocations: 106.3 MB / 0.9015 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001412/0.1861, allocations: 1.135 MB / 0.9026 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005239/0.1866, allocations: 263.2 kB / 0.9028 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-05/0.1867, allocations: 0 / 0.9028 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.1868, allocations: 15.92 kB / 0.9028 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.181e-05/0.1869, allocations: 19.86 kB / 0.9029 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1872, allocations: 87.84 kB / 0.9029 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.1874, allocations: 212 kB / 0.9031 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.927e-05/0.1875, allocations: 9.125 kB / 0.9032 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.938e-05/0.1875, allocations: 79.75 kB / 0.9032 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1877, allocations: 103.7 kB / 0.9033 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.84e-05/0.1877, allocations: 8 kB / 0.9033 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.262e-05/0.1878, allocations: 15.94 kB / 0.9033 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.686e-05/0.1879, allocations: 79.72 kB / 0.9034 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.004e-05/0.188, allocations: 125.1 kB / 0.9035 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.1881, allocations: 203.6 kB / 0.9037 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1881, allocations: 3.984 kB / 0.9037 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.462e-06/0.1881, allocations: 3.938 kB / 0.9037 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.1881, allocations: 0 / 0.9037 GB, free: 61.46 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.0007787/0.1889, allocations: 0.6242 MB / 0.9044 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.189, allocations: 11.97 kB / 0.9044 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.251e-05/0.189, allocations: 28.66 kB / 0.9044 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1893, allocations: 266.7 kB / 0.9046 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.1893, allocations: 20.64 kB / 0.9047 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.1893, allocations: 16.38 kB / 0.9047 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004467/0.1898, allocations: 455.3 kB / 0.9051 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1898, allocations: 4.125 kB / 0.9051 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.1898, allocations: 11.94 kB / 0.9051 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1898, allocations: 0 / 0.9051 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.1901, allocations: 323.8 kB / 0.9054 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.1906, allocations: 0.5662 MB / 0.906 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008497/0.1914, allocations: 1.033 MB / 0.907 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000537/0.192, allocations: 0.6579 MB / 0.9076 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.609e-05/0.192, allocations: 8 kB / 0.9077 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000445/0.1925, allocations: 478.3 kB / 0.9081 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/0.1925, allocations: 0 / 0.9081 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001075/0.1936, allocations: 1.118 MB / 0.9092 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.1936, allocations: 144.5 kB / 0.9093 GB, free: 55.43 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1938, allocations: 264.9 kB / 0.9096 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1938, allocations: 33.64 kB / 0.9096 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.1939, allocations: 125.1 kB / 0.9097 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/0.194, allocations: 79 kB / 0.9098 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-05/0.194, allocations: 8 kB / 0.9098 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.749e-05/0.1941, allocations: 338.8 kB / 0.9102 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.1944, allocations: 336.6 kB / 0.9105 GB, free: 54.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.1947, allocations: 422.5 kB / 0.9109 GB, free: 53.79 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006312/0.1953, allocations: 0.7644 MB / 0.9116 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1953, allocations: 4 kB / 0.9116 GB, free: 52.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007491/0.1961, allocations: 0.8302 MB / 0.9124 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1961, allocations: 11.94 kB / 0.9124 GB, free: 52.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1961, allocations: 4 kB / 0.9125 GB, free: 52.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1961, allocations: 7.984 kB / 0.9125 GB, free: 52.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.1963, allocations: 35.91 kB / 0.9125 GB, free: 52.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.944e-06/0.1963, allocations: 8 kB / 0.9125 GB, free: 52.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.1965, allocations: 35.75 kB / 0.9125 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002172/0.1968, allocations: 267.6 kB / 0.9128 GB, free: 51.79 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 ($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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.1969, allocations: 201.5 kB / 0.913 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.597e-05/0.197, allocations: 27.66 kB / 0.913 GB, free: 51.55 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.749e-05/0.197, allocations: 38.17 kB / 0.913 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.197, allocations: 4 kB / 0.913 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1971, allocations: 4 kB / 0.9131 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1971, allocations: 0 / 0.9131 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.1985, allocations: 1.729 MB / 0.9147 GB, free: 49.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1985, allocations: 0 / 0.9147 GB, free: 49.72 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.67e-05/0.1986, allocations: 19.97 kB / 0.9148 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.1986, allocations: 4 kB / 0.9148 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.1986, allocations: 23.97 kB / 0.9148 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1986, allocations: 7.938 kB / 0.9148 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1986, allocations: 0 / 0.9148 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007398/0.1994, allocations: 1.109 MB / 0.9159 GB, free: 48.54 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.421e-05/0.1994, allocations: 108.7 kB / 0.916 GB, free: 48.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.1995, allocations: 15.98 kB / 0.916 GB, free: 48.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.1997, allocations: 8 kB / 0.916 GB, free: 48.39 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.1998, allocations: 56 kB / 0.9161 GB, free: 48.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002051/0.2, allocations: 279.4 kB / 0.9163 GB, free: 48.06 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001019/0.2001, allocations: 176.4 kB / 0.9165 GB, free: 47.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2001, allocations: 0 / 0.9165 GB, free: 47.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003979/0.2005, allocations: 60 kB / 0.9165 GB, free: 47.83 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.000141/0.2007, allocations: 137.2 kB / 0.9167 GB, free: 47.69 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006872/0.2014, allocations: 0.73 MB / 0.9174 GB, free: 46.96 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2014, allocations: 0 / 0.9174 GB, free: 46.96 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003651/0.2018, allocations: 391.8 kB / 0.9178 GB, free: 46.58 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.2033, allocations: 398.1 kB / 0.9181 GB, free: 46.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2043, allocations: 1.064 MB / 0.9192 GB, free: 45.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.2045, allocations: 0.7569 MB / 0.9199 GB, free: 44.32 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.2046, allocations: 63.38 kB / 0.92 GB, free: 44.25 MB / 0.6042 GB Notification: Performance of SimCode: time 3.2e-07/0.2046, allocations: 8 kB / 0.92 GB, free: 44.25 MB / 0.6042 GB Notification: Performance of Templates: time 0.004806/0.2094, allocations: 4.501 MB / 0.9244 GB, free: 39.77 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)