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.296/2.296, allocations: 390.3 MB / 402.8 MB, free: 6.734 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.00103/0.00103, allocations: 180.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.001014/0.001014, allocations: 99.73 kB / 0.9317 GB, free: 5.738 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.02e-05/5.034e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3421, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.151/1.493, allocations: 154 MB / 1.369 GB, free: 140 kB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/1.493, allocations: 78.77 kB / 1.369 GB, free: 100 kB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06907/1.562, allocations: 23.74 MB / 1.392 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.004e-06/1.563, allocations: 0 / 1.392 GB, free: 11.97 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0001314/1.563, allocations: 24.16 kB / 1.392 GB, free: 11.95 MB / 0.8542 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.001952/1.565, allocations: 0.7645 MB / 1.393 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/1.565, allocations: 8.031 kB / 1.393 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004435/1.565, allocations: 82.39 kB / 1.393 GB, free: 11.08 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/1.567, allocations: 0.6938 MB / 1.394 GB, free: 10.45 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/1.567, allocations: 12.94 kB / 1.394 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/1.567, allocations: 11.56 kB / 1.394 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004257/1.568, allocations: 195.4 kB / 1.394 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/1.568, allocations: 3.938 kB / 1.394 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/1.568, allocations: 11.67 kB / 1.394 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/1.568, allocations: 0 / 1.394 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/1.568, allocations: 103.7 kB / 1.394 GB, free: 10.18 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/1.57, allocations: 1.111 MB / 1.395 GB, free: 9.18 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/1.571, allocations: 266.4 kB / 1.396 GB, free: 8.934 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/1.571, allocations: 111.9 kB / 1.396 GB, free: 8.836 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/1.571, allocations: 0 / 1.396 GB, free: 8.836 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/1.572, allocations: 225.7 kB / 1.396 GB, free: 8.629 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=25): time 2.645e-06/1.572, allocations: 3.938 kB / 1.396 GB, free: 8.625 MB / 0.8542 GB Notification: Performance of matching and sorting (n=25): time 0.0008847/1.572, allocations: 339.7 kB / 1.396 GB, free: 8.348 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/1.573, allocations: 169.7 kB / 1.396 GB, free: 8.148 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/1.574, allocations: 0.9474 MB / 1.397 GB, free: 7.418 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/1.574, allocations: 36.95 kB / 1.397 GB, free: 7.379 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/1.575, allocations: 299.2 kB / 1.398 GB, free: 7.215 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/1.575, allocations: 77.2 kB / 1.398 GB, free: 7.152 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/1.575, allocations: 11.5 kB / 1.398 GB, free: 7.148 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001851/1.575, allocations: 339.1 kB / 1.398 GB, free: 6.824 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/1.575, allocations: 238.9 kB / 1.398 GB, free: 6.668 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/1.576, allocations: 341.2 kB / 1.399 GB, free: 6.398 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/1.576, allocations: 271.6 kB / 1.399 GB, free: 6.219 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/1.576, allocations: 0 / 1.399 GB, free: 6.219 MB / 0.8542 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001366/1.578, allocations: 0.7445 MB / 1.4 GB, free: 5.648 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/1.578, allocations: 7.953 kB / 1.4 GB, free: 5.641 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/1.578, allocations: 4 kB / 1.4 GB, free: 5.637 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.653e-05/1.578, allocations: 7.984 kB / 1.4 GB, free: 5.629 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/1.578, allocations: 111.5 kB / 1.4 GB, free: 5.523 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.162e-05/1.578, allocations: 11.98 kB / 1.4 GB, free: 5.512 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004365/1.579, allocations: 42.11 kB / 1.4 GB, free: 5.48 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/1.579, allocations: 35.52 kB / 1.4 GB, free: 5.453 MB / 0.8542 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.0001988/1.579, allocations: 150 kB / 1.4 GB, free: 5.312 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/1.579, allocations: 75.05 kB / 1.4 GB, free: 5.238 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000721/1.58, allocations: 392 kB / 1.4 GB, free: 4.941 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.944e-06/1.58, allocations: 4 kB / 1.4 GB, free: 4.938 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.58, allocations: 0 / 1.4 GB, free: 4.938 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/1.58, allocations: 7.984 kB / 1.4 GB, free: 4.93 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/1.581, allocations: 489 kB / 1.401 GB, free: 4.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/1.581, allocations: 4 kB / 1.401 GB, free: 4.496 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.597e-05/1.581, allocations: 23.98 kB / 1.401 GB, free: 4.473 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-06/1.581, allocations: 4 kB / 1.401 GB, free: 4.469 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/1.581, allocations: 13.67 kB / 1.401 GB, free: 4.461 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.057e-06/1.581, allocations: 11.89 kB / 1.401 GB, free: 4.449 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.581, allocations: 0 / 1.401 GB, free: 4.449 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006674/1.582, allocations: 453.7 kB / 1.401 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/1.582, allocations: 170.3 kB / 1.402 GB, free: 3.848 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.761e-05/1.582, allocations: 14.98 kB / 1.402 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/1.582, allocations: 27.23 kB / 1.402 GB, free: 3.816 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.294e-05/1.582, allocations: 27.59 kB / 1.402 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/1.582, allocations: 19.19 kB / 1.402 GB, free: 3.777 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0008588/1.583, allocations: 0.6077 MB / 1.402 GB, free: 3.316 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.6e-07/1.583, allocations: 3.938 kB / 1.402 GB, free: 3.312 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006098/1.584, allocations: 140.4 kB / 1.402 GB, free: 3.191 MB / 0.8542 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.001287/1.585, allocations: 451.5 kB / 1.403 GB, free: 2.891 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007054/1.586, allocations: 410.5 kB / 1.403 GB, free: 2.602 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.586, allocations: 320 / 1.403 GB, free: 2.602 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/1.586, allocations: 121.9 kB / 1.403 GB, free: 2.516 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/1.587, allocations: 183.7 kB / 1.403 GB, free: 2.371 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/1.589, allocations: 0.9092 MB / 1.404 GB, free: 1.551 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/1.589, allocations: 0.9441 MB / 1.405 GB, free: 0.5977 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0004317/1.59, allocations: 117 kB / 1.405 GB, free: 496 kB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/1.59, allocations: 59.05 kB / 1.405 GB, free: 440 kB / 0.8542 GB Notification: Performance of SimCode: time 1.012e-06/1.59, allocations: 0 / 1.405 GB, free: 440 kB / 0.8542 GB Notification: Performance of Templates: time 0.01813/1.608, allocations: 7.692 MB / 1.413 GB, free: 8.824 MB / 0.8698 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