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.001177/0.001177, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00151/0.002687, allocations: 449.7 kB / 10.37 MB, free: 328 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.001027/0.001027, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001242/0.002269, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9743/0.9743, allocations: 177.2 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09511/1.069, allocations: 53.65 MB / 243.3 MB, free: 15.6 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.977/1.977, allocations: 378.2 MB / 0.6076 GB, free: 7.828 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5468/2.523, allocations: 123.3 MB / 0.728 GB, free: 5.816 MB / 0.698 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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 1.634e-06/1.634e-06, allocations: 0.5469 kB / 0.7293 GB, free: 4.543 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.373e-05/1.536e-05, allocations: 6.25 kB / 0.7293 GB, free: 4.535 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.00159/0.001605, allocations: 0.7121 MB / 0.73 GB, free: 3.844 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.002993, allocations: 1.119 MB / 0.7311 GB, free: 2.719 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.126e-05/0.003034, allocations: 0.6875 kB / 0.7311 GB, free: 2.719 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.416e-05/0.003059, allocations: 3.938 kB / 0.7311 GB, free: 2.715 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.453e-05/0.003103, allocations: 12.2 kB / 0.7311 GB, free: 2.707 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.003285, allocations: 48.39 kB / 0.7312 GB, free: 2.66 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.003389, allocations: 43.64 kB / 0.7312 GB, free: 2.625 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.468e-05/0.003473, allocations: 15.36 kB / 0.7312 GB, free: 2.613 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.003581, allocations: 33.39 kB / 0.7313 GB, free: 2.582 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.946e-05/0.00364, allocations: 18.17 kB / 0.7313 GB, free: 2.566 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.003657, allocations: 4 kB / 0.7313 GB, free: 2.562 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 9.457e-05/0.003752, allocations: 20.75 kB / 0.7313 GB, free: 2.543 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.921e-05/0.003771, allocations: 5.969 kB / 0.7313 GB, free: 2.539 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.182e-05/0.003803, allocations: 15.06 kB / 0.7313 GB, free: 2.527 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.003938, allocations: 49.3 kB / 0.7314 GB, free: 2.48 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.605e-05/0.003954, allocations: 0 / 0.7314 GB, free: 2.48 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.41e-07/0.003954, allocations: 0 / 0.7314 GB, free: 2.48 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.701e-05/0.003971, allocations: 0 / 0.7314 GB, free: 2.48 MB / 0.698 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.0004813/0.004453, allocations: 265 kB / 0.7316 GB, free: 2.195 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.004492, allocations: 13.47 kB / 0.7316 GB, free: 2.184 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.004628, allocations: 82.05 kB / 0.7317 GB, free: 2.086 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.004733, allocations: 121.7 kB / 0.7318 GB, free: 1.941 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.004745, allocations: 4.375 kB / 0.7318 GB, free: 1.938 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.004756, allocations: 5.031 kB / 0.7318 GB, free: 1.934 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.004883, allocations: 63.62 kB / 0.7319 GB, free: 1.863 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.004891, allocations: 192 / 0.7319 GB, free: 1.863 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-06/0.004898, allocations: 2.094 kB / 0.7319 GB, free: 1.863 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.004905, allocations: 4.375 kB / 0.7319 GB, free: 1.859 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.486e-05/0.00494, allocations: 11.88 kB / 0.7319 GB, free: 1.848 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003155/0.005256, allocations: 164.3 kB / 0.7321 GB, free: 1.672 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 7.758e-05/0.005333, allocations: 35.38 kB / 0.7321 GB, free: 1.629 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.917e-05/0.005353, allocations: 9.359 kB / 0.7321 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.005373, allocations: 0.75 kB / 0.7321 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/0.005477, allocations: 67.39 kB / 0.7322 GB, free: 1.539 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.402e-06/0.005478, allocations: 0.6875 kB / 0.7322 GB, free: 1.539 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0001348/0.005613, allocations: 61.56 kB / 0.7322 GB, free: 1.473 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.005664, allocations: 60.48 kB / 0.7323 GB, free: 1.402 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.887e-05/0.005743, allocations: 110.7 kB / 0.7324 GB, free: 1.281 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.005758, allocations: 26.58 kB / 0.7324 GB, free: 1.25 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.005803, allocations: 96.03 kB / 0.7325 GB, free: 1.152 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.005825, allocations: 15.83 kB / 0.7325 GB, free: 1.137 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.005865, allocations: 26.33 kB / 0.7326 GB, free: 1.105 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.005962, allocations: 315.5 kB / 0.7329 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.717e-05/0.005979, allocations: 8 kB / 0.7329 GB, free: 0.7812 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.037e-05/0.006039, allocations: 42.02 kB / 0.7329 GB, free: 0.7266 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.678e-05/0.006106, allocations: 48.81 kB / 0.7329 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.006109, allocations: 1 kB / 0.7329 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000102/0.006211, allocations: 70.08 kB / 0.733 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.006226, allocations: 11.47 kB / 0.733 GB, free: 0.582 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.006231, allocations: 0 / 0.733 GB, free: 0.582 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.006244, allocations: 7.938 kB / 0.733 GB, free: 0.5742 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.006346, allocations: 16.7 kB / 0.7331 GB, free: 0.5586 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.006354, allocations: 7.938 kB / 0.7331 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.973e-05/0.006393, allocations: 8.516 kB / 0.7331 GB, free: 0.543 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.006403, allocations: 4.938 kB / 0.7331 GB, free: 0.5391 MB / 0.698 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 8.27e-05/0.006485, allocations: 109.8 kB / 0.7332 GB, free: 432 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.006496, allocations: 4.875 kB / 0.7332 GB, free: 428 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.724e-05/0.006594, allocations: 54.11 kB / 0.7332 GB, free: 364 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.006598, allocations: 9.156 kB / 0.7332 GB, free: 356 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.0066, allocations: 0 / 0.7332 GB, free: 356 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.006603, allocations: 0 / 0.7332 GB, free: 356 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.006795, allocations: 212.4 kB / 0.7334 GB, free: 120 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.006796, allocations: 0 / 0.7334 GB, free: 120 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.034e-05/0.006837, allocations: 8.359 kB / 0.7335 GB, free: 112 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.094e-05/0.006848, allocations: 11.92 kB / 0.7335 GB, free: 100 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.00685, allocations: 0 / 0.7335 GB, free: 100 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.006857, allocations: 5.156 kB / 0.7335 GB, free: 96 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.006859, allocations: 0 / 0.7335 GB, free: 96 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.00686, allocations: 0 / 0.7335 GB, free: 96 kB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/0.007006, allocations: 156.5 kB / 0.7336 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.007023, allocations: 3.938 kB / 0.7336 GB, free: 15.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.653e-05/0.00708, allocations: 7.938 kB / 0.7336 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.007109, allocations: 8.672 kB / 0.7336 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.007115, allocations: 4 kB / 0.7336 GB, free: 15.9 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.417e-05/0.007129, allocations: 9.891 kB / 0.7337 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8e-08/0.007129, allocations: 0 / 0.7337 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002145/0.007344, allocations: 12.81 kB / 0.7337 GB, free: 15.88 MB / 0.7136 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.000116/0.00746, allocations: 92.42 kB / 0.7338 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.66e-05/0.007557, allocations: 32.78 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.007561, allocations: 1.031 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.204e-05/0.007593, allocations: 24.78 kB / 0.7338 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001874/0.007781, allocations: 16.55 kB / 0.7338 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007939/0.008575, allocations: 146.2 kB / 0.734 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.284e-05/0.008618, allocations: 59.34 kB / 0.734 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.612e-05/0.008644, allocations: 1.25 kB / 0.734 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.008697, allocations: 55.38 kB / 0.7341 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of SimCode: time 9.81e-07/0.008698, allocations: 2.75 kB / 0.7341 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of Templates: time 0.003118/0.01182, allocations: 0.8901 MB / 0.7349 GB, free: 14.57 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay/Buildings_12_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: 4.939951200969517]