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.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.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.001192/0.001192, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.00164/0.00164, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.3 MB / 240 MB, free: 5.406 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.583/2.583, allocations: 390.9 MB / 0.666 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004017/0.0004017, allocations: 11.94 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7838/0.7842, allocations: 142.4 MB / 0.9545 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.0009032/0.7852, allocations: 0.5419 MB / 0.955 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.7868, allocations: 1.429 MB / 0.9564 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.326e-05/0.7868, allocations: 2.344 kB / 0.9564 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004712/0.7873, allocations: 179.8 kB / 0.9566 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.7875, allocations: 108.9 kB / 0.9567 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008834/0.7884, allocations: 320.7 kB / 0.957 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008303/0.7892, allocations: 0.6553 MB / 0.9576 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.7894, allocations: 87.42 kB / 0.9577 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.7897, allocations: 296.8 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.79, allocations: 226.5 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.463e-05/0.7901, allocations: 15.12 kB / 0.9582 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.7903, allocations: 75.88 kB / 0.9583 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003189/0.7906, allocations: 300.8 kB / 0.9586 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.387e-05/0.7907, allocations: 92.95 kB / 0.9586 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005086/0.7912, allocations: 0.7051 MB / 0.9593 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7912, allocations: 0 / 0.9593 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.275e-06/0.7912, allocations: 4.797 kB / 0.9593 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.7913, allocations: 4 kB / 0.9593 GB, free: 4.453 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001015/0.7923, allocations: 0.6934 MB / 0.96 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.7923, allocations: 9.031 kB / 0.96 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.7925, allocations: 57.55 kB / 0.9601 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006721/0.7932, allocations: 0.5287 MB / 0.9606 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.7932, allocations: 23.36 kB / 0.9606 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.7933, allocations: 36.31 kB / 0.9607 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.7937, allocations: 306.9 kB / 0.961 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.7938, allocations: 0 / 0.961 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.7938, allocations: 9.328 kB / 0.961 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.7938, allocations: 10.95 kB / 0.961 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/0.7941, allocations: 214.1 kB / 0.9612 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.7958, allocations: 1.195 MB / 0.9623 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005466/0.7963, allocations: 465.2 kB / 0.9628 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.7966, allocations: 178.2 kB / 0.963 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.7966, allocations: 5.969 kB / 0.963 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000433/0.797, allocations: 329.4 kB / 0.9633 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.797, allocations: 0 / 0.9633 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=24): time 0.0009871/0.798, allocations: 0.6295 MB / 0.9639 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.7981, allocations: 113.3 kB / 0.964 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/0.7988, allocations: 0.5913 MB / 0.9646 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.875e-05/0.7989, allocations: 47.78 kB / 0.9646 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.7991, allocations: 226.4 kB / 0.9648 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.7991, allocations: 49.3 kB / 0.9649 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.494e-05/0.7992, allocations: 5 kB / 0.9649 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.7993, allocations: 362.1 kB / 0.9652 GB, free: 240 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.7995, allocations: 131.8 kB / 0.9654 GB, free: 180 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008273/0.8003, allocations: 0.7168 MB / 0.9661 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.8006, allocations: 168.4 kB / 0.9662 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.8006, allocations: 0.8438 kB / 0.9662 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006649/0.8013, allocations: 419 kB / 0.9666 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.8013, allocations: 9.969 kB / 0.9666 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.8013, allocations: 7.875 kB / 0.9666 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.8013, allocations: 5.531 kB / 0.9666 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.8015, allocations: 29.48 kB / 0.9667 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.8015, allocations: 5.438 kB / 0.9667 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.8026, allocations: 142.3 kB / 0.9668 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.8027, allocations: 15.14 kB / 0.9668 GB, free: 15.16 MB / 0.7325 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.y[1],booTimTab.y[2],$PRE.booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.idx) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000291/0.803, allocations: 257.6 kB / 0.9671 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.803, allocations: 47.33 kB / 0.9671 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.886e-05/0.8031, allocations: 53.22 kB / 0.9672 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.8031, allocations: 7.312 kB / 0.9672 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.8032, allocations: 5.156 kB / 0.9672 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.8032, allocations: 5.078 kB / 0.9672 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004458/0.8036, allocations: 409.3 kB / 0.9676 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.8036, allocations: 1.031 kB / 0.9676 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.619e-05/0.8037, allocations: 7.828 kB / 0.9676 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.8037, allocations: 5.438 kB / 0.9676 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.8037, allocations: 8.156 kB / 0.9676 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.8037, allocations: 2.219 kB / 0.9676 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.8037, allocations: 4.969 kB / 0.9676 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.8044, allocations: 0.5137 MB / 0.9681 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.8045, allocations: 141.5 kB / 0.9682 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/0.8046, allocations: 3.344 kB / 0.9682 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.8047, allocations: 17.7 kB / 0.9683 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.8048, allocations: 33.48 kB / 0.9683 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-05/0.8049, allocations: 14.91 kB / 0.9683 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000489/0.8054, allocations: 433 kB / 0.9687 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8054, allocations: 0 / 0.9687 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00047/0.8058, allocations: 114.9 kB / 0.9688 GB, free: 13.84 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000258/0.8061, allocations: 154.1 kB / 0.969 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005958/0.8067, allocations: 346.3 kB / 0.9693 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8067, allocations: 3.938 kB / 0.9693 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.807, allocations: 187.1 kB / 0.9695 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.8073, allocations: 41.34 kB / 0.9695 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.8087, allocations: 0.888 MB / 0.9704 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.8092, allocations: 0.8396 MB / 0.9712 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002568/0.8095, allocations: 91.34 kB / 0.9713 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.4e-05/0.8096, allocations: 39.11 kB / 0.9713 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.8096, allocations: 0 / 0.9713 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of Templates: time 0.01233/0.8219, allocations: 7.338 MB / 0.9785 GB, free: 6.324 MB / 0.7325 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