Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.244/2.244, allocations: 387.1 MB / 399.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 172.5 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 221.3 MB / 0.7871 GB, free: 12.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009063, allocations: 91.89 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.126e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3003, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.068/1.368, allocations: 153.1 MB / 1.362 GB, free: 18.77 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/1.368, allocations: 80.2 kB / 1.362 GB, free: 18.77 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05633/1.425, allocations: 23.73 MB / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.949e-06/1.425, allocations: 0 / 1.385 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.504e-05/1.425, allocations: 19.84 kB / 1.385 GB, free: 29.89 MB / 0.8386 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.001083/1.426, allocations: 0.7741 MB / 1.386 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.426, allocations: 7.656 kB / 1.386 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/1.426, allocations: 73.06 kB / 1.386 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/1.427, allocations: 0.6916 MB / 1.387 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.367e-05/1.427, allocations: 18.5 kB / 1.387 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/1.427, allocations: 7.438 kB / 1.387 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/1.428, allocations: 204.6 kB / 1.387 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/1.428, allocations: 0 / 1.387 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/1.428, allocations: 7.094 kB / 1.387 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/1.428, allocations: 3.781 kB / 1.387 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/1.428, allocations: 100.3 kB / 1.387 GB, free: 28.69 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/1.429, allocations: 1.117 MB / 1.388 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/1.43, allocations: 274 kB / 1.388 GB, free: 27.76 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/1.43, allocations: 98.16 kB / 1.389 GB, free: 27.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/1.43, allocations: 0 / 1.389 GB, free: 27.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/1.43, allocations: 238 kB / 1.389 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 1.323e-06/1.43, allocations: 0 / 1.389 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.0005522/1.431, allocations: 340.6 kB / 1.389 GB, free: 27.46 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/1.431, allocations: 169.1 kB / 1.389 GB, free: 27.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/1.432, allocations: 0.9462 MB / 1.39 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/1.432, allocations: 33.23 kB / 1.39 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/1.432, allocations: 286.5 kB / 1.39 GB, free: 26.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.658e-05/1.432, allocations: 81.16 kB / 1.391 GB, free: 26.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/1.432, allocations: 14.44 kB / 1.391 GB, free: 26.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001376/1.432, allocations: 327.4 kB / 1.391 GB, free: 26.53 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/1.433, allocations: 247.7 kB / 1.391 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003443/1.433, allocations: 343.7 kB / 1.391 GB, free: 26.39 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/1.433, allocations: 274.9 kB / 1.392 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/1.433, allocations: 0 / 1.392 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009233/1.434, allocations: 0.7394 MB / 1.392 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/1.434, allocations: 7.844 kB / 1.392 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/1.434, allocations: 3.953 kB / 1.392 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/1.434, allocations: 7.719 kB / 1.392 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/1.435, allocations: 111.8 kB / 1.393 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/1.435, allocations: 15.83 kB / 1.393 GB, free: 26.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002737/1.435, allocations: 41.61 kB / 1.393 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/1.435, allocations: 45.64 kB / 1.393 GB, free: 26.12 MB / 0.8386 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 () * 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.0001357/1.435, allocations: 151.5 kB / 1.393 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.007e-05/1.435, allocations: 73.72 kB / 1.393 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005645/1.436, allocations: 378.9 kB / 1.393 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.054e-06/1.436, allocations: 7.609 kB / 1.393 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/1.436, allocations: 0 / 1.393 GB, free: 25.86 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.436, allocations: 7.672 kB / 1.393 GB, free: 25.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004484/1.437, allocations: 486 kB / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/1.437, allocations: 3.812 kB / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.277e-05/1.437, allocations: 27.3 kB / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/1.437, allocations: 3.75 kB / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/1.437, allocations: 15.08 kB / 1.394 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/1.437, allocations: 3.844 kB / 1.394 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.437, allocations: 3.953 kB / 1.394 GB, free: 25.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/1.437, allocations: 471.6 kB / 1.394 GB, free: 25.28 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/1.437, allocations: 180.8 kB / 1.394 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.17e-05/1.437, allocations: 6.906 kB / 1.394 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/1.438, allocations: 19.45 kB / 1.394 GB, free: 25.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/1.438, allocations: 23.66 kB / 1.394 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/1.438, allocations: 15.3 kB / 1.394 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0006226/1.438, allocations: 0.6114 MB / 1.395 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.438, allocations: 4 kB / 1.395 GB, free: 24.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004482/1.439, allocations: 150.1 kB / 1.395 GB, free: 24.94 MB / 0.8386 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.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 20 * 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.001068/1.44, allocations: 450.5 kB / 1.396 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005206/1.44, allocations: 406.9 kB / 1.396 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.44, allocations: 0 / 1.396 GB, free: 24.69 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/1.441, allocations: 116.2 kB / 1.396 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/1.441, allocations: 189.9 kB / 1.396 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/1.443, allocations: 0.9093 MB / 1.397 GB, free: 24.24 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/1.443, allocations: 0.9382 MB / 1.398 GB, free: 23.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000273/1.443, allocations: 115.2 kB / 1.398 GB, free: 23.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/1.444, allocations: 65.16 kB / 1.398 GB, free: 23.38 MB / 0.8386 GB Notification: Performance of SimCode: time 3.11e-07/1.444, allocations: 0 / 1.398 GB, free: 23.38 MB / 0.8386 GB Notification: Performance of Templates: time 0.0122/1.456, allocations: 7.693 MB / 1.406 GB, free: 17.33 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches