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="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",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="mat",numberOfIntervals=5000,variableFilter="time|dayTypMon.y.1.|dayTypSat.y.1.|dayTypTwoWeeks.y.1.|dayTypMonThr.y.1.|dayTypMonThr.y.2.|dayTypMonThr.y.3.",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.359/1.359, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001169/0.001169, allocations: 175.8 kB / 326.5 MB, free: 2.242 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.093/2.093, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0008828/0.0008826, allocations: 83.97 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 12 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2406, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.4127, allocations: 131.6 MB / 1.029 GB, free: 12.13 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.413, allocations: 67.95 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05482/0.4679, allocations: 22.32 MB / 1.05 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.915e-06/0.4679, allocations: 3.938 kB / 1.05 GB, free: 5.707 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.475e-05/0.468, allocations: 12 kB / 1.051 GB, free: 5.695 MB / 0.698 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.001151/0.4691, allocations: 0.6393 MB / 1.051 GB, free: 4.98 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4692, allocations: 8.031 kB / 1.051 GB, free: 4.973 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.4693, allocations: 27.72 kB / 1.051 GB, free: 4.945 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.4697, allocations: 253.7 kB / 1.051 GB, free: 4.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.4697, allocations: 12.28 kB / 1.051 GB, free: 4.648 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.4698, allocations: 20 kB / 1.051 GB, free: 4.629 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006176/0.4704, allocations: 454.8 kB / 1.052 GB, free: 4.168 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.4704, allocations: 4 kB / 1.052 GB, free: 4.164 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.4705, allocations: 4 kB / 1.052 GB, free: 4.16 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4705, allocations: 4 kB / 1.052 GB, free: 4.156 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/0.4709, allocations: 327.7 kB / 1.052 GB, free: 3.836 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006723/0.4716, allocations: 0.5547 MB / 1.053 GB, free: 3.223 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.4727, allocations: 1.029 MB / 1.054 GB, free: 2.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.4728, allocations: 12.22 kB / 1.054 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/0.4733, allocations: 478.5 kB / 1.054 GB, free: 1.656 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.4733, allocations: 0 / 1.054 GB, free: 1.656 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001414/0.4747, allocations: 1.106 MB / 1.055 GB, free: 0.543 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.4748, allocations: 140.5 kB / 1.055 GB, free: 384 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.4751, allocations: 232 kB / 1.056 GB, free: 148 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.4751, allocations: 33.7 kB / 1.056 GB, free: 108 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.4039/0.879, allocations: 124.1 kB / 1.056 GB, free: 154.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.8792, allocations: 75.98 kB / 1.056 GB, free: 154.4 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.968e-05/0.8792, allocations: 8.906 kB / 1.056 GB, free: 154.4 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.47e-05/0.8793, allocations: 340.9 kB / 1.056 GB, free: 154.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.8797, allocations: 330.3 kB / 1.057 GB, free: 154.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.8801, allocations: 421.8 kB / 1.057 GB, free: 154 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.8805, allocations: 358.8 kB / 1.057 GB, free: 154 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.8805, allocations: 0 / 1.057 GB, free: 154 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008375/0.8813, allocations: 0.8333 MB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.8814, allocations: 10.66 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.8814, allocations: 6.422 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.8814, allocations: 5.781 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.8816, allocations: 42.45 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.8816, allocations: 6.062 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.8818, allocations: 15.03 kB / 1.058 GB, free: 153.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/0.882, allocations: 212.9 kB / 1.058 GB, free: 153.9 MB / 0.698 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.0002111/0.8822, allocations: 201.1 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/0.8823, allocations: 26.84 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.036e-05/0.8824, allocations: 42.06 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.8824, allocations: 2.562 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.8824, allocations: 3.594 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.8824, allocations: 6.969 kB / 1.059 GB, free: 153.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.8839, allocations: 1.696 MB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.884, allocations: 4 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.692e-05/0.884, allocations: 22.86 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.884, allocations: 2.969 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.884, allocations: 22.27 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.8841, allocations: 6.094 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8841, allocations: 3.469 kB / 1.06 GB, free: 153.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008831/0.8849, allocations: 1.149 MB / 1.061 GB, free: 152.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/0.885, allocations: 106.4 kB / 1.062 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.8851, allocations: 16.59 kB / 1.062 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.8853, allocations: 7.047 kB / 1.062 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.631e-05/0.8854, allocations: 57.22 kB / 1.062 GB, free: 152.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002782/0.8857, allocations: 221.5 kB / 1.062 GB, free: 152.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001324/0.8858, allocations: 171.4 kB / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8858, allocations: 0 / 1.062 GB, free: 152.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004505/0.8863, allocations: 63.16 kB / 1.062 GB, free: 152.6 MB / 0.698 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.0001587/0.8864, allocations: 144 kB / 1.062 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008309/0.8873, allocations: 0.7333 MB / 1.063 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8873, allocations: 0 / 1.063 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005665/0.8878, allocations: 403.1 kB / 1.063 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.8893, allocations: 369.6 kB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.891, allocations: 1.013 MB / 1.065 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.8914, allocations: 0.7585 MB / 1.065 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004543/0.8918, allocations: 102.2 kB / 1.065 GB, free: 151.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.892, allocations: 73.48 kB / 1.066 GB, free: 151.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.002e-06/0.892, allocations: 3.938 kB / 1.066 GB, free: 151.5 MB / 0.698 GB Notification: Performance of Templates: time 0.01533/0.9074, allocations: 8.034 MB / 1.073 GB, free: 150.5 MB / 0.698 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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_DayType.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches