Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002865/0.002865, allocations: 161.7 kB / 23.54 MB, free: 0.8945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 177.1 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.889/2.889, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.545e-06/2.545e-06, allocations: 0 / 0.8108 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.019e-05/3.273e-05, allocations: 3.312 kB / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001894/0.001926, allocations: 0.6683 MB / 0.8114 GB, free: 1.461 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001649/0.003575, allocations: 1.088 MB / 0.8125 GB, free: 368 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.949e-05/0.003615, allocations: 0.5 kB / 0.8125 GB, free: 368 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.8e-05/0.003643, allocations: 5.219 kB / 0.8125 GB, free: 364 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.778e-05/0.003711, allocations: 3.938 kB / 0.8125 GB, free: 360 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.003997, allocations: 43.77 kB / 0.8126 GB, free: 316 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.004112, allocations: 57.77 kB / 0.8126 GB, free: 260 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 7.811e-05/0.00419, allocations: 8 kB / 0.8126 GB, free: 252 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 8.576e-05/0.004276, allocations: 23.97 kB / 0.8126 GB, free: 228 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 5.225e-05/0.004328, allocations: 19.92 kB / 0.8127 GB, free: 208 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 2.018e-05/0.004349, allocations: 4 kB / 0.8127 GB, free: 204 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 7.03e-05/0.004419, allocations: 25.25 kB / 0.8127 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.004438, allocations: 4 kB / 0.8127 GB, free: 176 kB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 4.659e-05/0.004484, allocations: 23.92 kB / 0.8127 GB, free: 152 kB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.004641, allocations: 63.77 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.004644, allocations: 1.594 kB / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004645, allocations: 0 / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.004648, allocations: 0 / 0.8128 GB, free: 88 kB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005863/0.005234, allocations: 288.3 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.005268, allocations: 8.031 kB / 0.8131 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.005379, allocations: 16.81 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.005501, allocations: 113.7 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.005517, allocations: 4.375 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.005528, allocations: 384 / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.005752, allocations: 63.48 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.005761, allocations: 192 / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.005775, allocations: 4.891 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.005779, allocations: 4.312 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.005986, allocations: 45.47 kB / 0.8133 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.006473, allocations: 221 kB / 0.8135 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.006666, allocations: 51.86 kB / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.006775, allocations: 24.97 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.0068, allocations: 5.156 kB / 0.8136 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.007033, allocations: 79.25 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.007035, allocations: 1.375 kB / 0.8137 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0004991/0.007534, allocations: 119.1 kB / 0.8138 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.007595, allocations: 59.41 kB / 0.8138 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.007721, allocations: 113.8 kB / 0.814 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.007746, allocations: 25.7 kB / 0.814 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.007822, allocations: 93.27 kB / 0.8141 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.956e-05/0.007852, allocations: 15.91 kB / 0.8141 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.007906, allocations: 21.7 kB / 0.8141 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002044/0.00811, allocations: 319.7 kB / 0.8144 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.008229, allocations: 25.47 kB / 0.8144 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.008372, allocations: 56.28 kB / 0.8145 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.008635, allocations: 91.25 kB / 0.8146 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.008638, allocations: 0 / 0.8146 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003283/0.008966, allocations: 119.8 kB / 0.8147 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.008985, allocations: 7.938 kB / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.008991, allocations: 0 / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.009015, allocations: 4 kB / 0.8147 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.009142, allocations: 16.73 kB / 0.8147 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.009152, allocations: 4.469 kB / 0.8147 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.278e-05/0.009235, allocations: 17.86 kB / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.009249, allocations: 4 kB / 0.8147 GB, free: 13.9 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001171/0.009366, allocations: 117.8 kB / 0.8148 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.009394, allocations: 23.81 kB / 0.8149 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.00972, allocations: 99.05 kB / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.009723, allocations: 0.7188 kB / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.009727, allocations: 0 / 0.815 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.00973, allocations: 7.25 kB / 0.815 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005202/0.01025, allocations: 290.2 kB / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.01025, allocations: 0 / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.371e-05/0.01032, allocations: 11.98 kB / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01032, allocations: 0 / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.01033, allocations: 0 / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.01033, allocations: 4 kB / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01033, allocations: 2.312 kB / 0.8153 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.01074, allocations: 207.3 kB / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.01075, allocations: 0 / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.01076, allocations: 0 / 0.8155 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.01086, allocations: 8.922 kB / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.01091, allocations: 8 kB / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.01092, allocations: 3.984 kB / 0.8155 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.725e-05/0.01099, allocations: 84.41 kB / 0.8156 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01099, allocations: 0 / 0.8156 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002661/0.01126, allocations: 15.94 kB / 0.8156 GB, free: 12.97 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001991/0.01146, allocations: 104.3 kB / 0.8157 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002809/0.01174, allocations: 65.92 kB / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01174, allocations: 0 / 0.8157 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.01186, allocations: 37.69 kB / 0.8158 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.01215, allocations: 18.47 kB / 0.8158 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003942/0.01254, allocations: 142.1 kB / 0.8159 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.184e-05/0.01262, allocations: 71.2 kB / 0.816 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.968e-05/0.01265, allocations: 0.5312 kB / 0.816 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.01269, allocations: 12.5 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of SimCode: time 3.11e-07/0.01269, allocations: 1.344 kB / 0.816 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of Templates: time 0.003835/0.01652, allocations: 0.8474 MB / 0.8168 GB, free: 11.67 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.8119957820745185]