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.516/1.516, allocations: 249.5 MB / 257 MB, free: 6.828 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.000995/0.0009951, allocations: 180.8 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.3 MB / 0.5671 GB, free: 15.9 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.0008878/0.0008878, allocations: 99.86 kB / 0.6714 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.596e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2499, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8218/1.072, allocations: 131.8 MB / 1.014 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/1.072, allocations: 75.19 kB / 1.014 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.05431/1.126, allocations: 22.13 MB / 1.036 GB, free: 4.152 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.372e-06/1.126, allocations: 0 / 1.036 GB, free: 4.152 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.861e-05/1.126, allocations: 4 kB / 1.036 GB, free: 4.148 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.0009743/1.127, allocations: 0.6055 MB / 1.036 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/1.128, allocations: 12.03 kB / 1.036 GB, free: 3.473 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.014e-05/1.128, allocations: 27.62 kB / 1.036 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/1.128, allocations: 248.8 kB / 1.037 GB, free: 3.176 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/1.128, allocations: 15.17 kB / 1.037 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/1.128, allocations: 12 kB / 1.037 GB, free: 3.152 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004063/1.128, allocations: 305.6 kB / 1.037 GB, free: 2.906 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/1.129, allocations: 443.3 kB / 1.037 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/1.129, allocations: 0 / 1.037 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/1.129, allocations: 4 kB / 1.037 GB, free: 2.523 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/1.129, allocations: 0 / 1.037 GB, free: 2.523 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/1.13, allocations: 0.5192 MB / 1.038 GB, free: 2.023 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/1.131, allocations: 1.006 MB / 1.039 GB, free: 1.145 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007496/1.131, allocations: 0.645 MB / 1.039 GB, free: 0.5977 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/1.132, allocations: 11.38 kB / 1.039 GB, free: 0.5898 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005685/1.132, allocations: 464.3 kB / 1.04 GB, free: 188 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 1.303e-06/1.132, allocations: 0 / 1.04 GB, free: 188 kB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.001032/1.133, allocations: 0.7622 MB / 1.041 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.06e-05/1.133, allocations: 144.3 kB / 1.041 GB, free: 15.37 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/1.133, allocations: 213.8 kB / 1.041 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/1.134, allocations: 25.7 kB / 1.041 GB, free: 15.15 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 7.399e-05/1.134, allocations: 127.3 kB / 1.041 GB, free: 15.05 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 7.422e-05/1.134, allocations: 69.41 kB / 1.041 GB, free: 15 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.475e-05/1.134, allocations: 0 / 1.041 GB, free: 15 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001425/1.134, allocations: 340.5 kB / 1.041 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/1.134, allocations: 326.8 kB / 1.042 GB, free: 14.41 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/1.135, allocations: 401.7 kB / 1.042 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/1.135, allocations: 362.2 kB / 1.042 GB, free: 13.76 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/1.135, allocations: 3.938 kB / 1.042 GB, free: 13.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009296/1.136, allocations: 0.782 MB / 1.043 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/1.136, allocations: 8 kB / 1.043 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.136, allocations: 0 / 1.043 GB, free: 13.08 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/1.136, allocations: 12.12 kB / 1.043 GB, free: 13.07 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/1.136, allocations: 46.33 kB / 1.043 GB, free: 13.03 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/1.136, allocations: 16 kB / 1.043 GB, free: 13.01 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/1.136, allocations: 11.84 kB / 1.043 GB, free: 13 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002669/1.137, allocations: 215.1 kB / 1.044 GB, free: 12.79 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.0001446/1.137, allocations: 140.8 kB / 1.044 GB, free: 12.66 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/1.137, allocations: 27.7 kB / 1.044 GB, free: 12.63 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.353e-05/1.137, allocations: 28.09 kB / 1.044 GB, free: 12.62 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/1.137, allocations: 4 kB / 1.044 GB, free: 12.61 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.137, allocations: 8 kB / 1.044 GB, free: 12.61 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/1.137, allocations: 3.984 kB / 1.044 GB, free: 12.6 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/1.139, allocations: 1.639 MB / 1.045 GB, free: 11.12 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/1.139, allocations: 8 kB / 1.045 GB, free: 11.11 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/1.139, allocations: 18.98 kB / 1.045 GB, free: 11.1 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/1.139, allocations: 4 kB / 1.045 GB, free: 11.09 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.029e-05/1.139, allocations: 19.41 kB / 1.045 GB, free: 11.08 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/1.139, allocations: 0 / 1.045 GB, free: 11.08 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/1.139, allocations: 7.938 kB / 1.045 GB, free: 11.07 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/1.14, allocations: 1.121 MB / 1.047 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/1.14, allocations: 104.8 kB / 1.047 GB, free: 9.918 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.09e-05/1.14, allocations: 11.44 kB / 1.047 GB, free: 9.91 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/1.14, allocations: 7.953 kB / 1.047 GB, free: 9.902 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.717e-05/1.141, allocations: 46.12 kB / 1.047 GB, free: 9.867 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.141, allocations: 227.2 kB / 1.047 GB, free: 9.648 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000125/1.141, allocations: 160.1 kB / 1.047 GB, free: 9.516 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.3e-07/1.141, allocations: 0 / 1.047 GB, free: 9.516 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004606/1.141, allocations: 48 kB / 1.047 GB, free: 9.469 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.0001931/1.142, allocations: 134.3 kB / 1.047 GB, free: 9.336 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009371/1.143, allocations: 0.7156 MB / 1.048 GB, free: 8.738 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.143, allocations: 0 / 1.048 GB, free: 8.738 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004927/1.143, allocations: 391.7 kB / 1.048 GB, free: 8.422 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/1.145, allocations: 370.5 kB / 1.049 GB, free: 8.094 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/1.146, allocations: 0.85 MB / 1.049 GB, free: 7.32 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/1.147, allocations: 0.7597 MB / 1.05 GB, free: 6.539 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000333/1.147, allocations: 103.2 kB / 1.05 GB, free: 6.441 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/1.147, allocations: 73.94 kB / 1.05 GB, free: 6.379 MB / 0.6667 GB Notification: Performance of SimCode: time 6.51e-07/1.147, allocations: 0 / 1.05 GB, free: 6.379 MB / 0.6667 GB Notification: Performance of Templates: time 0.01188/1.159, allocations: 7.687 MB / 1.058 GB, free: 14.79 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