Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Obsolete.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_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Obsolete.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_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.296/2.296, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 195.9 kB / 0.4902 GB, free: 2.285 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.627/1.627, allocations: 223.2 MB / 0.7992 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.001021, allocations: 102.3 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003586, allocations: 10.22 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.302, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.4909, allocations: 150.3 MB / 1.376 GB, free: 3.316 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.4912, allocations: 83.92 kB / 1.376 GB, free: 3.234 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06234/0.5535, allocations: 24.3 MB / 1.4 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5536, allocations: 3.938 kB / 1.4 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.44e-05/0.5536, allocations: 4 kB / 1.4 GB, free: 10.89 MB / 0.9011 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.001241/0.5549, allocations: 0.6433 MB / 1.4 GB, free: 10.17 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.5549, allocations: 16.52 kB / 1.4 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.555, allocations: 31.58 kB / 1.4 GB, free: 10.12 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.5555, allocations: 249.7 kB / 1.401 GB, free: 9.84 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.5555, allocations: 12.28 kB / 1.401 GB, free: 9.828 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.5556, allocations: 16 kB / 1.401 GB, free: 9.812 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006812/0.5563, allocations: 458.7 kB / 1.401 GB, free: 9.348 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5563, allocations: 0 / 1.401 GB, free: 9.348 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.5563, allocations: 8 kB / 1.401 GB, free: 9.34 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.5564, allocations: 7.938 kB / 1.401 GB, free: 9.332 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.5568, allocations: 323.8 kB / 1.401 GB, free: 9.016 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/0.5575, allocations: 0.5509 MB / 1.402 GB, free: 8.406 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.5586, allocations: 1.037 MB / 1.403 GB, free: 7.332 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.5587, allocations: 8.016 kB / 1.403 GB, free: 7.324 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005339/0.5592, allocations: 482.2 kB / 1.404 GB, free: 6.828 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=37): time 1.753e-06/0.5592, allocations: 0 / 1.404 GB, free: 6.828 MB / 0.9011 GB Notification: Performance of matching and sorting (n=37): time 0.001441/0.5607, allocations: 1.104 MB / 1.405 GB, free: 5.719 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.5608, allocations: 140.5 kB / 1.405 GB, free: 5.551 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.561, allocations: 224 kB / 1.405 GB, free: 5.324 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.5611, allocations: 41.69 kB / 1.405 GB, free: 5.277 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.209e-05/0.5612, allocations: 121.1 kB / 1.405 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.505e-05/0.5613, allocations: 78.98 kB / 1.405 GB, free: 5.074 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/0.5613, allocations: 12 kB / 1.405 GB, free: 5.062 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5614, allocations: 346.8 kB / 1.406 GB, free: 4.715 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003812/0.5618, allocations: 328.7 kB / 1.406 GB, free: 4.395 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004387/0.5623, allocations: 422.5 kB / 1.406 GB, free: 3.949 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004643/0.5628, allocations: 362.6 kB / 1.407 GB, free: 3.598 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.5628, allocations: 4 kB / 1.407 GB, free: 3.594 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00103/0.5638, allocations: 0.8255 MB / 1.407 GB, free: 2.762 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.5638, allocations: 8 kB / 1.407 GB, free: 2.754 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.5639, allocations: 0 / 1.407 GB, free: 2.754 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.5639, allocations: 8 kB / 1.407 GB, free: 2.746 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.5641, allocations: 47.89 kB / 1.407 GB, free: 2.699 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.5641, allocations: 8 kB / 1.407 GB, free: 2.691 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.5644, allocations: 12 kB / 1.407 GB, free: 2.68 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002528/0.5647, allocations: 211.9 kB / 1.408 GB, free: 2.473 MB / 0.9011 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.0002303/0.5649, allocations: 190 kB / 1.408 GB, free: 2.277 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.565, allocations: 39.61 kB / 1.408 GB, free: 2.238 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.913e-05/0.5651, allocations: 38.12 kB / 1.408 GB, free: 2.195 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.5651, allocations: 4 kB / 1.408 GB, free: 2.191 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.5651, allocations: 3.984 kB / 1.408 GB, free: 2.188 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5651, allocations: 4 kB / 1.408 GB, free: 2.184 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.5672, allocations: 1.711 MB / 1.41 GB, free: 424 kB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.5672, allocations: 0 / 1.41 GB, free: 424 kB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.702e-05/0.5673, allocations: 23.91 kB / 1.41 GB, free: 400 kB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.5673, allocations: 0 / 1.41 GB, free: 400 kB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.5673, allocations: 19.98 kB / 1.41 GB, free: 380 kB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.5673, allocations: 7.984 kB / 1.41 GB, free: 372 kB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5674, allocations: 0 / 1.41 GB, free: 372 kB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.5686, allocations: 1.147 MB / 1.411 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.486e-05/0.5687, allocations: 104.7 kB / 1.411 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.5688, allocations: 15.94 kB / 1.411 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.569, allocations: 7.984 kB / 1.411 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.5691, allocations: 51.92 kB / 1.411 GB, free: 14.98 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/0.5694, allocations: 227.6 kB / 1.411 GB, free: 14.76 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001796/0.5696, allocations: 168.5 kB / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.71e-07/0.5696, allocations: 0 / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005265/0.5701, allocations: 67.98 kB / 1.411 GB, free: 14.53 MB / 0.9167 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.0002545/0.5704, allocations: 143.9 kB / 1.412 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00104/0.5714, allocations: 0.7337 MB / 1.412 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5714, allocations: 0 / 1.412 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005049/0.5719, allocations: 399.8 kB / 1.413 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.5735, allocations: 400.8 kB / 1.413 GB, free: 12.88 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.5749, allocations: 1.03 MB / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.5753, allocations: 0.7608 MB / 1.415 GB, free: 11.03 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004064/0.5757, allocations: 110.9 kB / 1.415 GB, free: 10.92 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.5758, allocations: 67.38 kB / 1.415 GB, free: 10.85 MB / 0.9167 GB Notification: Performance of SimCode: time 7.72e-07/0.5758, allocations: 0 / 1.415 GB, free: 10.85 MB / 0.9167 GB Notification: Performance of Templates: time 0.01816/0.594, allocations: 8.341 MB / 1.423 GB, free: 2.594 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.csv","../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches