Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Sources.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.Sources.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.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.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.Sources.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.438/1.438, allocations: 249.5 MB / 257 MB, free: 6.984 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.001028/0.001028, allocations: 175.8 kB / 316.3 MB, free: 3.23 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.551/1.551, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008333/0.0008332, allocations: 82.41 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.874e-05/1.875e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2383, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7699/1.008, allocations: 132.5 MB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/1.009, allocations: 73.33 kB / 1.015 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0455/1.054, allocations: 18.72 MB / 1.033 GB, free: 6.258 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.766e-06/1.054, allocations: 1.031 kB / 1.033 GB, free: 6.258 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.571e-05/1.054, allocations: 11.94 kB / 1.033 GB, free: 6.246 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.0008975/1.055, allocations: 0.5995 MB / 1.034 GB, free: 5.594 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/1.055, allocations: 15.97 kB / 1.034 GB, free: 5.578 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/1.055, allocations: 27.62 kB / 1.034 GB, free: 5.551 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/1.056, allocations: 248 kB / 1.034 GB, free: 5.281 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/1.056, allocations: 7.984 kB / 1.034 GB, free: 5.273 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.606e-05/1.056, allocations: 15.31 kB / 1.034 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003739/1.056, allocations: 307.5 kB / 1.034 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005199/1.057, allocations: 437.1 kB / 1.035 GB, free: 4.641 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/1.057, allocations: 3.984 kB / 1.035 GB, free: 4.637 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/1.057, allocations: 7.938 kB / 1.035 GB, free: 4.629 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/1.057, allocations: 8 kB / 1.035 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005851/1.057, allocations: 0.5203 MB / 1.035 GB, free: 4.121 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/1.058, allocations: 0.9933 MB / 1.036 GB, free: 3.254 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007074/1.059, allocations: 0.6418 MB / 1.037 GB, free: 2.711 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/1.059, allocations: 7.984 kB / 1.037 GB, free: 2.703 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005335/1.06, allocations: 469.2 kB / 1.037 GB, free: 2.297 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 3.357e-06/1.06, allocations: 7.938 kB / 1.037 GB, free: 2.289 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.0009555/1.061, allocations: 0.757 MB / 1.038 GB, free: 1.645 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.942e-05/1.061, allocations: 139.8 kB / 1.038 GB, free: 1.48 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/1.061, allocations: 218.2 kB / 1.038 GB, free: 1.293 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/1.061, allocations: 29.7 kB / 1.038 GB, free: 1.258 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/1.061, allocations: 127.4 kB / 1.038 GB, free: 1.156 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.505e-05/1.061, allocations: 72.77 kB / 1.038 GB, free: 1.098 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.61e-05/1.061, allocations: 4 kB / 1.038 GB, free: 1.094 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001424/1.061, allocations: 337.6 kB / 1.039 GB, free: 0.7656 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/1.062, allocations: 323.5 kB / 1.039 GB, free: 0.5078 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/1.062, allocations: 401.2 kB / 1.039 GB, free: 152 kB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/1.062, allocations: 351 kB / 1.04 GB, free: 15.87 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.062, allocations: 3.938 kB / 1.04 GB, free: 15.86 MB / 0.6667 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009385/1.063, allocations: 0.7886 MB / 1.041 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/1.063, allocations: 8 kB / 1.041 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/1.063, allocations: 4 kB / 1.041 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/1.063, allocations: 4.281 kB / 1.041 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/1.064, allocations: 42.89 kB / 1.041 GB, free: 15.14 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/1.064, allocations: 7.938 kB / 1.041 GB, free: 15.13 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/1.064, allocations: 15.78 kB / 1.041 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/1.064, allocations: 221.7 kB / 1.041 GB, free: 14.91 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.0001503/1.064, allocations: 137.4 kB / 1.041 GB, free: 14.77 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/1.064, allocations: 27.7 kB / 1.041 GB, free: 14.74 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.052e-05/1.064, allocations: 33.34 kB / 1.041 GB, free: 14.73 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/1.064, allocations: 8 kB / 1.041 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/1.064, allocations: 3.984 kB / 1.041 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/1.064, allocations: 0 / 1.041 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/1.066, allocations: 1.639 MB / 1.043 GB, free: 13.23 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/1.066, allocations: 4 kB / 1.043 GB, free: 13.23 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.562e-05/1.066, allocations: 19.17 kB / 1.043 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/1.066, allocations: 4 kB / 1.043 GB, free: 13.21 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/1.066, allocations: 18.84 kB / 1.043 GB, free: 13.2 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/1.066, allocations: 8 kB / 1.043 GB, free: 13.19 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.066, allocations: 3.938 kB / 1.043 GB, free: 13.18 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009903/1.067, allocations: 1.122 MB / 1.044 GB, free: 12.15 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/1.067, allocations: 108.8 kB / 1.044 GB, free: 12.03 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.787e-05/1.067, allocations: 7.188 kB / 1.044 GB, free: 12.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/1.068, allocations: 3.953 kB / 1.044 GB, free: 12.02 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.238e-05/1.068, allocations: 50.5 kB / 1.044 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002501/1.068, allocations: 227.3 kB / 1.044 GB, free: 11.77 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000144/1.068, allocations: 158 kB / 1.044 GB, free: 11.63 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.3e-07/1.068, allocations: 4 kB / 1.044 GB, free: 11.63 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004362/1.069, allocations: 48 kB / 1.044 GB, free: 11.58 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.0001988/1.069, allocations: 137.5 kB / 1.045 GB, free: 11.45 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0008267/1.07, allocations: 0.7169 MB / 1.045 GB, free: 10.85 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.07, allocations: 0 / 1.045 GB, free: 10.85 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004295/1.07, allocations: 391.8 kB / 1.046 GB, free: 10.53 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/1.072, allocations: 310.4 kB / 1.046 GB, free: 10.26 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/1.073, allocations: 0.846 MB / 1.047 GB, free: 9.488 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/1.073, allocations: 0.7641 MB / 1.047 GB, free: 8.703 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002526/1.073, allocations: 95.25 kB / 1.048 GB, free: 8.613 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/1.074, allocations: 68.81 kB / 1.048 GB, free: 8.555 MB / 0.6667 GB Notification: Performance of SimCode: time 2.6e-07/1.074, allocations: 0 / 1.048 GB, free: 8.555 MB / 0.6667 GB Notification: Performance of Templates: time 0.01139/1.085, allocations: 7.501 MB / 1.055 GB, free: 1.152 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Sources_Examples_DayType.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Sources.Examples.DayType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches