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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00128/0.001279, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001225/0.001225, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.433/2.433, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.19 kB / 0.8707 GB, free: 1.383 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3307, allocations: 151.6 MB / 1.019 GB, free: 9.785 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.004205/0.335, allocations: 2.474 MB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002627/0.3377, allocations: 1.571 MB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3379, allocations: 11.88 kB / 1.023 GB, free: 5.699 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006656/0.3386, allocations: 326.8 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005996/0.3392, allocations: 334.6 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.3402, allocations: 446.2 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007922/0.341, allocations: 0.709 MB / 1.025 GB, free: 3.91 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002218/0.3412, allocations: 77.7 kB / 1.025 GB, free: 3.828 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.3416, allocations: 310.8 kB / 1.025 GB, free: 3.523 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003437/0.342, allocations: 326.7 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.342, allocations: 28 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000203/0.3422, allocations: 95.89 kB / 1.025 GB, free: 3.082 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002053/0.3424, allocations: 191.3 kB / 1.026 GB, free: 2.895 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.3427, allocations: 278.1 kB / 1.026 GB, free: 2.621 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.3434, allocations: 0.7356 MB / 1.026 GB, free: 1.883 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3434, allocations: 3.938 kB / 1.026 GB, free: 1.879 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3434, allocations: 4 kB / 1.026 GB, free: 1.875 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.3434, allocations: 0 / 1.026 GB, free: 1.875 MB / 0.795 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.001489/0.3449, allocations: 0.9989 MB / 1.027 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.345, allocations: 8.922 kB / 1.027 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.3451, allocations: 76 kB / 1.028 GB, free: 0.7422 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009495/0.3461, allocations: 0.625 MB / 1.028 GB, free: 76 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.3461, allocations: 12.38 kB / 1.028 GB, free: 64 kB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.052e-05/0.3461, allocations: 15.94 kB / 1.028 GB, free: 48 kB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.3465, allocations: 202.8 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3466, allocations: 0 / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.3466, allocations: 4 kB / 1.028 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.3466, allocations: 11.98 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.3469, allocations: 95.88 kB / 1.028 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.3482, allocations: 1.056 MB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005675/0.3488, allocations: 277 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.349, allocations: 104.2 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.3491, allocations: 7.938 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003867/0.3495, allocations: 234.4 kB / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/0.3495, allocations: 0 / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.0009565/0.3504, allocations: 417.7 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.465e-05/0.3505, allocations: 166.2 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.3517, allocations: 1.028 MB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.3517, allocations: 41.7 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.352, allocations: 288.8 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.386e-05/0.3521, allocations: 79.08 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.3523, allocations: 134.2 kB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3524, allocations: 330 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.3528, allocations: 213.3 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.3532, allocations: 315 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006285/0.3538, allocations: 412.8 kB / 1.033 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3539, allocations: 0 / 1.033 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001073/0.3549, allocations: 0.6682 MB / 1.034 GB, free: 9.734 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.355, allocations: 10.66 kB / 1.034 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.355, allocations: 0 / 1.034 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.355, allocations: 8 kB / 1.034 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/0.3554, allocations: 115.8 kB / 1.034 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.3554, allocations: 15.86 kB / 1.034 GB, free: 9.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.3557, allocations: 39.77 kB / 1.034 GB, free: 9.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.8e-05/0.3558, allocations: 27.98 kB / 1.034 GB, free: 9.523 MB / 0.8106 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.0003144/0.3561, allocations: 277.7 kB / 1.035 GB, free: 9.242 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3562, allocations: 79 kB / 1.035 GB, free: 9.164 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.3563, allocations: 69.89 kB / 1.035 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3564, allocations: 4 kB / 1.035 GB, free: 9.09 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.3564, allocations: 3.938 kB / 1.035 GB, free: 9.086 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3564, allocations: 7.984 kB / 1.035 GB, free: 9.078 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000489/0.3569, allocations: 461.1 kB / 1.035 GB, free: 8.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3569, allocations: 0 / 1.035 GB, free: 8.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.357, allocations: 19.98 kB / 1.035 GB, free: 8.559 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.357, allocations: 4 kB / 1.035 GB, free: 8.555 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.357, allocations: 12 kB / 1.035 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.357, allocations: 3.938 kB / 1.035 GB, free: 8.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-05/0.357, allocations: 15.92 kB / 1.035 GB, free: 8.523 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.3577, allocations: 387.4 kB / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.3579, allocations: 160.1 kB / 1.036 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.393e-05/0.358, allocations: 11.98 kB / 1.036 GB, free: 7.926 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001601/0.3582, allocations: 15.98 kB / 1.036 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.3582, allocations: 31.84 kB / 1.036 GB, free: 7.879 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.583e-05/0.3583, allocations: 12 kB / 1.036 GB, free: 7.867 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006526/0.3589, allocations: 0.6005 MB / 1.036 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3589, allocations: 4 kB / 1.036 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003915/0.3593, allocations: 120 kB / 1.036 GB, free: 7.148 MB / 0.8106 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.001151/0.3605, allocations: 484.2 kB / 1.037 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007395/0.3612, allocations: 396.6 kB / 1.037 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3612, allocations: 4 kB / 1.037 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.3615, allocations: 107.8 kB / 1.037 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008526/0.3624, allocations: 227.5 kB / 1.038 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.3638, allocations: 1.083 MB / 1.039 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3643, allocations: 0.9285 MB / 1.04 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002317/0.3645, allocations: 108.9 kB / 1.04 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.3647, allocations: 63.42 kB / 1.04 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.3647, allocations: 0 / 1.04 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of Templates: time 0.01319/0.3779, allocations: 7.749 MB / 1.047 GB, free: 12.25 MB / 0.8262 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 -s gbode -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/jenkins1/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