Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.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.Reals.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 112.6 kB / 16.37 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 196 kB / 17.31 MB, free: 5.613 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.534/1.534, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.615/2.615, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 64.06 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3722, allocations: 153 MB / 1.027 GB, free: 2.059 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.003953/0.3761, allocations: 2.482 MB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.3791, allocations: 1.587 MB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002261/0.3793, allocations: 7.938 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006713/0.38, allocations: 330.8 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006172/0.3806, allocations: 334.6 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009977/0.3816, allocations: 442.5 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007449/0.3824, allocations: 0.7051 MB / 1.032 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.3826, allocations: 81.72 kB / 1.033 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.383, allocations: 322.7 kB / 1.033 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.3834, allocations: 314.8 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.643e-05/0.3835, allocations: 32 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.3837, allocations: 87.97 kB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.3839, allocations: 195.3 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002533/0.3841, allocations: 270.1 kB / 1.034 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007342/0.3849, allocations: 0.7356 MB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3849, allocations: 0 / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3849, allocations: 0 / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.3849, allocations: 0 / 1.034 GB, free: 10.15 MB / 0.8106 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.001592/0.3865, allocations: 1.007 MB / 1.035 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3866, allocations: 8.031 kB / 1.035 GB, free: 9.086 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.3867, allocations: 76 kB / 1.036 GB, free: 9.012 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.3877, allocations: 0.625 MB / 1.036 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.3877, allocations: 8.375 kB / 1.036 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.3878, allocations: 15.94 kB / 1.036 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003939/0.3882, allocations: 207.7 kB / 1.036 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3882, allocations: 0 / 1.036 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.3882, allocations: 4 kB / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3883, allocations: 0 / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.3885, allocations: 103.9 kB / 1.036 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.39, allocations: 1.056 MB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.3906, allocations: 284.9 kB / 1.038 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002289/0.3909, allocations: 100.2 kB / 1.038 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.3909, allocations: 8 kB / 1.038 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.3914, allocations: 223.4 kB / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.3914, allocations: 0 / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001041/0.3924, allocations: 424.7 kB / 1.038 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.3925, allocations: 170.1 kB / 1.039 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.3939, allocations: 1.032 MB / 1.04 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/0.3939, allocations: 33.7 kB / 1.04 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002569/0.3942, allocations: 292.8 kB / 1.04 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.697e-05/0.3943, allocations: 79.02 kB / 1.04 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/0.3945, allocations: 138.2 kB / 1.04 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3947, allocations: 334 kB / 1.04 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.3951, allocations: 217.2 kB / 1.041 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.3955, allocations: 299 kB / 1.041 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006828/0.3962, allocations: 414.7 kB / 1.041 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.3962, allocations: 4 kB / 1.041 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001187/0.3974, allocations: 0.6685 MB / 1.042 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.3975, allocations: 8 kB / 1.042 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3975, allocations: 4 kB / 1.042 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.3975, allocations: 4 kB / 1.042 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004256/0.3979, allocations: 120 kB / 1.042 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.398, allocations: 11.88 kB / 1.042 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.3983, allocations: 43.67 kB / 1.042 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/0.3983, allocations: 23.98 kB / 1.042 GB, free: 1.777 MB / 0.8106 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.0003783/0.3987, allocations: 278.6 kB / 1.042 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3988, allocations: 67.16 kB / 1.043 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.399, allocations: 69.89 kB / 1.043 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.399, allocations: 8 kB / 1.043 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.399, allocations: 11.94 kB / 1.043 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.399, allocations: 3.984 kB / 1.043 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.3995, allocations: 465.1 kB / 1.043 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3995, allocations: 0 / 1.043 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.844e-05/0.3996, allocations: 23.92 kB / 1.043 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3996, allocations: 4 kB / 1.043 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.3996, allocations: 8 kB / 1.043 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3996, allocations: 0 / 1.043 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3996, allocations: 7.938 kB / 1.043 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006815/0.4003, allocations: 394.4 kB / 1.044 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.4006, allocations: 164.1 kB / 1.044 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.4006, allocations: 11.98 kB / 1.044 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.4008, allocations: 15.98 kB / 1.044 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.4009, allocations: 31.91 kB / 1.044 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/0.4009, allocations: 12 kB / 1.044 GB, free: 128 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007685/0.4017, allocations: 0.6006 MB / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4017, allocations: 0 / 1.044 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000425/0.4021, allocations: 112 kB / 1.044 GB, free: 15.41 MB / 0.8262 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.001193/0.4033, allocations: 0.4911 MB / 1.045 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008088/0.4042, allocations: 395.8 kB / 1.045 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.4042, allocations: 8.062 kB / 1.045 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.4044, allocations: 103.9 kB / 1.045 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009514/0.4054, allocations: 220 kB / 1.046 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.4072, allocations: 1.085 MB / 1.047 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005869/0.4078, allocations: 0.9207 MB / 1.048 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002795/0.4081, allocations: 112.9 kB / 1.048 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.4083, allocations: 59.42 kB / 1.048 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.4083, allocations: 0 / 1.048 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of Templates: time 0.01502/0.4233, allocations: 7.775 MB / 1.055 GB, free: 4.477 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches