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.433/1.433, allocations: 249.3 MB / 261.8 MB, free: 5.836 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001072, allocations: 185.7 kB / 321.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.0008319/0.0008319, allocations: 92.41 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.609e-05, allocations: 4 kB / 0.788 GB, free: 97.13 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2139, allocations: 106.3 MB / 0.8918 GB, free: 6.703 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7559/0.9698, allocations: 131.5 MB / 1.02 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/0.9702, allocations: 76.89 kB / 1.02 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05492/1.025, allocations: 22.24 MB / 1.042 GB, free: 0.8398 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.332e-06/1.025, allocations: 7.938 kB / 1.042 GB, free: 0.832 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.381e-05/1.025, allocations: 4 kB / 1.042 GB, free: 0.8281 MB / 0.6511 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.0008228/1.026, allocations: 0.6095 MB / 1.043 GB, free: 168 kB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/1.026, allocations: 12.02 kB / 1.043 GB, free: 156 kB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.782e-05/1.026, allocations: 35.61 kB / 1.043 GB, free: 120 kB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/1.026, allocations: 244.5 kB / 1.043 GB, free: 15.85 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/1.027, allocations: 15.47 kB / 1.043 GB, free: 15.84 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/1.027, allocations: 19.25 kB / 1.043 GB, free: 15.83 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/1.027, allocations: 449.8 kB / 1.043 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/1.027, allocations: 0 / 1.043 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/1.027, allocations: 15.12 kB / 1.043 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/1.027, allocations: 4 kB / 1.043 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003704/1.028, allocations: 321.3 kB / 1.044 GB, free: 15.17 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006383/1.028, allocations: 0.5578 MB / 1.044 GB, free: 14.63 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/1.029, allocations: 1.019 MB / 1.045 GB, free: 13.75 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007943/1.03, allocations: 0.6526 MB / 1.046 GB, free: 13.2 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.694e-05/1.03, allocations: 11.92 kB / 1.046 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000609/1.031, allocations: 477.6 kB / 1.046 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=37): time 2.384e-06/1.031, allocations: 4 kB / 1.046 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of matching and sorting (n=37): time 0.001119/1.032, allocations: 0.7816 MB / 1.047 GB, free: 12.1 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/1.032, allocations: 139.7 kB / 1.047 GB, free: 11.94 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/1.032, allocations: 222.8 kB / 1.047 GB, free: 11.75 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/1.033, allocations: 39.38 kB / 1.048 GB, free: 11.71 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/1.033, allocations: 133 kB / 1.048 GB, free: 11.6 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/1.033, allocations: 72.38 kB / 1.048 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/1.033, allocations: 10.94 kB / 1.048 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001606/1.033, allocations: 342 kB / 1.048 GB, free: 11.21 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/1.033, allocations: 329.7 kB / 1.048 GB, free: 10.95 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000432/1.034, allocations: 427.3 kB / 1.049 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/1.034, allocations: 353 kB / 1.049 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/1.034, allocations: 0 / 1.049 GB, free: 10.27 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009678/1.035, allocations: 0.8206 MB / 1.05 GB, free: 9.582 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/1.035, allocations: 8 kB / 1.05 GB, free: 9.574 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.035, allocations: 3.938 kB / 1.05 GB, free: 9.57 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/1.035, allocations: 8 kB / 1.05 GB, free: 9.562 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/1.036, allocations: 43.7 kB / 1.05 GB, free: 9.523 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/1.036, allocations: 8 kB / 1.05 GB, free: 9.516 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/1.036, allocations: 18.88 kB / 1.05 GB, free: 9.504 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002676/1.036, allocations: 207.2 kB / 1.05 GB, free: 9.305 MB / 0.6667 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 () * 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.00018/1.036, allocations: 162.8 kB / 1.05 GB, free: 9.152 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/1.036, allocations: 27.62 kB / 1.05 GB, free: 9.125 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.583e-05/1.036, allocations: 38.89 kB / 1.05 GB, free: 9.105 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/1.036, allocations: 7.938 kB / 1.05 GB, free: 9.098 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.036, allocations: 4 kB / 1.05 GB, free: 9.094 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/1.036, allocations: 3.984 kB / 1.05 GB, free: 9.09 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/1.038, allocations: 1.695 MB / 1.052 GB, free: 7.551 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/1.038, allocations: 0 / 1.052 GB, free: 7.551 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.735e-05/1.038, allocations: 19.36 kB / 1.052 GB, free: 7.535 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/1.038, allocations: 4 kB / 1.052 GB, free: 7.531 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.627e-05/1.039, allocations: 31.03 kB / 1.052 GB, free: 7.508 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/1.039, allocations: 4 kB / 1.052 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.039, allocations: 0 / 1.052 GB, free: 7.504 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/1.04, allocations: 1.145 MB / 1.053 GB, free: 6.453 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/1.04, allocations: 108.6 kB / 1.053 GB, free: 6.328 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/1.04, allocations: 10.88 kB / 1.053 GB, free: 6.324 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/1.04, allocations: 7.312 kB / 1.053 GB, free: 6.32 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/1.04, allocations: 50.17 kB / 1.053 GB, free: 6.281 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002715/1.041, allocations: 222 kB / 1.054 GB, free: 6.07 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002126/1.041, allocations: 170.1 kB / 1.054 GB, free: 5.922 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/1.041, allocations: 0 / 1.054 GB, free: 5.922 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005264/1.041, allocations: 66.23 kB / 1.054 GB, free: 5.867 MB / 0.6667 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) * 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.0002866/1.042, allocations: 135.8 kB / 1.054 GB, free: 5.734 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009758/1.043, allocations: 0.7364 MB / 1.055 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.043, allocations: 256 / 1.055 GB, free: 5.121 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005305/1.043, allocations: 409 kB / 1.055 GB, free: 4.789 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/1.045, allocations: 371.3 kB / 1.055 GB, free: 4.465 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/1.046, allocations: 0.8568 MB / 1.056 GB, free: 3.703 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/1.046, allocations: 0.7643 MB / 1.057 GB, free: 2.918 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003049/1.047, allocations: 98.91 kB / 1.057 GB, free: 2.82 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/1.047, allocations: 68.75 kB / 1.057 GB, free: 2.762 MB / 0.6667 GB Notification: Performance of SimCode: time 4.71e-07/1.047, allocations: 0 / 1.057 GB, free: 2.762 MB / 0.6667 GB Notification: Performance of Templates: time 0.0129/1.06, allocations: 8.05 MB / 1.065 GB, free: 10.8 MB / 0.6823 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