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.001267/0.001267, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00169/0.002956, allocations: 435.8 kB / 10.33 MB, free: 368 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.001142/0.001142, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00144/0.002582, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 1.012/1.012, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1221/1.134, allocations: 53.66 MB / 243.2 MB, free: 15.59 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.551/2.551, allocations: 446.7 MB / 0.6745 GB, free: 6.238 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.3058/2.857, allocations: 145.9 MB / 0.817 GB, free: 4.238 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.573e-06/1.573e-06, allocations: 0 / 0.8183 GB, free: 2.945 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.059e-05/1.216e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.941 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001021/0.001034, allocations: 0.7169 MB / 0.819 GB, free: 2.219 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.002045, allocations: 1.127 MB / 0.8201 GB, free: 1.078 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.663e-05/0.002082, allocations: 0 / 0.8201 GB, free: 1.078 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.224e-05/0.002104, allocations: 3.938 kB / 0.8201 GB, free: 1.074 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.753e-05/0.002142, allocations: 11.88 kB / 0.8201 GB, free: 1.062 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.00228, allocations: 39.77 kB / 0.8201 GB, free: 1.023 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 7.91e-05/0.002359, allocations: 47.86 kB / 0.8202 GB, free: 0.9766 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.844e-05/0.002438, allocations: 7.984 kB / 0.8202 GB, free: 0.9688 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 8.549e-05/0.002523, allocations: 35.91 kB / 0.8202 GB, free: 0.9336 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/0.002571, allocations: 19.97 kB / 0.8202 GB, free: 0.9141 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.002587, allocations: 8 kB / 0.8202 GB, free: 0.9062 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-05/0.002667, allocations: 19.92 kB / 0.8203 GB, free: 0.8867 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/0.002685, allocations: 11.94 kB / 0.8203 GB, free: 0.875 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.474e-05/0.00271, allocations: 8 kB / 0.8203 GB, free: 0.8672 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.002821, allocations: 47.83 kB / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.353e-05/0.002834, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of FrontEnd: time 6.01e-07/0.002835, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.391e-05/0.002849, allocations: 0 / 0.8203 GB, free: 0.8203 MB / 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.0004291/0.003278, allocations: 268.5 kB / 0.8206 GB, free: 0.5312 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.003313, allocations: 8.625 kB / 0.8206 GB, free: 0.5234 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.003437, allocations: 90.03 kB / 0.8207 GB, free: 428 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.003521, allocations: 113.7 kB / 0.8208 GB, free: 288 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.003536, allocations: 4.375 kB / 0.8208 GB, free: 284 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.00355, allocations: 12.31 kB / 0.8208 GB, free: 272 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.772e-05/0.003648, allocations: 54.94 kB / 0.8209 GB, free: 208 kB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.003654, allocations: 4.125 kB / 0.8209 GB, free: 204 kB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.003664, allocations: 4.375 kB / 0.8209 GB, free: 200 kB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.003669, allocations: 384 / 0.8209 GB, free: 200 kB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.623e-05/0.003695, allocations: 15.92 kB / 0.8209 GB, free: 184 kB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002575/0.003952, allocations: 164.3 kB / 0.821 GB, free: 4 kB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 7.999e-05/0.004032, allocations: 42.62 kB / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.004047, allocations: 12.8 kB / 0.8211 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.00407, allocations: 0 / 0.8211 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.035e-05/0.004141, allocations: 55.53 kB / 0.8211 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.694e-06/0.004142, allocations: 0 / 0.8211 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001195/0.004262, allocations: 61.55 kB / 0.8212 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.004304, allocations: 51.41 kB / 0.8213 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.725e-05/0.004371, allocations: 114.9 kB / 0.8214 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.004385, allocations: 25.7 kB / 0.8214 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.004419, allocations: 92.09 kB / 0.8215 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.00444, allocations: 19.83 kB / 0.8215 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/0.00447, allocations: 25.69 kB / 0.8215 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.004553, allocations: 314.8 kB / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.376e-05/0.004567, allocations: 7.984 kB / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.056e-05/0.004597, allocations: 40.28 kB / 0.8219 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.093e-05/0.004648, allocations: 52.2 kB / 0.8219 GB, free: 15 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.004651, allocations: 8 kB / 0.8219 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9) (initialization): time 6.916e-05/0.00472, allocations: 65.56 kB / 0.822 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.004733, allocations: 4 kB / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.004738, allocations: 3.984 kB / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.00475, allocations: 7.938 kB / 0.822 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.768e-05/0.004828, allocations: 15.94 kB / 0.822 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.004833, allocations: 12.05 kB / 0.822 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.374e-05/0.004857, allocations: 4.156 kB / 0.822 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.004864, allocations: 8 kB / 0.822 GB, free: 14.86 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.992e-05/0.004924, allocations: 112.8 kB / 0.8221 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-06/0.00493, allocations: 4.25 kB / 0.8221 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.69e-05/0.005017, allocations: 70.03 kB / 0.8222 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.005019, allocations: 3.938 kB / 0.8222 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.005021, allocations: 0 / 0.8222 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.005025, allocations: 0 / 0.8222 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.005502, allocations: 214.7 kB / 0.8224 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.005505, allocations: 3.984 kB / 0.8224 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.444e-05/0.005529, allocations: 7.938 kB / 0.8224 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-06/0.005535, allocations: 11.94 kB / 0.8224 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.005536, allocations: 0 / 0.8224 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-06/0.00554, allocations: 0 / 0.8224 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.005543, allocations: 4 kB / 0.8224 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.005544, allocations: 0 / 0.8224 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.75e-05/0.005612, allocations: 143.5 kB / 0.8226 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.005625, allocations: 3.938 kB / 0.8226 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.878e-05/0.005654, allocations: 4 kB / 0.8226 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.005687, allocations: 7.984 kB / 0.8226 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.00569, allocations: 0 / 0.8226 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.323e-05/0.005703, allocations: 20.84 kB / 0.8226 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.005703, allocations: 3.938 kB / 0.8226 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001252/0.005828, allocations: 12 kB / 0.8226 GB, free: 14.19 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 9.846e-05/0.005927, allocations: 76.42 kB / 0.8227 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.544e-05/0.006002, allocations: 40.77 kB / 0.8227 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.006009, allocations: 8 kB / 0.8228 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.253e-05/0.006031, allocations: 16.84 kB / 0.8228 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.006157, allocations: 12.62 kB / 0.8228 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005712/0.006728, allocations: 156.4 kB / 0.8229 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.607e-05/0.006765, allocations: 63.2 kB / 0.823 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.077e-05/0.006785, allocations: 4 kB / 0.823 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.823e-05/0.006834, allocations: 59.36 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of SimCode: time 6.91e-07/0.006834, allocations: 3.938 kB / 0.8231 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of Templates: time 0.00229/0.009125, allocations: 0.8793 MB / 0.8239 GB, free: 12.84 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.335850294679403]