Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.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.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intTimTab.y.1.|intTimTab.y.2.|intTimTab1.y.1.|intTimTab1.y.2.|tabOneRow.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008354/0.008354, allocations: 101.6 kB / 15.73 MB, free: 6.039 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.001839/0.00184, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.393/2.393, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 67.89 kB / 0.9509 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.058/1.059, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.002278/1.062, allocations: 0.6829 MB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002372/1.064, allocations: 1.343 MB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.582e-05/1.064, allocations: 1.562 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000686/1.065, allocations: 187 kB / 1.09 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002261/1.065, allocations: 108.8 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001067/1.066, allocations: 230.6 kB / 1.09 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008856/1.067, allocations: 492.9 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.946e-05/1.067, allocations: 13.62 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003681/1.067, allocations: 207.8 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/1.068, allocations: 211.3 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001111/1.068, allocations: 21.41 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003286/1.068, allocations: 82.53 kB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005279/1.069, allocations: 249.1 kB / 1.092 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002725/1.069, allocations: 154 kB / 1.092 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008176/1.07, allocations: 483.3 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.07, allocations: 0.7188 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/1.07, allocations: 0 / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.865e-06/1.07, allocations: 0.6562 kB / 1.092 GB, free: 3.344 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001353/1.071, allocations: 0.6294 MB / 1.093 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/1.071, allocations: 14.09 kB / 1.093 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/1.072, allocations: 31 kB / 1.093 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007848/1.072, allocations: 385.1 kB / 1.093 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/1.073, allocations: 13.77 kB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/1.073, allocations: 21.34 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/1.073, allocations: 197.8 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/1.073, allocations: 0.8438 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/1.073, allocations: 1.484 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/1.073, allocations: 5.281 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/1.074, allocations: 108.3 kB / 1.094 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006699/1.074, allocations: 380.1 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007237/1.075, allocations: 328.2 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/1.075, allocations: 126.6 kB / 1.094 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/1.075, allocations: 5.125 kB / 1.094 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006362/1.076, allocations: 284.3 kB / 1.095 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=18): time 2.394e-06/1.076, allocations: 0 / 1.095 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18): time 0.001353/1.077, allocations: 0.494 MB / 1.095 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/1.077, allocations: 110.8 kB / 1.095 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006869/1.078, allocations: 396.7 kB / 1.096 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.405e-05/1.078, allocations: 45.42 kB / 1.096 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/1.078, allocations: 150.7 kB / 1.096 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.332e-05/1.078, allocations: 41.02 kB / 1.096 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/1.079, allocations: 114.8 kB / 1.096 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.538e-05/1.079, allocations: 343.2 kB / 1.096 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/1.079, allocations: 91.08 kB / 1.096 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006989/1.08, allocations: 461.7 kB / 1.097 GB, free: 448 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/1.08, allocations: 260.6 kB / 1.097 GB, free: 248 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/1.08, allocations: 6.125 kB / 1.097 GB, free: 244 kB / 0.8575 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000808/1.081, allocations: 332.2 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/1.081, allocations: 6.594 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/1.081, allocations: 4.047 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/1.081, allocations: 5.438 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/1.081, allocations: 33.39 kB / 1.097 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.823e-05/1.081, allocations: 10.03 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/1.082, allocations: 66.92 kB / 1.098 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/1.083, allocations: 15.09 kB / 1.098 GB, free: 76 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 26 (tabOneRow.idx,$PRE.tabOneRow.idx,tabOneRow.y[1],$PRE.tabOneRow.y[1],$whenCondition10,intTimTab1.idx,$PRE.intTimTab1.idx,intTimTab1.y[2],$PRE.intTimTab1.y[2],intTimTab1.y[1],$PRE.intTimTab1.y[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab.idx,$PRE.intTimTab.idx,intTimTab.y[2],$PRE.intTimTab.y[2],intTimTab.y[1],$PRE.intTimTab.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.000349/1.083, allocations: 191.8 kB / 1.098 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.908e-05/1.083, allocations: 32.72 kB / 1.098 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.164e-05/1.083, allocations: 36.98 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/1.083, allocations: 2.906 kB / 1.098 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/1.083, allocations: 5.188 kB / 1.098 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/1.083, allocations: 2.109 kB / 1.098 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004856/1.084, allocations: 286 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/1.084, allocations: 1.516 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-05/1.084, allocations: 8.906 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/1.084, allocations: 2.094 kB / 1.098 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.193e-05/1.084, allocations: 13 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/1.084, allocations: 1.859 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.084, allocations: 0.9688 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/1.085, allocations: 436.9 kB / 1.099 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/1.085, allocations: 103.5 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.84e-05/1.085, allocations: 3.859 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/1.085, allocations: 6.906 kB / 1.099 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/1.085, allocations: 19.8 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/1.085, allocations: 13.19 kB / 1.099 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005558/1.086, allocations: 295.9 kB / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.2e-07/1.086, allocations: 0 / 1.099 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007714/1.087, allocations: 77.2 kB / 1.099 GB, free: 15.2 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition10,tabOneRow.y[1],tabOneRow.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab1.y[1],intTimTab1.y[2],intTimTab1.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intTimTab.y[1],intTimTab.y[2],intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0003325/1.087, allocations: 130.6 kB / 1.099 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008201/1.088, allocations: 261.3 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.088, allocations: 8.719 kB / 1.099 GB, free: 15.03 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004278/1.088, allocations: 142.9 kB / 1.1 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/1.089, allocations: 33.7 kB / 1.1 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/1.09, allocations: 0.5587 MB / 1.1 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/1.091, allocations: 0.7677 MB / 1.101 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002074/1.091, allocations: 45.39 kB / 1.101 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/1.091, allocations: 30 kB / 1.101 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of SimCode: time 1.132e-06/1.091, allocations: 0 / 1.101 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of Templates: time 0.01832/1.109, allocations: 5.019 MB / 1.106 GB, free: 13.58 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches