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.644/1.644, allocations: 249.3 MB / 261.9 MB, free: 5.949 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.001113/0.001113, allocations: 180.9 kB / 321.3 MB, free: 14.64 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.525/1.525, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0008378/0.0008376, allocations: 106.4 kB / 0.6764 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.461e-05/5.506e-05, allocations: 8 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2061, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7159/0.9221, allocations: 135.1 MB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.9223, allocations: 82.98 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.06023/0.9826, allocations: 22.71 MB / 1.046 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9826, allocations: 0 / 1.046 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 5.4e-05/0.9827, allocations: 12 kB / 1.046 GB, free: 12.4 MB / 0.6667 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.001071/0.9838, allocations: 0.7547 MB / 1.047 GB, free: 11.63 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.9838, allocations: 8.031 kB / 1.047 GB, free: 11.62 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.984, allocations: 75.05 kB / 1.047 GB, free: 11.55 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.9852, allocations: 0.6394 MB / 1.047 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.9853, allocations: 11.06 kB / 1.047 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.464e-05/0.9853, allocations: 8 kB / 1.047 GB, free: 10.95 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.9857, allocations: 211.1 kB / 1.048 GB, free: 10.77 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.9857, allocations: 0 / 1.048 GB, free: 10.77 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.9858, allocations: 3.188 kB / 1.048 GB, free: 10.77 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.9858, allocations: 4 kB / 1.048 GB, free: 10.76 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.986, allocations: 105.1 kB / 1.048 GB, free: 10.69 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.9874, allocations: 1.079 MB / 1.049 GB, free: 9.711 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.9878, allocations: 273.1 kB / 1.049 GB, free: 9.457 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.9879, allocations: 103.2 kB / 1.049 GB, free: 9.367 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.988, allocations: 7.938 kB / 1.049 GB, free: 9.359 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.9883, allocations: 233.9 kB / 1.049 GB, free: 9.145 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=25): time 2.995e-06/0.9883, allocations: 3.984 kB / 1.049 GB, free: 9.141 MB / 0.6667 GB Notification: Performance of matching and sorting (n=25): time 0.0005675/0.9889, allocations: 333.6 kB / 1.05 GB, free: 8.871 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.989, allocations: 161.1 kB / 1.05 GB, free: 8.68 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.9901, allocations: 0.9169 MB / 1.051 GB, free: 7.973 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.9902, allocations: 36.39 kB / 1.051 GB, free: 7.938 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.9904, allocations: 278.9 kB / 1.051 GB, free: 7.785 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 6.795e-05/0.9905, allocations: 78.64 kB / 1.051 GB, free: 7.723 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.9905, allocations: 14.31 kB / 1.051 GB, free: 7.719 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.9907, allocations: 384.2 kB / 1.052 GB, free: 7.363 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.991, allocations: 245.7 kB / 1.052 GB, free: 7.203 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.9914, allocations: 337.5 kB / 1.052 GB, free: 6.934 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.9918, allocations: 274.3 kB / 1.052 GB, free: 6.75 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.9918, allocations: 0 / 1.052 GB, free: 6.75 MB / 0.6667 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001014/0.9929, allocations: 0.7264 MB / 1.053 GB, free: 6.191 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.9929, allocations: 8 kB / 1.053 GB, free: 6.184 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.9929, allocations: 0 / 1.053 GB, free: 6.184 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.9929, allocations: 11.95 kB / 1.053 GB, free: 6.172 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.9933, allocations: 111 kB / 1.053 GB, free: 6.066 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.9934, allocations: 11.94 kB / 1.053 GB, free: 6.055 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.9937, allocations: 50.64 kB / 1.053 GB, free: 6.016 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.907e-05/0.9937, allocations: 34.8 kB / 1.053 GB, free: 5.988 MB / 0.6667 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 () * 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.0001478/0.9939, allocations: 151.5 kB / 1.053 GB, free: 5.848 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.846e-05/0.994, allocations: 67.16 kB / 1.053 GB, free: 5.781 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005736/0.9946, allocations: 381.1 kB / 1.054 GB, free: 5.492 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.9946, allocations: 8 kB / 1.054 GB, free: 5.484 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.9946, allocations: 11.94 kB / 1.054 GB, free: 5.473 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.9946, allocations: 0 / 1.054 GB, free: 5.473 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004443/0.9951, allocations: 480.2 kB / 1.054 GB, free: 5.051 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.9951, allocations: 0 / 1.054 GB, free: 5.051 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.264e-05/0.9952, allocations: 31.92 kB / 1.054 GB, free: 5.02 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.9952, allocations: 0 / 1.054 GB, free: 5.02 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.9952, allocations: 19.73 kB / 1.054 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.9952, allocations: 0 / 1.054 GB, free: 5.004 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.9952, allocations: 4 kB / 1.054 GB, free: 5 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005456/0.9958, allocations: 460.4 kB / 1.055 GB, free: 4.57 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.996, allocations: 166.6 kB / 1.055 GB, free: 4.398 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.174e-05/0.9961, allocations: 15.75 kB / 1.055 GB, free: 4.387 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.9963, allocations: 14.61 kB / 1.055 GB, free: 4.375 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.462e-05/0.9963, allocations: 23.66 kB / 1.055 GB, free: 4.355 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.9964, allocations: 15.23 kB / 1.055 GB, free: 4.344 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0006563/0.997, allocations: 0.5871 MB / 1.056 GB, free: 3.898 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.41e-07/0.997, allocations: 0 / 1.056 GB, free: 3.898 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.000436/0.9975, allocations: 138 kB / 1.056 GB, free: 3.777 MB / 0.6667 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) * 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.001037/0.9985, allocations: 442.3 kB / 1.056 GB, free: 3.445 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0005854/0.9991, allocations: 404.4 kB / 1.057 GB, free: 3.156 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.9991, allocations: 3.938 kB / 1.057 GB, free: 3.152 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.9993, allocations: 120.8 kB / 1.057 GB, free: 3.066 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/1, allocations: 192.2 kB / 1.057 GB, free: 2.914 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/1.002, allocations: 0.8783 MB / 1.058 GB, free: 2.121 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005399/1.002, allocations: 0.9385 MB / 1.059 GB, free: 1.176 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0002932/1.002, allocations: 116.8 kB / 1.059 GB, free: 1.062 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/1.003, allocations: 54.23 kB / 1.059 GB, free: 1.012 MB / 0.6667 GB Notification: Performance of SimCode: time 6.41e-07/1.003, allocations: 0 / 1.059 GB, free: 1.012 MB / 0.6667 GB Notification: Performance of Templates: time 0.01284/1.015, allocations: 7.369 MB / 1.066 GB, free: 9.707 MB / 0.6823 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