Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booTimTab.y.1.|booTimTab.y.2.|booTimTabTwi.y.1.|booTimTabTwi.y.2.|booTimTabOneRow.y.1.|booTimTabOneRow.y.2.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01034/0.01034, allocations: 104.5 kB / 15.73 MB, free: 6.043 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.002427/0.002427, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 68.61 kB / 0.9509 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3491, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.00223/0.3514, allocations: 0.8598 MB / 1.089 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002211/0.3536, allocations: 1.457 MB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.094e-05/0.3537, allocations: 4 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005731/0.3543, allocations: 199.4 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.3545, allocations: 103.6 kB / 1.091 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3555, allocations: 365.7 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008968/0.3564, allocations: 0.8738 MB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.3566, allocations: 100.2 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003357/0.357, allocations: 347.4 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003617/0.3573, allocations: 259.3 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001043/0.3575, allocations: 48 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000228/0.3577, allocations: 111.9 kB / 1.093 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004539/0.3582, allocations: 343.3 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003345/0.3585, allocations: 270.9 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009019/0.3594, allocations: 0.9154 MB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3594, allocations: 4 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.295e-06/0.3594, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.447e-06/0.3594, allocations: 3.938 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001652/0.3611, allocations: 0.8841 MB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3612, allocations: 12.03 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.3614, allocations: 52.38 kB / 1.095 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/0.3623, allocations: 0.5448 MB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.3623, allocations: 24.61 kB / 1.096 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.3624, allocations: 40.36 kB / 1.096 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.3629, allocations: 309.8 kB / 1.096 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.363, allocations: 0 / 1.096 GB, free: 9.297 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.363, allocations: 11.98 kB / 1.096 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.363, allocations: 8 kB / 1.096 GB, free: 9.277 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.3633, allocations: 219.8 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.3654, allocations: 1.172 MB / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006199/0.366, allocations: 471.8 kB / 1.098 GB, free: 7.344 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002422/0.3662, allocations: 178.6 kB / 1.098 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.3663, allocations: 4 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004377/0.3667, allocations: 323.1 kB / 1.098 GB, free: 6.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.3667, allocations: 0 / 1.098 GB, free: 6.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24): time 0.001048/0.3678, allocations: 0.6373 MB / 1.099 GB, free: 6.176 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.3679, allocations: 110.8 kB / 1.099 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006871/0.3686, allocations: 0.5993 MB / 1.099 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.3687, allocations: 50.45 kB / 1.1 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.3689, allocations: 221.4 kB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.369, allocations: 47.42 kB / 1.1 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/0.3692, allocations: 185.5 kB / 1.1 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.3694, allocations: 354.8 kB / 1.1 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.3696, allocations: 123.9 kB / 1.1 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008227/0.3704, allocations: 0.7215 MB / 1.101 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003453/0.3708, allocations: 300.6 kB / 1.101 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3708, allocations: 7.938 kB / 1.101 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006403/0.3714, allocations: 408.8 kB / 1.102 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3715, allocations: 9.625 kB / 1.102 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.3715, allocations: 11.94 kB / 1.102 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.3715, allocations: 4 kB / 1.102 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3717, allocations: 35.92 kB / 1.102 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.3717, allocations: 12.16 kB / 1.102 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.373, allocations: 135.8 kB / 1.102 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.373, allocations: 15.98 kB / 1.102 GB, free: 2.586 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.intTimTab.idx,$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[1],booTimTab.y[2],booTimTab.y[1],$whenCondition5,booTimTabOneRow.intTimTab.idx,$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.y[2],booTimTabOneRow.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.intTimTab.idx,$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.y[2],booTimTabTwi.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0003137/0.3733, allocations: 261.6 kB / 1.102 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.595e-05/0.3734, allocations: 39.53 kB / 1.102 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.825e-05/0.3735, allocations: 55.31 kB / 1.102 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3735, allocations: 4 kB / 1.102 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3735, allocations: 4 kB / 1.102 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3735, allocations: 3.984 kB / 1.102 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.3739, allocations: 397.3 kB / 1.103 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3739, allocations: 0 / 1.103 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.374, allocations: 11.92 kB / 1.103 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.374, allocations: 4 kB / 1.103 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.374, allocations: 11.94 kB / 1.103 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.374, allocations: 0 / 1.103 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/0.374, allocations: 4 kB / 1.103 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.3747, allocations: 0.5114 MB / 1.103 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.3748, allocations: 128.6 kB / 1.103 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.3749, allocations: 11.92 kB / 1.103 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.375, allocations: 15.98 kB / 1.103 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.997e-05/0.3751, allocations: 31.97 kB / 1.103 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.3751, allocations: 8 kB / 1.103 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004739/0.3756, allocations: 443 kB / 1.104 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3756, allocations: 0 / 1.104 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004363/0.3761, allocations: 111.8 kB / 1.104 GB, free: 468 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[2],booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002686/0.3764, allocations: 149.4 kB / 1.104 GB, free: 308 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005776/0.3769, allocations: 360.3 kB / 1.104 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.377, allocations: 7.938 kB / 1.104 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.3772, allocations: 187.8 kB / 1.105 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.3775, allocations: 37.89 kB / 1.105 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001194/0.3787, allocations: 0.8153 MB / 1.105 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.3792, allocations: 0.8428 MB / 1.106 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002057/0.3794, allocations: 94.92 kB / 1.106 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.517e-05/0.3795, allocations: 35.42 kB / 1.106 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/0.3795, allocations: 0 / 1.106 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of Templates: time 0.01298/0.3925, allocations: 7.972 MB / 1.114 GB, free: 5.984 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches