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.447/1.447, allocations: 251.9 MB / 266.9 MB, free: 10.87 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.001249/0.001249, allocations: 185.3 kB / 326.5 MB, free: 2.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.931/1.931, allocations: 205.4 MB / 0.5775 GB, free: 20.17 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.0008718/0.0008718, allocations: 94.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004361, allocations: 12.14 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2659, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1893/0.4553, allocations: 132.3 MB / 1.029 GB, free: 11.47 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.4557, allocations: 71.95 kB / 1.029 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05002/0.5057, allocations: 18.88 MB / 1.048 GB, free: 8.488 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5058, allocations: 0 / 1.048 GB, free: 8.488 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.286e-05/0.5058, allocations: 8 kB / 1.048 GB, free: 8.48 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.001389/0.5072, allocations: 0.6315 MB / 1.048 GB, free: 7.773 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.5073, allocations: 8.031 kB / 1.048 GB, free: 7.766 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.5074, allocations: 27.72 kB / 1.048 GB, free: 7.738 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.508, allocations: 257.7 kB / 1.049 GB, free: 7.449 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.5081, allocations: 12.28 kB / 1.049 GB, free: 7.438 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.5081, allocations: 16 kB / 1.049 GB, free: 7.422 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008741/0.509, allocations: 454.8 kB / 1.049 GB, free: 6.961 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.5091, allocations: 4 kB / 1.049 GB, free: 6.957 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.789e-05/0.5091, allocations: 0 / 1.049 GB, free: 6.957 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.5091, allocations: 8 kB / 1.049 GB, free: 6.949 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005066/0.5096, allocations: 327.7 kB / 1.049 GB, free: 6.629 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.5105, allocations: 0.5586 MB / 1.05 GB, free: 6.012 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.512, allocations: 1.029 MB / 1.051 GB, free: 4.949 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.566e-05/0.512, allocations: 4.031 kB / 1.051 GB, free: 4.945 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006922/0.5127, allocations: 486.7 kB / 1.052 GB, free: 4.445 MB / 0.698 GB Notification: Performance of pre-optimization done (n=37): time 3.878e-06/0.5127, allocations: 0 / 1.052 GB, free: 4.445 MB / 0.698 GB Notification: Performance of matching and sorting (n=37): time 0.001621/0.5144, allocations: 1.106 MB / 1.053 GB, free: 3.332 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.578e-05/0.5145, allocations: 140.5 kB / 1.053 GB, free: 3.164 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.5148, allocations: 228 kB / 1.053 GB, free: 2.938 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.961e-05/0.5148, allocations: 37.7 kB / 1.053 GB, free: 2.895 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.646e-05/0.5149, allocations: 121.1 kB / 1.053 GB, free: 2.77 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.324e-05/0.515, allocations: 75.06 kB / 1.053 GB, free: 2.695 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.5151, allocations: 12 kB / 1.053 GB, free: 2.684 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.5152, allocations: 350.7 kB / 1.054 GB, free: 2.332 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.5156, allocations: 328.7 kB / 1.054 GB, free: 2.008 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.5161, allocations: 422.4 kB / 1.054 GB, free: 1.562 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004756/0.5165, allocations: 357.7 kB / 1.055 GB, free: 1.215 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.5166, allocations: 0 / 1.055 GB, free: 1.215 MB / 0.698 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001069/0.5176, allocations: 0.8329 MB / 1.055 GB, free: 384 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.5177, allocations: 8 kB / 1.055 GB, free: 376 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.5177, allocations: 4 kB / 1.055 GB, free: 372 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.5177, allocations: 4 kB / 1.055 GB, free: 368 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.5179, allocations: 47.84 kB / 1.055 GB, free: 320 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.5179, allocations: 4 kB / 1.055 GB, free: 316 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.5182, allocations: 19.89 kB / 1.055 GB, free: 296 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/0.5185, allocations: 207.6 kB / 1.056 GB, free: 88 kB / 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.5487/1.067, allocations: 188.5 kB / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.939e-05/1.067, allocations: 28.09 kB / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.944e-05/1.067, allocations: 42.44 kB / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/1.067, allocations: 6.531 kB / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/1.067, allocations: 0 / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.067, allocations: 3.234 kB / 1.056 GB, free: 153.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/1.069, allocations: 1.708 MB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.069, allocations: 3.469 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.706e-05/1.07, allocations: 24.22 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/1.07, allocations: 6.406 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/1.07, allocations: 24.77 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/1.07, allocations: 3.781 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.07, allocations: 0.75 kB / 1.058 GB, free: 152.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008828/1.07, allocations: 1.149 MB / 1.059 GB, free: 152.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.56e-05/1.071, allocations: 106.2 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/1.071, allocations: 9.031 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/1.071, allocations: 6 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/1.071, allocations: 52.23 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00023/1.071, allocations: 224.6 kB / 1.059 GB, free: 152.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001306/1.071, allocations: 178.7 kB / 1.059 GB, free: 152.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/1.071, allocations: 0 / 1.059 GB, free: 152.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005062/1.072, allocations: 70.48 kB / 1.059 GB, free: 152.3 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.0001454/1.072, allocations: 137.3 kB / 1.06 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007902/1.073, allocations: 0.7344 MB / 1.06 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.073, allocations: 1.312 kB / 1.06 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000443/1.073, allocations: 401.9 kB / 1.061 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/1.075, allocations: 309.3 kB / 1.061 GB, free: 152.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/1.076, allocations: 1.024 MB / 1.062 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/1.076, allocations: 0.761 MB / 1.063 GB, free: 151.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003075/1.077, allocations: 100.6 kB / 1.063 GB, free: 151.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/1.077, allocations: 67.81 kB / 1.063 GB, free: 151.2 MB / 0.698 GB Notification: Performance of SimCode: time 5.11e-07/1.077, allocations: 0 / 1.063 GB, free: 151.2 MB / 0.698 GB Notification: Performance of Templates: time 0.01682/1.094, allocations: 7.845 MB / 1.07 GB, free: 150.8 MB / 0.698 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