Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009859/0.0009859, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001282/0.001282, allocations: 177.3 kB / 15.94 MB, free: 228 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.508/1.508, allocations: 223.2 MB / 239.9 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.814/2.814, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000427/0.0004272, allocations: 12 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8773/0.8778, allocations: 153.6 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.002969/0.8808, allocations: 2.058 MB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002567/0.8834, allocations: 1.452 MB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.8836, allocations: 11.88 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006079/0.8842, allocations: 283.2 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006001/0.8849, allocations: 283.2 kB / 1.025 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.8859, allocations: 365.6 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006546/0.8866, allocations: 443.1 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.8868, allocations: 73.72 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.8872, allocations: 294.8 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.8875, allocations: 251 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.8875, allocations: 8 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.8877, allocations: 51.92 kB / 1.026 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.8879, allocations: 171.4 kB / 1.026 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.8881, allocations: 133.3 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005447/0.8886, allocations: 0.5786 MB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.8886, allocations: 0 / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.983e-06/0.8886, allocations: 3.938 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.8886, allocations: 0 / 1.027 GB, free: 10.65 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.001421/0.8901, allocations: 0.8903 MB / 1.028 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.8901, allocations: 19.92 kB / 1.028 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.8902, allocations: 75.06 kB / 1.028 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009465/0.8912, allocations: 0.5892 MB / 1.029 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.8913, allocations: 11.94 kB / 1.029 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.8913, allocations: 15.95 kB / 1.029 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/0.8917, allocations: 205.7 kB / 1.029 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.8917, allocations: 4 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.8917, allocations: 0 / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.8917, allocations: 4 kB / 1.029 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.892, allocations: 95.88 kB / 1.029 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.8934, allocations: 1.059 MB / 1.03 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.894, allocations: 281.3 kB / 1.03 GB, free: 7.188 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.29e-05/0.8941, allocations: 7.938 kB / 1.03 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004177/0.8945, allocations: 222 kB / 1.03 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=25): time 1.803e-06/0.8945, allocations: 0 / 1.03 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of matching and sorting (n=25): time 0.0009628/0.8955, allocations: 413.7 kB / 1.031 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.8956, allocations: 166.1 kB / 1.031 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.8969, allocations: 1.032 MB / 1.032 GB, free: 5.289 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.8969, allocations: 33.7 kB / 1.032 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.8972, allocations: 296.8 kB / 1.032 GB, free: 4.953 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.8972, allocations: 79.08 kB / 1.032 GB, free: 4.875 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.8973, allocations: 12 kB / 1.032 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8974, allocations: 333.9 kB / 1.033 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.8978, allocations: 209.2 kB / 1.033 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/0.8982, allocations: 303 kB / 1.033 GB, free: 4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.8986, allocations: 235.3 kB / 1.033 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.8986, allocations: 0 / 1.033 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001067/0.8997, allocations: 0.6702 MB / 1.034 GB, free: 3.102 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.8997, allocations: 4 kB / 1.034 GB, free: 3.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.8997, allocations: 8 kB / 1.034 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.8998, allocations: 4 kB / 1.034 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.9002, allocations: 120 kB / 1.034 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.9002, allocations: 8 kB / 1.034 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.9005, allocations: 43.72 kB / 1.034 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.9005, allocations: 24 kB / 1.034 GB, free: 2.895 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 ($whenCondition5,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition3,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition2,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEvent,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003765/0.9009, allocations: 283.4 kB / 1.035 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.89e-05/0.901, allocations: 75.06 kB / 1.035 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001318/0.9012, allocations: 69.88 kB / 1.035 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.9012, allocations: 8 kB / 1.035 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.9012, allocations: 4 kB / 1.035 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.9012, allocations: 0 / 1.035 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005311/0.9018, allocations: 465.2 kB / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.9018, allocations: 0 / 1.035 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.712e-05/0.9018, allocations: 23.92 kB / 1.035 GB, free: 1.926 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.9019, allocations: 7.938 kB / 1.035 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.9019, allocations: 11.98 kB / 1.035 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.9019, allocations: 4 kB / 1.035 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.9019, allocations: 0 / 1.035 GB, free: 1.902 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007076/0.9026, allocations: 445.7 kB / 1.036 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.9029, allocations: 172.1 kB / 1.036 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.903, allocations: 11.95 kB / 1.036 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.9031, allocations: 15.98 kB / 1.036 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.136e-05/0.9032, allocations: 27.91 kB / 1.036 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.9033, allocations: 15.98 kB / 1.036 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0007464/0.904, allocations: 0.6005 MB / 1.036 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.904, allocations: 0 / 1.036 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004383/0.9045, allocations: 119.9 kB / 1.037 GB, free: 452 kB / 0.7794 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 (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.001209/0.9057, allocations: 486.5 kB / 1.037 GB, free: 144 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007619/0.9065, allocations: 399.5 kB / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9065, allocations: 0 / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.9067, allocations: 111.7 kB / 1.038 GB, free: 15.64 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008814/0.9076, allocations: 187.6 kB / 1.038 GB, free: 15.47 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.9094, allocations: 1.179 MB / 1.039 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.9099, allocations: 0.9445 MB / 1.04 GB, free: 13.28 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002683/0.9102, allocations: 112.8 kB / 1.04 GB, free: 13.17 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.9103, allocations: 59.42 kB / 1.04 GB, free: 13.11 MB / 0.795 GB Notification: Performance of SimCode: time 7.21e-07/0.9103, allocations: 4 kB / 1.04 GB, free: 13.11 MB / 0.795 GB Notification: Performance of Templates: time 0.01323/0.9236, allocations: 7.118 MB / 1.047 GB, free: 6.066 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches