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.001083/0.001083, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001555/0.002638, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001092/0.001092, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00145/0.002542, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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 0.9782/0.9782, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1027/1.081, allocations: 53.68 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.347/2.347, allocations: 447.1 MB / 0.675 GB, free: 5.895 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2312/2.578, allocations: 146 MB / 0.8176 GB, free: 3.809 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 3.938 kB / 0.8189 GB, free: 2.516 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.448e-05/1.587e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.512 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001218/0.001234, allocations: 0.7193 MB / 0.8196 GB, free: 1.789 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0009519/0.002186, allocations: 1.127 MB / 0.8207 GB, free: 0.6484 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.734e-05/0.002224, allocations: 0 / 0.8207 GB, free: 0.6484 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.136e-05/0.002245, allocations: 3.938 kB / 0.8207 GB, free: 0.6445 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.625e-05/0.002281, allocations: 3.938 kB / 0.8207 GB, free: 0.6406 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001691/0.00245, allocations: 47.7 kB / 0.8208 GB, free: 0.5938 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 7.595e-05/0.002526, allocations: 51.86 kB / 0.8208 GB, free: 0.543 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 6.994e-05/0.002596, allocations: 11.97 kB / 0.8208 GB, free: 0.5312 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.002678, allocations: 31.92 kB / 0.8208 GB, free: 0.5 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 4.409e-05/0.002723, allocations: 15.95 kB / 0.8209 GB, free: 496 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.002737, allocations: 4 kB / 0.8209 GB, free: 492 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.542e-05/0.002812, allocations: 23.98 kB / 0.8209 GB, free: 468 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.895e-05/0.002831, allocations: 7.938 kB / 0.8209 GB, free: 460 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.079e-05/0.002852, allocations: 8 kB / 0.8209 GB, free: 452 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.002954, allocations: 47.78 kB / 0.821 GB, free: 404 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.002964, allocations: 0 / 0.821 GB, free: 404 kB / 0.7917 GB Notification: Performance of FrontEnd: time 7.21e-07/0.002965, allocations: 0 / 0.821 GB, free: 404 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.002975, allocations: 4 kB / 0.821 GB, free: 400 kB / 0.7917 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.0003852/0.00336, allocations: 272.5 kB / 0.8212 GB, free: 100 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.003392, allocations: 8.031 kB / 0.8212 GB, free: 92 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.003521, allocations: 90.03 kB / 0.8213 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.84e-05/0.003599, allocations: 117.7 kB / 0.8214 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.086e-06/0.003607, allocations: 384 / 0.8214 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.003618, allocations: 4.375 kB / 0.8214 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.618e-05/0.003715, allocations: 74.86 kB / 0.8215 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.00372, allocations: 4.125 kB / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.003727, allocations: 384 / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.003732, allocations: 8.359 kB / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.186e-05/0.003754, allocations: 11.94 kB / 0.8215 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.003986, allocations: 164.3 kB / 0.8217 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.866e-05/0.004054, allocations: 34.52 kB / 0.8217 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.448e-05/0.004069, allocations: 12.84 kB / 0.8217 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.004084, allocations: 0 / 0.8217 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.416e-05/0.004148, allocations: 47.41 kB / 0.8218 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 8.91e-07/0.004149, allocations: 0 / 0.8218 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001032/0.004252, allocations: 65.73 kB / 0.8218 GB, free: 15.37 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.004287, allocations: 59.34 kB / 0.8219 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.673e-05/0.004344, allocations: 114.8 kB / 0.822 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.004356, allocations: 29.7 kB / 0.822 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.85e-05/0.004385, allocations: 84.09 kB / 0.8221 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.004401, allocations: 19.83 kB / 0.8221 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.004431, allocations: 25.7 kB / 0.8221 GB, free: 15 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.004503, allocations: 318.8 kB / 0.8225 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.196e-05/0.004515, allocations: 4.25 kB / 0.8225 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.958e-05/0.004544, allocations: 44.23 kB / 0.8225 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.987e-05/0.004594, allocations: 64.19 kB / 0.8226 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.004596, allocations: 0 / 0.8226 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 6.885e-05/0.004665, allocations: 69.53 kB / 0.8226 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.004676, allocations: 8 kB / 0.8226 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.004681, allocations: 0 / 0.8226 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.004691, allocations: 8.094 kB / 0.8226 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.627e-05/0.004767, allocations: 27.92 kB / 0.8227 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.00477, allocations: 0 / 0.8227 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.455e-05/0.004795, allocations: 4 kB / 0.8227 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.004802, allocations: 4 kB / 0.8227 GB, free: 14.42 MB / 0.8073 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 5.629e-05/0.004858, allocations: 113.8 kB / 0.8228 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/0.004866, allocations: 7.984 kB / 0.8228 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.031e-05/0.004936, allocations: 54.06 kB / 0.8228 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.004939, allocations: 3.938 kB / 0.8228 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.00494, allocations: 0 / 0.8228 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.004943, allocations: 8 kB / 0.8229 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.005093, allocations: 214.7 kB / 0.8231 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.005094, allocations: 0 / 0.8231 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.501e-05/0.005119, allocations: 4 kB / 0.8231 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-06/0.005126, allocations: 7.938 kB / 0.8231 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.005127, allocations: 3.938 kB / 0.8231 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-06/0.005131, allocations: 0 / 0.8231 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.005133, allocations: 0 / 0.8231 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.005135, allocations: 3.984 kB / 0.8231 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.867e-05/0.005203, allocations: 139.7 kB / 0.8232 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.005219, allocations: 12 kB / 0.8232 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.181e-05/0.00525, allocations: 11.98 kB / 0.8232 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.005275, allocations: 0 / 0.8232 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-06/0.005278, allocations: 0 / 0.8232 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.866e-05/0.005296, allocations: 20.83 kB / 0.8233 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005297, allocations: 0 / 0.8233 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001315/0.005428, allocations: 12 kB / 0.8233 GB, free: 13.75 MB / 0.8073 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.0001091/0.005537, allocations: 88.34 kB / 0.8233 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 6.97e-05/0.005607, allocations: 33.17 kB / 0.8234 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.005612, allocations: 8.078 kB / 0.8234 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.03e-05/0.005642, allocations: 16.86 kB / 0.8234 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.005798, allocations: 64.95 kB / 0.8235 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005625/0.006361, allocations: 156.3 kB / 0.8236 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.006607, allocations: 59.22 kB / 0.8237 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.49e-05/0.006632, allocations: 7.984 kB / 0.8237 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.006679, allocations: 59.38 kB / 0.8237 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of SimCode: time 9.52e-07/0.006679, allocations: 0 / 0.8237 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of Templates: time 0.002281/0.00896, allocations: 0.8539 MB / 0.8246 GB, free: 12.36 MB / 0.8073 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.02546089142561]