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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 116.2 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 183.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.697/2.697, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001529, allocations: 56.09 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.094/1.096, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002241/1.098, allocations: 0.662 MB / 1.209 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001566/1.099, allocations: 1.053 MB / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.041e-05/1.099, allocations: 0 / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.353e-05/1.1, allocations: 3.938 kB / 1.21 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.188e-05/1.1, allocations: 11.92 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/1.1, allocations: 35.84 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000124/1.1, allocations: 47.84 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/1.1, allocations: 8 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.504e-05/1.1, allocations: 23.92 kB / 1.21 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.096e-05/1.1, allocations: 19.91 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/1.1, allocations: 4 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.988e-05/1.101, allocations: 19.92 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/1.101, allocations: 11.98 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.097e-05/1.101, allocations: 19.88 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/1.101, allocations: 47.84 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/1.101, allocations: 0 / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.653e-06/1.101, allocations: 0 / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.021e-06/1.101, allocations: 0 / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005692/1.101, allocations: 363.2 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/1.101, allocations: 8.031 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/1.101, allocations: 8.844 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/1.102, allocations: 166.2 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/1.102, allocations: 384 / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/1.102, allocations: 4.375 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/1.102, allocations: 62.17 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/1.102, allocations: 4.172 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/1.102, allocations: 15.86 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/1.102, allocations: 0 / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/1.102, allocations: 35.97 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/1.103, allocations: 280.8 kB / 1.211 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/1.103, allocations: 54.42 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.31e-05/1.103, allocations: 24.94 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/1.103, allocations: 0 / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/1.103, allocations: 71.39 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 3.868e-06/1.103, allocations: 0 / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0004346/1.104, allocations: 109.6 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/1.104, allocations: 55.41 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/1.104, allocations: 113.8 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/1.104, allocations: 25.7 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.396e-05/1.104, allocations: 95.98 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/1.104, allocations: 11.89 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.34e-05/1.104, allocations: 21.72 kB / 1.212 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001194/1.104, allocations: 314.8 kB / 1.212 GB, free: 9.668 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.646e-05/1.104, allocations: 23.97 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/1.104, allocations: 51.41 kB / 1.212 GB, free: 9.582 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/1.105, allocations: 71.34 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/1.105, allocations: 3.938 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002634/1.105, allocations: 101.5 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/1.105, allocations: 9.875 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/1.105, allocations: 4.125 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/1.105, allocations: 0 / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/1.105, allocations: 19.92 kB / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/1.105, allocations: 0 / 1.212 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.962e-05/1.105, allocations: 11.98 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/1.105, allocations: 4 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (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 (7): * Single equations (assignments): 7 * 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.0001035/1.105, allocations: 117.8 kB / 1.212 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/1.105, allocations: 0 / 1.212 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/1.106, allocations: 97.55 kB / 1.213 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/1.106, allocations: 0 / 1.213 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.106, allocations: 0 / 1.213 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.743e-05/1.106, allocations: 88.95 kB / 1.213 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/1.106, allocations: 0 / 1.213 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/1.106, allocations: 7.984 kB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/1.106, allocations: 3.938 kB / 1.213 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000304/1.106, allocations: 172.9 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003161/1.106, allocations: 259.2 kB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001038/1.107, allocations: 27.98 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.901e-05/1.107, allocations: 83.27 kB / 1.213 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of Backend: time 4.91e-07/1.107, allocations: 4 kB / 1.213 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005265/1.107, allocations: 114.4 kB / 1.213 GB, free: 8.316 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005323/1.108, allocations: 0.5925 MB / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of Templates: time 0.003594/1.111, allocations: 0.8492 MB / 1.215 GB, free: 6.832 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) 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) Reference file matches