Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.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.Continuous.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 251.9 MB / 266.9 MB, free: 11 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.00103/0.00103, allocations: 181.5 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.643/1.643, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0008867/0.0008867, allocations: 90.31 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 11.81 kB / 0.7963 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2016, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.166/0.3676, allocations: 135.1 MB / 1.032 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.3679, allocations: 79.95 kB / 1.032 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0622/0.4301, allocations: 22.76 MB / 1.054 GB, free: 1.68 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.334e-06/0.4302, allocations: 4 kB / 1.054 GB, free: 1.676 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001007/0.4303, allocations: 15.94 kB / 1.054 GB, free: 1.66 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001996/0.4323, allocations: 0.916 MB / 1.055 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.4323, allocations: 8.031 kB / 1.055 GB, free: 0.6836 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.4326, allocations: 75.14 kB / 1.055 GB, free: 0.6094 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4481/0.8807, allocations: 0.6371 MB / 1.056 GB, free: 145.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.164e-05/0.8808, allocations: 11.2 kB / 1.056 GB, free: 145.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.8809, allocations: 13.44 kB / 1.056 GB, free: 145.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.8813, allocations: 211.2 kB / 1.056 GB, free: 145.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.8814, allocations: 3.281 kB / 1.056 GB, free: 145.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.8814, allocations: 6.312 kB / 1.056 GB, free: 145.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.8814, allocations: 3.062 kB / 1.056 GB, free: 145.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.8817, allocations: 109.5 kB / 1.056 GB, free: 145.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.8832, allocations: 1.085 MB / 1.057 GB, free: 144.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.8837, allocations: 293.2 kB / 1.058 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.8837, allocations: 2.969 kB / 1.058 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.8841, allocations: 234.9 kB / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=25): time 2.845e-06/0.8841, allocations: 0 / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=25): time 0.001014/0.8851, allocations: 446.2 kB / 1.058 GB, free: 144.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.8852, allocations: 157.2 kB / 1.058 GB, free: 144.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.8864, allocations: 0.9274 MB / 1.059 GB, free: 144.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.8864, allocations: 31.64 kB / 1.059 GB, free: 144.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.8866, allocations: 280.1 kB / 1.06 GB, free: 144.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.8867, allocations: 74.42 kB / 1.06 GB, free: 144.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.8868, allocations: 15.59 kB / 1.06 GB, free: 144.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.8869, allocations: 388.3 kB / 1.06 GB, free: 143.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003907/0.8873, allocations: 257.1 kB / 1.06 GB, free: 143.9 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.8877, allocations: 347.3 kB / 1.061 GB, free: 143.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000405/0.8881, allocations: 280.3 kB / 1.061 GB, free: 143.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8881, allocations: 0 / 1.061 GB, free: 143.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001169/0.8893, allocations: 0.757 MB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.8894, allocations: 5.938 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.8894, allocations: 4.625 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.8894, allocations: 5.938 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003995/0.8898, allocations: 114.8 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.8898, allocations: 6.656 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.8902, allocations: 47.67 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/0.8903, allocations: 39.12 kB / 1.062 GB, free: 143.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition3,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition2,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEvent,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0003215/0.8906, allocations: 276 kB / 1.062 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.335e-05/0.8907, allocations: 68.86 kB / 1.062 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007616/0.8915, allocations: 402.9 kB / 1.063 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.8915, allocations: 3.688 kB / 1.063 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.8915, allocations: 5.75 kB / 1.063 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.8915, allocations: 1.875 kB / 1.063 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005583/0.8921, allocations: 484.4 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.8921, allocations: 3.031 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.659e-05/0.8922, allocations: 29.5 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.8922, allocations: 6.594 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.8922, allocations: 11.88 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.8922, allocations: 3.531 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.8922, allocations: 2.906 kB / 1.063 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.8929, allocations: 460 kB / 1.064 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.8931, allocations: 177.2 kB / 1.064 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.471e-05/0.8932, allocations: 15.34 kB / 1.064 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.8934, allocations: 16.56 kB / 1.064 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.534e-05/0.8934, allocations: 27.44 kB / 1.064 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.8935, allocations: 15.17 kB / 1.064 GB, free: 143 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000715/0.8942, allocations: 0.5891 MB / 1.064 GB, free: 142.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8942, allocations: 0 / 1.064 GB, free: 142.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004588/0.8947, allocations: 134.5 kB / 1.065 GB, free: 142.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001071/0.8957, allocations: 0.4926 MB / 1.065 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008343/0.8966, allocations: 437.3 kB / 1.065 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.8966, allocations: 0 / 1.065 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002827/0.8969, allocations: 124.6 kB / 1.066 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009303/0.8978, allocations: 203.1 kB / 1.066 GB, free: 142.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.8997, allocations: 1.212 MB / 1.067 GB, free: 142.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.9003, allocations: 0.9361 MB / 1.068 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00039/0.9007, allocations: 113.1 kB / 1.068 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.9009, allocations: 56.61 kB / 1.068 GB, free: 141.5 MB / 0.698 GB Notification: Performance of SimCode: time 5.41e-07/0.9009, allocations: 0 / 1.068 GB, free: 141.5 MB / 0.698 GB Notification: Performance of Templates: time 0.01636/0.9173, allocations: 7.338 MB / 1.075 GB, free: 141 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches