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.001576/0.001576, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002076/0.002076, allocations: 190.7 kB / 16.25 MB, free: 6.152 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.625/1.625, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.225/3.225, allocations: 472.6 MB / 0.7448 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 65.11 kB / 0.9116 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4258/0.4271, allocations: 159.9 MB / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.005133/0.4323, allocations: 2.513 MB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00319/0.4356, allocations: 1.567 MB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004534/0.436, allocations: 11.88 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008034/0.4369, allocations: 311.2 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0008861/0.4378, allocations: 295 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.439, allocations: 422 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001033/0.4401, allocations: 0.7012 MB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.4403, allocations: 85.7 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006191/0.441, allocations: 338.5 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005168/0.4415, allocations: 322.8 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.648e-05/0.4416, allocations: 28 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.4419, allocations: 99.89 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.4421, allocations: 199.3 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.4424, allocations: 266.1 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008554/0.4433, allocations: 0.7321 MB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.4433, allocations: 0 / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4433, allocations: 0 / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.495e-05/0.4433, allocations: 0 / 1.075 GB, free: 2.797 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.002001/0.4453, allocations: 0.995 MB / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.4454, allocations: 12.03 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.4456, allocations: 76 kB / 1.076 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.4466, allocations: 0.6249 MB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.4467, allocations: 16.36 kB / 1.077 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.4467, allocations: 11.94 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004236/0.4471, allocations: 207.1 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.4472, allocations: 0 / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.4472, allocations: 0 / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.4472, allocations: 4 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.4475, allocations: 99.88 kB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.449, allocations: 1.052 MB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.4496, allocations: 281 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.4498, allocations: 104.2 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.4499, allocations: 11.97 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.4503, allocations: 232.8 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/0.4503, allocations: 0 / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001029/0.4513, allocations: 424.5 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4514, allocations: 166.1 kB / 1.08 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.4528, allocations: 1.036 MB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.4529, allocations: 33.7 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.4531, allocations: 284.9 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.441e-05/0.4532, allocations: 83.08 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.4534, allocations: 146.1 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.4535, allocations: 330 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003985/0.4539, allocations: 209.2 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004558/0.4544, allocations: 311 kB / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006986/0.4551, allocations: 410.6 kB / 1.082 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.4551, allocations: 4 kB / 1.082 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001298/0.4564, allocations: 0.6616 MB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4565, allocations: 4 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.4565, allocations: 4.156 kB / 1.083 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.4565, allocations: 11.98 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.457, allocations: 115.8 kB / 1.083 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/0.457, allocations: 11.92 kB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.4573, allocations: 44.92 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.4574, allocations: 20 kB / 1.083 GB, free: 10.43 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.0003567/0.4578, allocations: 277.6 kB / 1.083 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.4579, allocations: 71.06 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.4581, allocations: 77.88 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.4581, allocations: 4 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.4581, allocations: 11.88 kB / 1.084 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.4581, allocations: 0 / 1.084 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005188/0.4587, allocations: 461.1 kB / 1.084 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4587, allocations: 3.984 kB / 1.084 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.4587, allocations: 20 kB / 1.084 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.4588, allocations: 4 kB / 1.084 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.4588, allocations: 7.984 kB / 1.084 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4588, allocations: 4 kB / 1.084 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4588, allocations: 3.938 kB / 1.084 GB, free: 9.445 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.4595, allocations: 392.8 kB / 1.084 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.4597, allocations: 156.1 kB / 1.085 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.545e-05/0.4598, allocations: 16 kB / 1.085 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.46, allocations: 19.97 kB / 1.085 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.594e-05/0.46, allocations: 23.86 kB / 1.085 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.4601, allocations: 23.92 kB / 1.085 GB, free: 8.777 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007496/0.4608, allocations: 0.6005 MB / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.613e-06/0.4608, allocations: 0 / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004886/0.4613, allocations: 119.9 kB / 1.085 GB, free: 8.062 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.00126/0.4626, allocations: 487.8 kB / 1.086 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008904/0.4635, allocations: 421.7 kB / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4635, allocations: 0 / 1.086 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.4638, allocations: 111.8 kB / 1.086 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.4648, allocations: 209.9 kB / 1.087 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.4666, allocations: 1.241 MB / 1.088 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.4671, allocations: 0.9323 MB / 1.089 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003352/0.4675, allocations: 116.9 kB / 1.089 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.4676, allocations: 59.42 kB / 1.089 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of SimCode: time 1.563e-06/0.4676, allocations: 0 / 1.089 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of Templates: time 0.01606/0.4837, allocations: 7.665 MB / 1.096 GB, free: 13.06 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