Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 113.7 kB / 16.38 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 194.1 kB / 17.32 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.91/1.91, allocations: 292.3 MB / 0.5496 GB, free: 17.44 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 67.91 kB / 0.6729 GB, free: 5.852 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3295, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.003615/0.3332, allocations: 0.7087 MB / 0.7855 GB, free: 2.473 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008191/0.334, allocations: 263.2 kB / 0.7858 GB, free: 2.215 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.3342, allocations: 7.938 kB / 0.7858 GB, free: 2.207 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002103/0.3344, allocations: 19.86 kB / 0.7858 GB, free: 2.188 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.874e-05/0.3345, allocations: 19.86 kB / 0.7858 GB, free: 2.168 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005778/0.3351, allocations: 84.28 kB / 0.7859 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.3355, allocations: 235.9 kB / 0.7861 GB, free: 1.855 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 8.409e-05/0.3356, allocations: 9.125 kB / 0.7861 GB, free: 1.848 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001047/0.3357, allocations: 83.81 kB / 0.7862 GB, free: 1.766 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.3359, allocations: 103.7 kB / 0.7863 GB, free: 1.664 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.336, allocations: 16 kB / 0.7863 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 3.977e-05/0.336, allocations: 20 kB / 0.7863 GB, free: 1.629 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001388/0.3362, allocations: 83.73 kB / 0.7864 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.3363, allocations: 107.4 kB / 0.7865 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003472/0.3367, allocations: 279 kB / 0.7868 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3367, allocations: 7.922 kB / 0.7868 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.524e-06/0.3367, allocations: 0 / 0.7868 GB, free: 1.16 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.3367, allocations: 4 kB / 0.7868 GB, free: 1.156 MB / 0.6544 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.001142/0.3379, allocations: 0.7018 MB / 0.7875 GB, free: 380 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.3379, allocations: 11.97 kB / 0.7875 GB, free: 368 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.367e-05/0.338, allocations: 28.56 kB / 0.7875 GB, free: 340 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.3384, allocations: 262.9 kB / 0.7878 GB, free: 40 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.3384, allocations: 12.66 kB / 0.7878 GB, free: 28 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.3385, allocations: 20.38 kB / 0.7878 GB, free: 8 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6237/0.9622, allocations: 458.4 kB / 0.7882 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.9623, allocations: 5.531 kB / 0.7882 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.9623, allocations: 7.75 kB / 0.7882 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.9623, allocations: 3.797 kB / 0.7883 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.9627, allocations: 324.9 kB / 0.7886 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006857/0.9634, allocations: 0.5618 MB / 0.7891 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.9647, allocations: 1.034 MB / 0.7901 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007274/0.9654, allocations: 0.6582 MB / 0.7908 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.9654, allocations: 14.08 kB / 0.7908 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005794/0.966, allocations: 475.7 kB / 0.7912 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=37): time 3.035e-06/0.966, allocations: 0 / 0.7912 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=37): time 0.001429/0.9675, allocations: 1.111 MB / 0.7923 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.9676, allocations: 144.7 kB / 0.7925 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.9678, allocations: 258.8 kB / 0.7927 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.9678, allocations: 36.14 kB / 0.7927 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.2e-05/0.9679, allocations: 123.6 kB / 0.7929 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/0.968, allocations: 82.14 kB / 0.7929 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.9681, allocations: 106.5 kB / 0.793 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.9682, allocations: 344.7 kB / 0.7934 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.9686, allocations: 330.1 kB / 0.7937 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.9691, allocations: 421.6 kB / 0.7941 GB, free: 47.27 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008722/0.97, allocations: 0.7686 MB / 0.7948 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.97, allocations: 0 / 0.7948 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001184/0.9712, allocations: 0.83 MB / 0.7956 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.9712, allocations: 12.69 kB / 0.7957 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.9712, allocations: 5.719 kB / 0.7957 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.9712, allocations: 5.5 kB / 0.7957 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.9714, allocations: 42.36 kB / 0.7957 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.9715, allocations: 6.312 kB / 0.7957 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.9717, allocations: 32 kB / 0.7957 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003097/0.972, allocations: 269.3 kB / 0.796 GB, free: 47.11 MB / 0.6544 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.0002028/0.9722, allocations: 197.4 kB / 0.7962 GB, free: 46.99 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.9723, allocations: 29.56 kB / 0.7962 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.606e-05/0.9724, allocations: 35.56 kB / 0.7962 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.9724, allocations: 4.781 kB / 0.7963 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9724, allocations: 0 / 0.7963 GB, free: 46.97 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.9725, allocations: 106.8 kB / 0.7964 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.468e-05/0.9725, allocations: 14.23 kB / 0.7964 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.9727, allocations: 6 kB / 0.7964 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.9728, allocations: 54.62 kB / 0.7964 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001445/0.9742, allocations: 1.131 MB / 0.7975 GB, free: 46.51 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001463/0.9757, allocations: 1.201 MB / 0.7987 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006578/0.9764, allocations: 391.9 kB / 0.7991 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001866/0.9766, allocations: 172.7 kB / 0.7992 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of Backend: time 1.042e-06/0.9766, allocations: 3.828 kB / 0.7992 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001393/0.978, allocations: 0.4953 MB / 0.7997 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of SimCode: time 0.001837/0.9798, allocations: 1.086 MB / 0.8008 GB, free: 45.01 MB / 0.6544 GB Notification: Performance of Templates: time 0.01863/0.9985, allocations: 7.061 MB / 0.8077 GB, free: 44.7 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)