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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001557/0.001557, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001876/0.001876, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.604/1.604, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.93/2.93, allocations: 472.6 MB / 0.7447 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001653, allocations: 71.69 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4727/0.4744, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.005093/0.4796, allocations: 2.509 MB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00316/0.4828, allocations: 1.578 MB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002598/0.4831, allocations: 7.938 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007309/0.4839, allocations: 307.1 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000588/0.4845, allocations: 295 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.4856, allocations: 424 kB / 1.073 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007577/0.4864, allocations: 0.6582 MB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.4866, allocations: 77.7 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004001/0.487, allocations: 290.6 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003472/0.4874, allocations: 310.7 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.4874, allocations: 12 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.4877, allocations: 67.97 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.4879, allocations: 183.3 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002953/0.4882, allocations: 250.1 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007867/0.489, allocations: 0.7163 MB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.489, allocations: 4 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.02e-07/0.489, allocations: 4 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.489, allocations: 0 / 1.075 GB, free: 3.145 MB / 0.8262 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.001763/0.4908, allocations: 0.999 MB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.4909, allocations: 12.03 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.491, allocations: 75.98 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009708/0.492, allocations: 0.6172 MB / 1.077 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.492, allocations: 16.38 kB / 1.077 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.4921, allocations: 23.91 kB / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.4925, allocations: 190.5 kB / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4926, allocations: 0 / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.4926, allocations: 7.984 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.4926, allocations: 4 kB / 1.077 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.4929, allocations: 107.8 kB / 1.077 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.4945, allocations: 1.056 MB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006109/0.4951, allocations: 277 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.4954, allocations: 108.2 kB / 1.078 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.4954, allocations: 4 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004722/0.4959, allocations: 241.2 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.4959, allocations: 0 / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001089/0.497, allocations: 416.5 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.4971, allocations: 166.2 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.4985, allocations: 1.032 MB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.4986, allocations: 41.69 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.4988, allocations: 280.9 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.4989, allocations: 75.08 kB / 1.081 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.4991, allocations: 146.1 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.4993, allocations: 334 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.4996, allocations: 205.2 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004371/0.5001, allocations: 307 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006925/0.5008, allocations: 405.8 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.5008, allocations: 1.25 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001183/0.502, allocations: 0.6712 MB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.502, allocations: 8 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.502, allocations: 0 / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.5021, allocations: 8 kB / 1.083 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.5025, allocations: 115.8 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.5025, allocations: 7.938 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.5028, allocations: 43.67 kB / 1.083 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.404e-05/0.5029, allocations: 32.14 kB / 1.083 GB, free: 10.78 MB / 0.8419 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.0004446/0.5034, allocations: 277.6 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.5035, allocations: 75.06 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.5036, allocations: 73.88 kB / 1.083 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.5036, allocations: 4 kB / 1.083 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.5037, allocations: 3.938 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.5037, allocations: 4 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.5042, allocations: 465.1 kB / 1.084 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5042, allocations: 0 / 1.084 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.134e-05/0.5043, allocations: 27.92 kB / 1.084 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.5043, allocations: 7.938 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.5044, allocations: 11.98 kB / 1.084 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.5044, allocations: 3.984 kB / 1.084 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.368e-05/0.5044, allocations: 7.938 kB / 1.084 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007599/0.5051, allocations: 380.4 kB / 1.084 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.5053, allocations: 164.1 kB / 1.084 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.834e-05/0.5054, allocations: 15.92 kB / 1.084 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.5056, allocations: 15.98 kB / 1.084 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.247e-05/0.5057, allocations: 27.91 kB / 1.084 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.658e-05/0.5057, allocations: 15.98 kB / 1.084 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007949/0.5065, allocations: 0.6044 MB / 1.085 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.91e-07/0.5065, allocations: 0 / 1.085 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004933/0.507, allocations: 112 kB / 1.085 GB, free: 8.41 MB / 0.8419 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.001383/0.5084, allocations: 483.4 kB / 1.085 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008915/0.5093, allocations: 408.8 kB / 1.086 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5093, allocations: 0 / 1.086 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.5096, allocations: 103.8 kB / 1.086 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009716/0.5106, allocations: 206.7 kB / 1.086 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.5125, allocations: 1.227 MB / 1.087 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005669/0.513, allocations: 0.9366 MB / 1.088 GB, free: 5.188 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003498/0.5134, allocations: 105.5 kB / 1.088 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.5136, allocations: 59.41 kB / 1.088 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of SimCode: time 2.034e-06/0.5136, allocations: 4 kB / 1.088 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of Templates: time 0.01671/0.5303, allocations: 7.423 MB / 1.096 GB, free: 13.68 MB / 0.8575 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 -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/jenkins/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