Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.676/1.676, allocations: 287.4 MB / 303.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 181.6 kB / 371.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.4 MB / 0.6305 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009398/0.0009397, allocations: 100.6 kB / 0.7438 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004252/0.0004253, allocations: 13 kB / 0.8667 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2521, allocations: 115.3 MB / 0.9793 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001128/0.2533, allocations: 413.6 kB / 0.9797 GB, free: 27.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005851/0.2539, allocations: 259.3 kB / 0.9799 GB, free: 27.52 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.791e-05/0.254, allocations: 0 / 0.9799 GB, free: 27.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.2542, allocations: 23.86 kB / 0.98 GB, free: 27.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.2542, allocations: 11.92 kB / 0.98 GB, free: 27.49 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.2546, allocations: 75.84 kB / 0.98 GB, free: 27.41 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.2549, allocations: 192 kB / 0.9802 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.871e-05/0.2549, allocations: 5.125 kB / 0.9802 GB, free: 27.22 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.509e-05/0.255, allocations: 83.81 kB / 0.9803 GB, free: 27.14 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.2552, allocations: 103.7 kB / 0.9804 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.2552, allocations: 12 kB / 0.9804 GB, free: 27.03 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.2553, allocations: 8 kB / 0.9804 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.259e-05/0.2553, allocations: 83.77 kB / 0.9805 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.687e-05/0.2554, allocations: 53.58 kB / 0.9806 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001797/0.2556, allocations: 207.5 kB / 0.9808 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2556, allocations: 0 / 0.9808 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2556, allocations: 0 / 0.9808 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2556, allocations: 0 / 0.9808 GB, free: 26.68 MB / 0.6198 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.0008405/0.2565, allocations: 0.6319 MB / 0.9814 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.2565, allocations: 12.03 kB / 0.9814 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.954e-05/0.2566, allocations: 24.66 kB / 0.9814 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002594/0.2569, allocations: 270.7 kB / 0.9817 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.2569, allocations: 16.66 kB / 0.9817 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.754e-05/0.2569, allocations: 16.38 kB / 0.9817 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.2574, allocations: 467.2 kB / 0.9821 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2575, allocations: 192 / 0.9821 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.2575, allocations: 11.92 kB / 0.9822 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.2575, allocations: 4 kB / 0.9822 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.2578, allocations: 319.8 kB / 0.9825 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.2584, allocations: 0.5779 MB / 0.983 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009113/0.2593, allocations: 1.021 MB / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.2599, allocations: 0.6562 MB / 0.9847 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.2599, allocations: 7.984 kB / 0.9847 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004869/0.2604, allocations: 474.2 kB / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 1.993e-06/0.2604, allocations: 4 kB / 0.9851 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.001124/0.2615, allocations: 1.113 MB / 0.9862 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.2616, allocations: 144.5 kB / 0.9863 GB, free: 20.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001808/0.2618, allocations: 248.9 kB / 0.9866 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.2618, allocations: 37.7 kB / 0.9866 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.2619, allocations: 121.1 kB / 0.9867 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.73e-05/0.262, allocations: 83.12 kB / 0.9868 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.262, allocations: 8 kB / 0.9868 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.685e-05/0.2621, allocations: 338.8 kB / 0.9871 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.2624, allocations: 332.7 kB / 0.9875 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.2627, allocations: 418.5 kB / 0.9879 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006719/0.2634, allocations: 0.7731 MB / 0.9886 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2634, allocations: 4 kB / 0.9886 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008/0.2642, allocations: 0.8258 MB / 0.9894 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2642, allocations: 4 kB / 0.9894 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.2643, allocations: 11.88 kB / 0.9894 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.2643, allocations: 4 kB / 0.9894 GB, free: 17.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2644, allocations: 39.91 kB / 0.9895 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.2645, allocations: 11.98 kB / 0.9895 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.2647, allocations: 35.69 kB / 0.9895 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002255/0.2649, allocations: 263.5 kB / 0.9898 GB, free: 17.01 MB / 0.6198 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.0001548/0.2651, allocations: 198 kB / 0.99 GB, free: 16.81 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.763e-05/0.2651, allocations: 35.61 kB / 0.99 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.867e-05/0.2652, allocations: 38.12 kB / 0.99 GB, free: 16.74 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2652, allocations: 3.984 kB / 0.99 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2652, allocations: 0 / 0.99 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.048e-05/0.2653, allocations: 104.8 kB / 0.9901 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/0.2653, allocations: 8 kB / 0.9902 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.2655, allocations: 11.98 kB / 0.9902 GB, free: 16.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-05/0.2655, allocations: 55.81 kB / 0.9902 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009239/0.2665, allocations: 1.131 MB / 0.9913 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009015/0.2674, allocations: 1.202 MB / 0.9925 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003955/0.2678, allocations: 386.1 kB / 0.9929 GB, free: 13.8 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001169/0.2679, allocations: 172.5 kB / 0.993 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of Backend: time 3.71e-07/0.2679, allocations: 0 / 0.993 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009358/0.2689, allocations: 499.1 kB / 0.9935 GB, free: 13.14 MB / 0.6198 GB Notification: Performance of SimCode: time 0.001375/0.2703, allocations: 1.105 MB / 0.9946 GB, free: 12 MB / 0.6198 GB Notification: Performance of Templates: time 0.008428/0.2787, allocations: 6.506 MB / 1.001 GB, free: 5.543 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)