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.393/1.393, 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.001006/0.001006, allocations: 177.9 kB / 326.5 MB, free: 2.695 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.895/1.895, allocations: 205 MB / 0.5766 GB, free: 21 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.0007208/0.0007208, allocations: 84 kB / 0.6804 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002925, allocations: 8.219 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.211, allocations: 105.4 MB / 0.8968 GB, free: 68.17 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001395/0.2124, allocations: 1.146 MB / 0.8979 GB, free: 67.02 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005079/0.213, allocations: 267.9 kB / 0.8981 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.39e-05/0.213, allocations: 8 kB / 0.8981 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.2131, allocations: 15.86 kB / 0.8982 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.659e-05/0.2132, allocations: 19.86 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002769/0.2135, allocations: 79.86 kB / 0.8983 GB, free: 66.63 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.2137, allocations: 212 kB / 0.8985 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.785e-05/0.2137, allocations: 13.11 kB / 0.8985 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.469e-05/0.2138, allocations: 75.81 kB / 0.8985 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.2139, allocations: 111.6 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.214, allocations: 8 kB / 0.8987 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 3.099e-05/0.214, allocations: 8 kB / 0.8987 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.276e-05/0.2141, allocations: 83.72 kB / 0.8987 GB, free: 66.13 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.681e-05/0.2142, allocations: 99.38 kB / 0.8988 GB, free: 66.03 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.2144, allocations: 263.3 kB / 0.8991 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2144, allocations: 0 / 0.8991 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2144, allocations: 4 kB / 0.8991 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.2144, allocations: 0 / 0.8991 GB, free: 65.77 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.0007674/0.2152, allocations: 0.6277 MB / 0.8997 GB, free: 65.06 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.2152, allocations: 12.03 kB / 0.8997 GB, free: 65.05 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.066e-05/0.2153, allocations: 24.66 kB / 0.8997 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.2155, allocations: 270.7 kB / 0.9 GB, free: 64.72 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.2156, allocations: 16.66 kB / 0.9 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.2156, allocations: 16.38 kB / 0.9 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.216, allocations: 460.2 kB / 0.9005 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.2161, allocations: 192 / 0.9005 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.2161, allocations: 11.92 kB / 0.9005 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.2161, allocations: 7.938 kB / 0.9005 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.2164, allocations: 319.8 kB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004419/0.2168, allocations: 0.5701 MB / 0.9014 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000878/0.2177, allocations: 1.031 MB / 0.9024 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00052/0.2183, allocations: 0.6556 MB / 0.903 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.2183, allocations: 7.984 kB / 0.903 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004408/0.2187, allocations: 486.3 kB / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.2188, allocations: 0 / 0.9035 GB, free: 61.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001059/0.2198, allocations: 1.118 MB / 0.9046 GB, free: 59.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.2199, allocations: 132.5 kB / 0.9047 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.22, allocations: 256.8 kB / 0.9049 GB, free: 59.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.2201, allocations: 37.7 kB / 0.905 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.2201, allocations: 121.1 kB / 0.9051 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.02e-05/0.2202, allocations: 83.08 kB / 0.9052 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.2202, allocations: 61.67 kB / 0.9052 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.697e-05/0.2203, allocations: 338.8 kB / 0.9055 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/0.2206, allocations: 332.7 kB / 0.9059 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.2209, allocations: 422.4 kB / 0.9063 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006455/0.2216, allocations: 0.7751 MB / 0.907 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2216, allocations: 0 / 0.907 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007491/0.2223, allocations: 0.8266 MB / 0.9078 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2223, allocations: 8 kB / 0.9078 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2224, allocations: 3.938 kB / 0.9078 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.2224, allocations: 8.047 kB / 0.9078 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.2225, allocations: 47.89 kB / 0.9079 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.2225, allocations: 7.984 kB / 0.9079 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.2228, allocations: 31.69 kB / 0.9079 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.223, allocations: 272 kB / 0.9082 GB, free: 56.04 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.0001428/0.2231, allocations: 185.7 kB / 0.9084 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/0.2232, allocations: 31.7 kB / 0.9084 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.763e-05/0.2232, allocations: 38.12 kB / 0.9084 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.2233, allocations: 3.984 kB / 0.9084 GB, free: 55.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2233, allocations: 4 kB / 0.9084 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.2233, allocations: 112.6 kB / 0.9085 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.2234, allocations: 8 kB / 0.9086 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.2235, allocations: 11.98 kB / 0.9086 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.074e-05/0.2236, allocations: 47.94 kB / 0.9086 GB, free: 55.58 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000856/0.2244, allocations: 1.133 MB / 0.9097 GB, free: 54.44 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000771/0.2252, allocations: 1.199 MB / 0.9109 GB, free: 53.22 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003589/0.2256, allocations: 388.2 kB / 0.9113 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001011/0.2257, allocations: 172.5 kB / 0.9114 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of Backend: time 3.21e-07/0.2257, allocations: 0 / 0.9114 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008771/0.2266, allocations: 0.4902 MB / 0.9119 GB, free: 52.18 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001235/0.2278, allocations: 1.138 MB / 0.913 GB, free: 51 MB / 0.6042 GB Notification: Performance of Templates: time 0.008035/0.2359, allocations: 6.727 MB / 0.9196 GB, free: 44.32 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)