Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.273/2.273, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001266/0.001266, allocations: 175.5 kB / 0.4902 GB, free: 2.254 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.59/1.59, allocations: 223.2 MB / 0.7992 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009831/0.000983, allocations: 102.4 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 10.19 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2974, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1938/0.4913, allocations: 154 MB / 1.38 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003655/0.4917, allocations: 83.94 kB / 1.38 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.06634/0.5581, allocations: 23.78 MB / 1.403 GB, free: 7.609 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5581, allocations: 0 / 1.403 GB, free: 7.609 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 9.151e-05/0.5582, allocations: 16 kB / 1.403 GB, free: 7.594 MB / 0.9011 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.002136/0.5604, allocations: 0.9569 MB / 1.404 GB, free: 6.582 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.5604, allocations: 16.52 kB / 1.404 GB, free: 6.566 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.5607, allocations: 75.02 kB / 1.404 GB, free: 6.492 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.5624, allocations: 0.6943 MB / 1.405 GB, free: 5.758 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.5625, allocations: 12 kB / 1.405 GB, free: 5.746 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.57e-05/0.5625, allocations: 19.92 kB / 1.405 GB, free: 5.727 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004208/0.5629, allocations: 208.4 kB / 1.405 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.563, allocations: 0 / 1.405 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.563, allocations: 8 kB / 1.405 GB, free: 5.496 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.563, allocations: 0 / 1.405 GB, free: 5.496 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.5633, allocations: 119.8 kB / 1.405 GB, free: 5.379 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.565, allocations: 1.102 MB / 1.406 GB, free: 4.211 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005821/0.5656, allocations: 289.4 kB / 1.406 GB, free: 3.883 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.5657, allocations: 19.86 kB / 1.406 GB, free: 3.863 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/0.5661, allocations: 244.6 kB / 1.407 GB, free: 3.598 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=25): time 2.485e-06/0.5661, allocations: 0 / 1.407 GB, free: 3.598 MB / 0.9011 GB Notification: Performance of matching and sorting (n=25): time 0.00108/0.5672, allocations: 440.5 kB / 1.407 GB, free: 3.16 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.5673, allocations: 158.2 kB / 1.407 GB, free: 2.969 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.5687, allocations: 0.957 MB / 1.408 GB, free: 2 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.5687, allocations: 37.69 kB / 1.408 GB, free: 1.957 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.569, allocations: 284.9 kB / 1.408 GB, free: 1.676 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.5691, allocations: 79.08 kB / 1.409 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/0.5691, allocations: 12 kB / 1.409 GB, free: 1.586 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.5693, allocations: 330 kB / 1.409 GB, free: 1.258 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004746/0.5697, allocations: 261.1 kB / 1.409 GB, free: 1.004 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004943/0.5702, allocations: 347 kB / 1.409 GB, free: 0.6328 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004834/0.5707, allocations: 283.8 kB / 1.41 GB, free: 368 kB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.5707, allocations: 0 / 1.41 GB, free: 368 kB / 0.9011 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001357/0.5721, allocations: 0.7644 MB / 1.41 GB, free: 15.59 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.5722, allocations: 13.83 kB / 1.41 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.5722, allocations: 0 / 1.41 GB, free: 15.58 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.5722, allocations: 8 kB / 1.41 GB, free: 15.57 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004322/0.5726, allocations: 115.8 kB / 1.411 GB, free: 15.46 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.5727, allocations: 7.984 kB / 1.411 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.573, allocations: 47.83 kB / 1.411 GB, free: 15.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.519e-05/0.5731, allocations: 39.98 kB / 1.411 GB, free: 15.36 MB / 0.9167 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.0003837/0.5735, allocations: 272.1 kB / 1.411 GB, free: 15.09 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.5737, allocations: 79.05 kB / 1.411 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008067/0.5745, allocations: 407.2 kB / 1.411 GB, free: 14.6 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.5745, allocations: 7.938 kB / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5745, allocations: 4 kB / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.5745, allocations: 3.938 kB / 1.411 GB, free: 14.59 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.5751, allocations: 493.1 kB / 1.412 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5751, allocations: 0 / 1.412 GB, free: 14.05 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.531e-05/0.5752, allocations: 28 kB / 1.412 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.5752, allocations: 0 / 1.412 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.5753, allocations: 11.98 kB / 1.412 GB, free: 14.02 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.5753, allocations: 3.953 kB / 1.412 GB, free: 14.01 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.5753, allocations: 11.94 kB / 1.412 GB, free: 14 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007396/0.576, allocations: 475.6 kB / 1.412 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.5763, allocations: 168.1 kB / 1.413 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.886e-05/0.5764, allocations: 19.98 kB / 1.413 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.5766, allocations: 15.98 kB / 1.413 GB, free: 13.26 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.251e-05/0.5767, allocations: 28.22 kB / 1.413 GB, free: 13.23 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.5767, allocations: 23.92 kB / 1.413 GB, free: 13.21 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0008367/0.5775, allocations: 0.6161 MB / 1.413 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5776, allocations: 0 / 1.413 GB, free: 12.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005356/0.5781, allocations: 139.9 kB / 1.413 GB, free: 12.46 MB / 0.9167 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.001379/0.5795, allocations: 0.5018 MB / 1.414 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0009298/0.5804, allocations: 429.9 kB / 1.414 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.5804, allocations: 0 / 1.414 GB, free: 11.72 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.5807, allocations: 124.1 kB / 1.414 GB, free: 11.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.5818, allocations: 193.9 kB / 1.415 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.584, allocations: 1.241 MB / 1.416 GB, free: 10.13 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.5845, allocations: 0.956 MB / 1.417 GB, free: 9.145 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003644/0.5849, allocations: 121 kB / 1.417 GB, free: 9.027 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.5851, allocations: 59.42 kB / 1.417 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of SimCode: time 1.213e-06/0.5851, allocations: 0 / 1.417 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of Templates: time 0.01433/0.5994, allocations: 7.67 MB / 1.424 GB, free: 1.363 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches