Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001806/0.001806, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 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.002356/0.002356, allocations: 218.5 kB / 22.99 MB, free: 4.945 MB / 14.72 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.255/3.255, allocations: 0.5107 GB / 0.8166 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 62.94 kB / 1.187 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3649, allocations: 181.9 MB / 1.365 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002209/0.3671, allocations: 0.6682 MB / 1.365 GB, free: 12.94 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.3688, allocations: 1.085 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.171e-05/0.3689, allocations: 0 / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.253e-05/0.3689, allocations: 7.922 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.893e-05/0.369, allocations: 3.938 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.3693, allocations: 47.83 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.3694, allocations: 43.86 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.3695, allocations: 15.98 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.353e-05/0.3696, allocations: 15.94 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.645e-05/0.3697, allocations: 23.89 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.3697, allocations: 4 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.3697, allocations: 16 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.647e-05/0.3698, allocations: 15.92 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.753e-05/0.3698, allocations: 15.94 kB / 1.367 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.37, allocations: 63.77 kB / 1.367 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.37, allocations: 0 / 1.367 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.793e-06/0.37, allocations: 3.938 kB / 1.367 GB, free: 11.57 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.37, allocations: 3.938 kB / 1.367 GB, free: 11.56 MB / 1.061 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.0005745/0.3706, allocations: 283.8 kB / 1.367 GB, free: 11.25 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.3706, allocations: 12.02 kB / 1.367 GB, free: 11.24 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.3707, allocations: 8.891 kB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.3709, allocations: 118.4 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.3709, allocations: 384 / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.3709, allocations: 4.375 kB / 1.367 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.3711, allocations: 74.19 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3711, allocations: 192 / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3711, allocations: 3.938 kB / 1.367 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3711, allocations: 4 kB / 1.367 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.3713, allocations: 43.95 kB / 1.367 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000468/0.3718, allocations: 220.5 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.3719, allocations: 50.55 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.372, allocations: 29.97 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.3721, allocations: 4 kB / 1.367 GB, free: 10.62 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/0.3723, allocations: 75.38 kB / 1.367 GB, free: 10.54 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 3.757e-06/0.3723, allocations: 3.984 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.000429/0.3727, allocations: 117.6 kB / 1.368 GB, free: 10.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.3728, allocations: 55.41 kB / 1.368 GB, free: 10.34 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.3729, allocations: 113.8 kB / 1.368 GB, free: 10.22 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.3729, allocations: 25.7 kB / 1.368 GB, free: 10.19 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.964e-05/0.373, allocations: 88.14 kB / 1.368 GB, free: 10.1 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.373, allocations: 23.83 kB / 1.368 GB, free: 10.08 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.3731, allocations: 21.72 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.3732, allocations: 318.8 kB / 1.368 GB, free: 9.73 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.3733, allocations: 23.98 kB / 1.368 GB, free: 9.707 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.3735, allocations: 56.2 kB / 1.368 GB, free: 9.637 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/0.3737, allocations: 96.19 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3737, allocations: 0 / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00028/0.374, allocations: 101.8 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.374, allocations: 8 kB / 1.368 GB, free: 9.414 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.374, allocations: 8.141 kB / 1.368 GB, free: 9.406 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.374, allocations: 11.94 kB / 1.368 GB, free: 9.395 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.3741, allocations: 19.92 kB / 1.369 GB, free: 9.375 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3742, allocations: 4 kB / 1.369 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.3742, allocations: 8.141 kB / 1.369 GB, free: 9.363 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.3742, allocations: 4 kB / 1.369 GB, free: 9.359 MB / 1.061 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.0001019/0.3743, allocations: 125.7 kB / 1.369 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.3744, allocations: 4 kB / 1.369 GB, free: 9.223 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.3746, allocations: 106 kB / 1.369 GB, free: 9.109 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3746, allocations: 4 kB / 1.369 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3747, allocations: 0 / 1.369 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3747, allocations: 0 / 1.369 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000448/0.3751, allocations: 302.1 kB / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3751, allocations: 0 / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.3752, allocations: 15.98 kB / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3752, allocations: 0 / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.3752, allocations: 0 / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3752, allocations: 4 kB / 1.369 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3752, allocations: 0 / 1.369 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.3755, allocations: 195.4 kB / 1.369 GB, free: 8.547 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.248e-05/0.3755, allocations: 3.953 kB / 1.369 GB, free: 8.543 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.3755, allocations: 4 kB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.063e-05/0.3756, allocations: 3.984 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.3756, allocations: 7.984 kB / 1.369 GB, free: 8.527 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3756, allocations: 192 / 1.369 GB, free: 8.527 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.157e-05/0.3757, allocations: 95.22 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3757, allocations: 0 / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000254/0.3759, allocations: 16 kB / 1.369 GB, free: 8.418 MB / 1.061 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.0001565/0.3761, allocations: 99.23 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000286/0.3764, allocations: 71.83 kB / 1.37 GB, free: 8.242 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3764, allocations: 0 / 1.37 GB, free: 8.242 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/0.3765, allocations: 32.28 kB / 1.37 GB, free: 8.211 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3768, allocations: 8 kB / 1.37 GB, free: 8.203 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003865/0.3772, allocations: 167.8 kB / 1.37 GB, free: 8.008 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.474e-05/0.3772, allocations: 68.84 kB / 1.37 GB, free: 7.922 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.3773, allocations: 11.44 kB / 1.37 GB, free: 7.91 MB / 1.061 GB Notification: Performance of SimCode: time 3.91e-07/0.3773, allocations: 3.938 kB / 1.37 GB, free: 7.906 MB / 1.061 GB Notification: Performance of Templates: time 0.002669/0.3799, allocations: 0.9 MB / 1.371 GB, free: 7.012 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.090706070885062]