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.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.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.001137/0.001137, allocations: 91.84 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.00149/0.00149, 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.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.332 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.584/2.584, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005129, allocations: 8 kB / 0.8154 GB, free: 13.61 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8015/0.8021, allocations: 142.4 MB / 0.9545 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.0008603/0.803, allocations: 391.9 kB / 0.9548 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.8047, allocations: 1.31 MB / 0.9561 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.718e-05/0.8048, allocations: 1.25 kB / 0.9561 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005341/0.8053, allocations: 191.7 kB / 0.9563 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.8055, allocations: 97.45 kB / 0.9564 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.8061, allocations: 212 kB / 0.9566 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004487/0.8066, allocations: 367.2 kB / 0.9569 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.32e-05/0.8066, allocations: 8.141 kB / 0.9569 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002319/0.8069, allocations: 187.7 kB / 0.9571 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003289/0.8072, allocations: 194.6 kB / 0.9573 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.8073, allocations: 11 kB / 0.9573 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.8075, allocations: 70.44 kB / 0.9574 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003115/0.8078, allocations: 240.7 kB / 0.9576 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.852e-05/0.8079, allocations: 62.48 kB / 0.9577 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003914/0.8083, allocations: 354 kB / 0.958 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8083, allocations: 0 / 0.958 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8083, allocations: 4 kB / 0.958 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.8083, allocations: 3.938 kB / 0.958 GB, free: 5.289 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.00075/0.8091, allocations: 0.528 MB / 0.9585 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.8091, allocations: 9.906 kB / 0.9585 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.8092, allocations: 36.55 kB / 0.9586 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004796/0.8097, allocations: 382.7 kB / 0.9589 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.8097, allocations: 9.625 kB / 0.959 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.26e-05/0.8098, allocations: 19.12 kB / 0.959 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.8101, allocations: 189.1 kB / 0.9592 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.8101, allocations: 0 / 0.9592 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.8101, allocations: 5.359 kB / 0.9592 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.8102, allocations: 5.328 kB / 0.9592 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.8103, allocations: 109.9 kB / 0.9593 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003611/0.8107, allocations: 386.5 kB / 0.9596 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.8112, allocations: 312.7 kB / 0.9599 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.8113, allocations: 120.8 kB / 0.9601 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.8114, allocations: 9.047 kB / 0.9601 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004401/0.8118, allocations: 278.4 kB / 0.9603 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.8118, allocations: 0 / 0.9603 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0008403/0.8127, allocations: 0.5026 MB / 0.9608 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.8127, allocations: 120.3 kB / 0.9609 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.8132, allocations: 395.1 kB / 0.9613 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.164e-05/0.8132, allocations: 40.64 kB / 0.9613 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.8134, allocations: 151.6 kB / 0.9615 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.8134, allocations: 38.67 kB / 0.9615 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.8134, allocations: 5.062 kB / 0.9615 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.57e-05/0.8135, allocations: 349.9 kB / 0.9619 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.8136, allocations: 84.89 kB / 0.9619 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.8141, allocations: 472.5 kB / 0.9624 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.8143, allocations: 126.7 kB / 0.9625 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.8143, allocations: 2.656 kB / 0.9625 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004389/0.8148, allocations: 326.5 kB / 0.9628 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.8148, allocations: 5.969 kB / 0.9628 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.8148, allocations: 8.469 kB / 0.9628 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.8148, allocations: 5.391 kB / 0.9629 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.815, allocations: 40.36 kB / 0.9629 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.815, allocations: 8.984 kB / 0.9629 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/0.8157, allocations: 78.34 kB / 0.963 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.8157, allocations: 14.69 kB / 0.963 GB, free: 1.629 MB / 0.7169 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 ($PRE.tabOneRow.y[1],tabOneRow.y[1],$PRE.tabOneRow.idx,tabOneRow.idx,$whenCondition10,$PRE.intTimTab1.y[1],intTimTab1.y[1],$PRE.intTimTab1.y[2],intTimTab1.y[2],$PRE.intTimTab1.idx,intTimTab1.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$PRE.intTimTab.y[1],intTimTab.y[1],$PRE.intTimTab.y[2],intTimTab.y[2],$PRE.intTimTab.idx,intTimTab.idx,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.8159, allocations: 190.8 kB / 0.9632 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.816, allocations: 29.59 kB / 0.9632 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.168e-05/0.8161, allocations: 33.02 kB / 0.9632 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.8161, allocations: 2.156 kB / 0.9632 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.8161, allocations: 1.219 kB / 0.9632 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.8161, allocations: 9.281 kB / 0.9632 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000264/0.8164, allocations: 279.1 kB / 0.9635 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.8164, allocations: 5.125 kB / 0.9635 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.856e-05/0.8164, allocations: 11.2 kB / 0.9635 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.8164, allocations: 2.281 kB / 0.9635 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.8164, allocations: 3.625 kB / 0.9635 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.8165, allocations: 9.125 kB / 0.9635 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.8165, allocations: 1.219 kB / 0.9635 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005547/0.817, allocations: 437.4 kB / 0.964 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.857e-05/0.8171, allocations: 127.5 kB / 0.9641 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.8172, allocations: 2.25 kB / 0.9641 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.8172, allocations: 6.219 kB / 0.9641 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.8173, allocations: 19.3 kB / 0.9641 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.8173, allocations: 14.39 kB / 0.9641 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003077/0.8176, allocations: 294 kB / 0.9644 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8177, allocations: 0 / 0.9644 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000416/0.8181, allocations: 75.92 kB / 0.9645 GB, free: 0.5977 MB / 0.7169 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 (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.0002215/0.8183, allocations: 132.1 kB / 0.9646 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004257/0.8187, allocations: 260.5 kB / 0.9648 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.8188, allocations: 0 / 0.9648 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.8189, allocations: 142.3 kB / 0.965 GB, free: 348 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.8192, allocations: 28.39 kB / 0.965 GB, free: 332 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008664/0.8201, allocations: 0.5961 MB / 0.9656 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.8205, allocations: 0.767 MB / 0.9663 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001488/0.8206, allocations: 54.56 kB / 0.9664 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.091e-05/0.8207, allocations: 27.77 kB / 0.9664 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of SimCode: time 1.963e-06/0.8207, allocations: 0 / 0.9664 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of Templates: time 0.01021/0.8309, allocations: 4.609 MB / 0.9709 GB, free: 12.9 MB / 0.7325 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