Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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.8.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.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.737/1.737, allocations: 288.3 MB / 303.2 MB, free: 8.156 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.00133/0.00133, allocations: 187.6 kB / 371.9 MB, free: 10.27 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.557/1.557, allocations: 205.4 MB / 0.6306 GB, free: 10 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.001132/0.001132, allocations: 86.92 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000459/0.0004592, allocations: 12.53 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2729, allocations: 115.3 MB / 0.9794 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.001093/0.2741, allocations: 413.9 kB / 0.9798 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007192/0.2748, allocations: 264.3 kB / 0.9801 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.2749, allocations: 0 / 0.9801 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.275, allocations: 19.84 kB / 0.9801 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.463e-05/0.2751, allocations: 11.98 kB / 0.9801 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.2755, allocations: 79.78 kB / 0.9802 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.2758, allocations: 140.2 kB / 0.9803 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 6.883e-05/0.2758, allocations: 17.05 kB / 0.9803 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.2759, allocations: 71.89 kB / 0.9804 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.2761, allocations: 111.7 kB / 0.9805 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.026e-05/0.2762, allocations: 8 kB / 0.9805 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.062e-05/0.2762, allocations: 8 kB / 0.9805 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.577e-05/0.2763, allocations: 75.8 kB / 0.9806 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.893e-05/0.2764, allocations: 57.58 kB / 0.9806 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.2766, allocations: 199.5 kB / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2766, allocations: 0 / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2766, allocations: 0 / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.2766, allocations: 8 kB / 0.9808 GB, free: 26.23 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.001037/0.2776, allocations: 0.6356 MB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.2777, allocations: 12.02 kB / 0.9815 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.603e-05/0.2778, allocations: 31.7 kB / 0.9815 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.2782, allocations: 253.6 kB / 0.9818 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.2782, allocations: 12.28 kB / 0.9818 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.2782, allocations: 23.98 kB / 0.9818 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.2788, allocations: 466.6 kB / 0.9822 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2788, allocations: 4 kB / 0.9822 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.2788, allocations: 4 kB / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.2789, allocations: 4 kB / 0.9822 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.2792, allocations: 319.8 kB / 0.9825 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000596/0.2798, allocations: 0.574 MB / 0.9831 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009285/0.2807, allocations: 1.029 MB / 0.9841 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.2808, allocations: 12.2 kB / 0.9841 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00051/0.2813, allocations: 470.2 kB / 0.9846 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 2.013e-06/0.2813, allocations: 4 kB / 0.9846 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.001232/0.2825, allocations: 1.108 MB / 0.9857 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.2826, allocations: 152.4 kB / 0.9858 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2828, allocations: 244.9 kB / 0.986 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.2829, allocations: 37.7 kB / 0.9861 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.2829, allocations: 125.1 kB / 0.9862 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.261e-05/0.283, allocations: 83.08 kB / 0.9863 GB, free: 20.36 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-05/0.283, allocations: 8 kB / 0.9863 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.981e-05/0.2831, allocations: 338.8 kB / 0.9866 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/0.2835, allocations: 332.7 kB / 0.9869 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.2838, allocations: 418.5 kB / 0.9873 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.2842, allocations: 361.6 kB / 0.9877 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.2842, allocations: 4 kB / 0.9877 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008563/0.2851, allocations: 0.8287 MB / 0.9885 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.2851, allocations: 8 kB / 0.9885 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.2851, allocations: 4 kB / 0.9885 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.2851, allocations: 4 kB / 0.9885 GB, free: 18.03 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.2853, allocations: 43.89 kB / 0.9885 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.2853, allocations: 8 kB / 0.9885 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.2856, allocations: 35.69 kB / 0.9886 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/0.2859, allocations: 267.8 kB / 0.9888 GB, free: 17.68 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.0002085/0.2861, allocations: 193.7 kB / 0.989 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/0.2862, allocations: 31.58 kB / 0.989 GB, free: 17.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.109e-05/0.2862, allocations: 38.17 kB / 0.9891 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.2863, allocations: 8 kB / 0.9891 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.2863, allocations: 0 / 0.9891 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.001e-05/0.2863, allocations: 0 / 0.9891 GB, free: 17.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001731/0.2881, allocations: 1.715 MB / 0.9908 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.2881, allocations: 3.984 kB / 0.9908 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.084e-05/0.2881, allocations: 23.91 kB / 0.9908 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/0.2881, allocations: 4 kB / 0.9908 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.445e-05/0.2882, allocations: 23.97 kB / 0.9908 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.2882, allocations: 0 / 0.9908 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2882, allocations: 4 kB / 0.9908 GB, free: 15.58 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009497/0.2892, allocations: 1.153 MB / 0.9919 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.439e-05/0.2892, allocations: 104.7 kB / 0.992 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/0.2893, allocations: 8 kB / 0.9921 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.2895, allocations: 15.94 kB / 0.9921 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.2897, allocations: 51.94 kB / 0.9921 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/0.2899, allocations: 279.5 kB / 0.9924 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001154/0.29, allocations: 172.4 kB / 0.9926 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.29, allocations: 0 / 0.9926 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005218/0.2906, allocations: 64 kB / 0.9926 GB, free: 13.69 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000162/0.2907, allocations: 137.8 kB / 0.9927 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007768/0.2915, allocations: 0.7267 MB / 0.9935 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2915, allocations: 0 / 0.9935 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004069/0.292, allocations: 411.8 kB / 0.9938 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.2934, allocations: 373.8 kB / 0.9942 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.2946, allocations: 1.017 MB / 0.9952 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.295, allocations: 0.7647 MB / 0.9959 GB, free: 10.22 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003435/0.2953, allocations: 102.9 kB / 0.996 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.2954, allocations: 63.38 kB / 0.9961 GB, free: 10.06 MB / 0.6198 GB Notification: Performance of SimCode: time 3.1e-07/0.2955, allocations: 4 kB / 0.9961 GB, free: 10.06 MB / 0.6198 GB Notification: Performance of Templates: time 0.01189/0.3074, allocations: 8.327 MB / 1.004 GB, free: 1.82 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)