Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.001087/0.001087, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.64/2.64, allocations: 437 MB / 0.7103 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.91 kB / 0.8692 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7775/0.779, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.004067/0.7831, allocations: 2.486 MB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002984/0.7861, allocations: 1.575 MB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004262/0.7866, allocations: 11.94 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007504/0.7874, allocations: 314.9 kB / 1.022 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008593/0.7882, allocations: 334.6 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.7894, allocations: 438.8 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009604/0.7904, allocations: 0.709 MB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.7906, allocations: 69.73 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005662/0.7912, allocations: 330.7 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005242/0.7917, allocations: 318.7 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.7918, allocations: 32 kB / 1.024 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.7921, allocations: 83.97 kB / 1.024 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.7924, allocations: 191.3 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003151/0.7927, allocations: 270.1 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008079/0.7935, allocations: 0.7336 MB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7935, allocations: 0 / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.277e-06/0.7935, allocations: 8 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.653e-05/0.7935, allocations: 0 / 1.025 GB, free: 10.63 MB / 0.7794 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.001737/0.7953, allocations: 1.004 MB / 1.026 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.7953, allocations: 12.03 kB / 1.026 GB, free: 9.566 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.7955, allocations: 72 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008916/0.7964, allocations: 0.6172 MB / 1.027 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.7964, allocations: 20.36 kB / 1.027 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.126e-05/0.7965, allocations: 11.94 kB / 1.027 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/0.7969, allocations: 202.9 kB / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.7969, allocations: 0 / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.7969, allocations: 0 / 1.027 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.7969, allocations: 8 kB / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.7972, allocations: 103.8 kB / 1.027 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.7985, allocations: 1.056 MB / 1.028 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005659/0.7991, allocations: 281 kB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002487/0.7993, allocations: 108.2 kB / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.7994, allocations: 7.984 kB / 1.028 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003765/0.7997, allocations: 226.5 kB / 1.029 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=25): time 1.533e-06/0.7998, allocations: 0 / 1.029 GB, free: 6.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25): time 0.0009174/0.8007, allocations: 421.7 kB / 1.029 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.088e-05/0.8008, allocations: 162.2 kB / 1.029 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.8021, allocations: 1.044 MB / 1.03 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.8022, allocations: 37.64 kB / 1.03 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.8025, allocations: 284.9 kB / 1.03 GB, free: 4.672 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.698e-05/0.8026, allocations: 75.08 kB / 1.031 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001777/0.8028, allocations: 142.2 kB / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.8029, allocations: 326 kB / 1.031 GB, free: 4.129 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000582/0.8035, allocations: 213.2 kB / 1.031 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007453/0.8042, allocations: 311 kB / 1.031 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009139/0.8052, allocations: 406.6 kB / 1.032 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.8052, allocations: 0 / 1.032 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001892/0.8071, allocations: 0.6763 MB / 1.033 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.8071, allocations: 8 kB / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.8071, allocations: 0 / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.8072, allocations: 11.98 kB / 1.033 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006307/0.8078, allocations: 111.8 kB / 1.033 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.8078, allocations: 11.92 kB / 1.033 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005826/0.8084, allocations: 39.8 kB / 1.033 GB, free: 2.305 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.354e-05/0.8085, allocations: 24.16 kB / 1.033 GB, free: 2.281 MB / 0.7794 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.0005304/0.8091, allocations: 277.6 kB / 1.033 GB, free: 2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/0.8093, allocations: 75.06 kB / 1.033 GB, free: 1.926 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.8096, allocations: 73.88 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.8096, allocations: 4 kB / 1.033 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.8096, allocations: 3.938 kB / 1.033 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.8096, allocations: 4 kB / 1.033 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009072/0.8105, allocations: 469.2 kB / 1.034 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.8106, allocations: 0 / 1.034 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.8107, allocations: 19.94 kB / 1.034 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.8107, allocations: 8 kB / 1.034 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.8107, allocations: 11.98 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.8108, allocations: 0 / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.8108, allocations: 7.938 kB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.8118, allocations: 387.4 kB / 1.034 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.8121, allocations: 160.2 kB / 1.034 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.8122, allocations: 8 kB / 1.034 GB, free: 0.6914 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/0.8125, allocations: 23.91 kB / 1.034 GB, free: 0.668 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/0.8126, allocations: 23.92 kB / 1.034 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.8127, allocations: 19.98 kB / 1.034 GB, free: 0.625 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001247/0.8139, allocations: 0.6044 MB / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8139, allocations: 0 / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0008786/0.8148, allocations: 119.9 kB / 1.035 GB, free: 15.91 MB / 0.795 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.001952/0.8168, allocations: 492 kB / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001323/0.8181, allocations: 415.5 kB / 1.036 GB, free: 15.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.8181, allocations: 0 / 1.036 GB, free: 15.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.8186, allocations: 103.9 kB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.8202, allocations: 225.9 kB / 1.036 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.8231, allocations: 1.084 MB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.8243, allocations: 0.9362 MB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0006485/0.8249, allocations: 112.9 kB / 1.038 GB, free: 12.71 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000228/0.8252, allocations: 55.42 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of SimCode: time 7.81e-07/0.8252, allocations: 4 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of Templates: time 0.02751/0.8527, allocations: 7.763 MB / 1.046 GB, free: 4.98 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches