Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001662, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001878/0.001878, allocations: 199.4 kB / 16.79 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.619/2.619, allocations: 390.2 MB / 0.6649 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002547/0.002547, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6607/0.6633, allocations: 140.4 MB / 0.9496 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable): time 0.003474/0.6668, allocations: 2.501 MB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.6692, allocations: 1.574 MB / 0.9536 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.6694, allocations: 7.844 kB / 0.9536 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005978/0.67, allocations: 304 kB / 0.9539 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005225/0.6706, allocations: 303.1 kB / 0.9542 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.6715, allocations: 403.2 kB / 0.9546 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006894/0.6722, allocations: 0.6628 MB / 0.9552 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.6724, allocations: 83.8 kB / 0.9553 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003464/0.6728, allocations: 297.8 kB / 0.9556 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.6731, allocations: 304.3 kB / 0.9559 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.6731, allocations: 13.47 kB / 0.9559 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.6733, allocations: 78.86 kB / 0.956 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.6735, allocations: 175.4 kB / 0.9561 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.6737, allocations: 248.5 kB / 0.9564 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004467/0.6742, allocations: 0.5911 MB / 0.9569 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6742, allocations: 0 / 0.9569 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.72e-07/0.6742, allocations: 0 / 0.9569 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.874e-06/0.6742, allocations: 1.781 kB / 0.9569 GB, free: 3.859 MB / 0.7169 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.001409/0.6756, allocations: 1.005 MB / 0.9579 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.6757, allocations: 16.19 kB / 0.9579 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.6758, allocations: 73.53 kB / 0.958 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008072/0.6766, allocations: 0.6228 MB / 0.9586 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.6767, allocations: 9.594 kB / 0.9586 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.6767, allocations: 17.47 kB / 0.9586 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.6771, allocations: 198 kB / 0.9588 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.6771, allocations: 1.125 kB / 0.9588 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.6771, allocations: 14.14 kB / 0.9588 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.6771, allocations: 2.094 kB / 0.9588 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.6774, allocations: 97.69 kB / 0.9589 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.6785, allocations: 1.056 MB / 0.96 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.6791, allocations: 278 kB / 0.9602 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.6793, allocations: 106 kB / 0.9603 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.6794, allocations: 4.75 kB / 0.9603 GB, free: 1.016 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003818/0.6798, allocations: 228.2 kB / 0.9606 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=25): time 1.813e-06/0.6798, allocations: 0 / 0.9606 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=25): time 0.001232/0.681, allocations: 426.8 kB / 0.961 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/0.6811, allocations: 169.8 kB / 0.9611 GB, free: 428 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.6826, allocations: 1.031 MB / 0.9621 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.6827, allocations: 38.86 kB / 0.9622 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002931/0.683, allocations: 284.7 kB / 0.9624 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.6831, allocations: 76.67 kB / 0.9625 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/0.6834, allocations: 137.9 kB / 0.9626 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.6836, allocations: 335.2 kB / 0.963 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.684, allocations: 212.2 kB / 0.9632 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005037/0.6845, allocations: 306 kB / 0.9635 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007903/0.6853, allocations: 416.3 kB / 0.9639 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.6853, allocations: 5.781 kB / 0.9639 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001249/0.6866, allocations: 0.6703 MB / 0.9645 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.6866, allocations: 6.125 kB / 0.9645 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.6866, allocations: 2.219 kB / 0.9645 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.6867, allocations: 5.25 kB / 0.9645 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.6871, allocations: 120.3 kB / 0.9646 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.6871, allocations: 9.406 kB / 0.9647 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003178/0.6875, allocations: 41.14 kB / 0.9647 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.599e-05/0.6875, allocations: 27.17 kB / 0.9647 GB, free: 14.22 MB / 0.7325 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 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition5,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition3,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLinCon.tab.nextTimeEvent,$whenCondition1,timTabLinCon.tab.nextTimeEventScaled,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003477/0.6879, allocations: 274 kB / 0.965 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.688, allocations: 72.75 kB / 0.965 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.6881, allocations: 74.78 kB / 0.9651 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.6881, allocations: 3.781 kB / 0.9651 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.6882, allocations: 14.14 kB / 0.9651 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.6882, allocations: 5 kB / 0.9651 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005127/0.6887, allocations: 460.7 kB / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6887, allocations: 1 kB / 0.9656 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/0.6888, allocations: 23.83 kB / 0.9656 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.6888, allocations: 2.844 kB / 0.9656 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.6888, allocations: 12.22 kB / 0.9656 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.6888, allocations: 6.828 kB / 0.9656 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.6888, allocations: 4.75 kB / 0.9656 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006971/0.6895, allocations: 387.9 kB / 0.966 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.6897, allocations: 159.6 kB / 0.9662 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.6898, allocations: 11.98 kB / 0.9662 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.69, allocations: 20.48 kB / 0.9662 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.6901, allocations: 26.62 kB / 0.9662 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.6901, allocations: 15.39 kB / 0.9662 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007584/0.6909, allocations: 0.6029 MB / 0.9668 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6909, allocations: 0 / 0.9668 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004698/0.6913, allocations: 109.3 kB / 0.9669 GB, free: 12.76 MB / 0.7325 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.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/0.6925, allocations: 0.4897 MB / 0.9674 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007436/0.6933, allocations: 391.2 kB / 0.9678 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.6933, allocations: 5.281 kB / 0.9678 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.6936, allocations: 103.7 kB / 0.9679 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009025/0.6945, allocations: 214 kB / 0.9681 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.6963, allocations: 1.287 MB / 0.9693 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.6968, allocations: 0.9271 MB / 0.9702 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.697, allocations: 60.06 kB / 0.9703 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.697, allocations: 0 / 0.9703 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of Templates: time 0.01319/0.7102, allocations: 8.786 MB / 0.9789 GB, free: 3.824 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches