Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 387.4 MB / 394.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001035, allocations: 183.9 kB / 487.4 MB, free: 5.027 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.776/1.776, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 98.25 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.249e-05/2.251e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2569, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8418/1.099, allocations: 148.6 MB / 1.351 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001857/1.099, allocations: 77.91 kB / 1.351 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05923/1.158, allocations: 21.25 MB / 1.372 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.162e-06/1.158, allocations: 0 / 1.372 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.613e-05/1.158, allocations: 3.562 kB / 1.372 GB, free: 32.87 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006609/1.159, allocations: 494.5 kB / 1.372 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/1.159, allocations: 11.69 kB / 1.372 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/1.159, allocations: 30.88 kB / 1.372 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007392/1.16, allocations: 374 kB / 1.373 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/1.16, allocations: 3.625 kB / 1.373 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/1.16, allocations: 26.3 kB / 1.373 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002469/1.16, allocations: 106.9 kB / 1.373 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/1.161, allocations: 182.3 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/1.161, allocations: 0 / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/1.161, allocations: 0 / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/1.161, allocations: 3.719 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/1.161, allocations: 364.9 kB / 1.373 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005256/1.162, allocations: 308.9 kB / 1.374 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/1.162, allocations: 125.8 kB / 1.374 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/1.162, allocations: 3.938 kB / 1.374 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003164/1.162, allocations: 277.9 kB / 1.374 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/1.162, allocations: 4 kB / 1.374 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.000606/1.163, allocations: 400.8 kB / 1.375 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/1.163, allocations: 106.7 kB / 1.375 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/1.163, allocations: 346.3 kB / 1.375 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/1.163, allocations: 33.56 kB / 1.375 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/1.164, allocations: 158.8 kB / 1.375 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/1.164, allocations: 34.45 kB / 1.375 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/1.164, allocations: 0 / 1.375 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001173/1.164, allocations: 356.5 kB / 1.376 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.307e-05/1.164, allocations: 79.75 kB / 1.376 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/1.164, allocations: 461.3 kB / 1.376 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/1.165, allocations: 156.5 kB / 1.376 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.165, allocations: 0 / 1.376 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005717/1.165, allocations: 331.9 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.165, allocations: 7.719 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/1.165, allocations: 3.844 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/1.165, allocations: 3.844 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/1.165, allocations: 35.16 kB / 1.377 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/1.165, allocations: 7.906 kB / 1.377 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/1.166, allocations: 43.23 kB / 1.377 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/1.166, allocations: 23.11 kB / 1.377 GB, free: 30.21 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.tabOneRow.y[1],tabOneRow.y[1],$PRE.tabOneRow.idx,tabOneRow.idx,$whenCondition10,$PRE.intTimTab1.y[1],intTimTab1.y[1],$PRE.intTimTab1.y[2],intTimTab1.y[2],$PRE.intTimTab1.idx,intTimTab1.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$PRE.intTimTab.y[1],intTimTab.y[1],$PRE.intTimTab.y[2],intTimTab.y[2],$PRE.intTimTab.idx,intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001226/1.166, allocations: 126.6 kB / 1.377 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.161e-05/1.166, allocations: 27.25 kB / 1.377 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/1.166, allocations: 35.5 kB / 1.377 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/1.166, allocations: 0 / 1.377 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.166, allocations: 7.828 kB / 1.377 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.166, allocations: 0 / 1.377 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/1.166, allocations: 264.8 kB / 1.377 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.166, allocations: 0 / 1.377 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.669e-05/1.166, allocations: 11.81 kB / 1.377 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/1.166, allocations: 3.969 kB / 1.377 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/1.166, allocations: 7.094 kB / 1.377 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/1.167, allocations: 7.875 kB / 1.377 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.167, allocations: 0 / 1.377 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004456/1.167, allocations: 454.8 kB / 1.378 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.436e-05/1.167, allocations: 115.8 kB / 1.378 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/1.167, allocations: 7.797 kB / 1.378 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/1.167, allocations: 0 / 1.378 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/1.167, allocations: 15.11 kB / 1.378 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.318e-05/1.167, allocations: 19.2 kB / 1.378 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000223/1.167, allocations: 278.4 kB / 1.378 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2e-07/1.167, allocations: 0 / 1.378 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003895/1.168, allocations: 73.27 kB / 1.378 GB, free: 29.41 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition10,tabOneRow.y[1],tabOneRow.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab1.y[1],intTimTab1.y[2],intTimTab1.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intTimTab.y[1],intTimTab.y[2],intTimTab.idx) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * 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.0002356/1.168, allocations: 157.3 kB / 1.378 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000303/1.168, allocations: 243 kB / 1.378 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.168, allocations: 0 / 1.378 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/1.169, allocations: 137.5 kB / 1.379 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/1.169, allocations: 23.94 kB / 1.379 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006249/1.169, allocations: 442.2 kB / 1.379 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/1.17, allocations: 0.774 MB / 1.38 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001474/1.17, allocations: 48.72 kB / 1.38 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/1.17, allocations: 26.22 kB / 1.38 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of SimCode: time 3.1e-07/1.17, allocations: 3.906 kB / 1.38 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of Templates: time 0.006816/1.177, allocations: 4.193 MB / 1.384 GB, free: 26.23 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches