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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001462/0.001462, allocations: 113.3 kB / 16.42 MB, free: 6.465 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.001677/0.001677, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.443/1.443, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.933/2.933, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 67.89 kB / 1.07 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.199/1.201, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002997/1.204, allocations: 0.668 MB / 1.227 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002305/1.206, allocations: 1.053 MB / 1.228 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.262e-05/1.206, allocations: 0 / 1.228 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.616e-05/1.206, allocations: 7.875 kB / 1.228 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001522/1.207, allocations: 3.938 kB / 1.228 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/1.207, allocations: 43.84 kB / 1.228 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000158/1.207, allocations: 39.91 kB / 1.228 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/1.207, allocations: 11.98 kB / 1.228 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/1.208, allocations: 23.86 kB / 1.228 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.35e-05/1.208, allocations: 19.92 kB / 1.228 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/1.208, allocations: 4 kB / 1.228 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/1.208, allocations: 19.98 kB / 1.228 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/1.208, allocations: 7.984 kB / 1.228 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.853e-05/1.208, allocations: 23.86 kB / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002112/1.208, allocations: 47.38 kB / 1.228 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.485e-05/1.208, allocations: 7.984 kB / 1.228 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.074e-06/1.208, allocations: 4 kB / 1.228 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.208, allocations: 0 / 1.228 GB, free: 11.55 MB / 0.9512 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.0008395/1.209, allocations: 348.3 kB / 1.229 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/1.209, allocations: 15.97 kB / 1.229 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/1.209, allocations: 0.9375 kB / 1.229 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/1.209, allocations: 176.3 kB / 1.229 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/1.209, allocations: 8.375 kB / 1.229 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/1.209, allocations: 4.375 kB / 1.229 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/1.21, allocations: 58.17 kB / 1.229 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/1.21, allocations: 192 / 1.229 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/1.21, allocations: 7.938 kB / 1.229 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/1.21, allocations: 0 / 1.229 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/1.21, allocations: 39.95 kB / 1.229 GB, free: 10.81 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007134/1.211, allocations: 272.9 kB / 1.229 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/1.211, allocations: 50.42 kB / 1.229 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/1.211, allocations: 28.92 kB / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.72e-05/1.211, allocations: 4 kB / 1.229 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003188/1.211, allocations: 75.34 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=5): time 2.866e-06/1.211, allocations: 0 / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.0005377/1.212, allocations: 105.6 kB / 1.229 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/1.212, allocations: 51.41 kB / 1.229 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/1.212, allocations: 109.8 kB / 1.23 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/1.212, allocations: 25.7 kB / 1.23 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.009e-05/1.212, allocations: 92.09 kB / 1.23 GB, free: 9.902 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/1.212, allocations: 7.953 kB / 1.23 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/1.213, allocations: 29.69 kB / 1.23 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001988/1.213, allocations: 314.8 kB / 1.23 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/1.213, allocations: 23.97 kB / 1.23 GB, free: 9.52 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/1.213, allocations: 47.42 kB / 1.23 GB, free: 9.461 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/1.213, allocations: 75.33 kB / 1.23 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/1.213, allocations: 3.938 kB / 1.23 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003014/1.214, allocations: 101.5 kB / 1.23 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/1.214, allocations: 8 kB / 1.23 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/1.214, allocations: 0 / 1.23 GB, free: 9.258 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/1.214, allocations: 3.984 kB / 1.23 GB, free: 9.254 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/1.214, allocations: 16.19 kB / 1.23 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/1.214, allocations: 3.984 kB / 1.23 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/1.214, allocations: 16.06 kB / 1.23 GB, free: 9.219 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/1.214, allocations: 4 kB / 1.23 GB, free: 9.215 MB / 0.9512 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.0001431/1.214, allocations: 117.8 kB / 1.23 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.249e-05/1.214, allocations: 7.938 kB / 1.23 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/1.214, allocations: 93.5 kB / 1.231 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/1.214, allocations: 0 / 1.231 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/1.214, allocations: 4 kB / 1.231 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/1.214, allocations: 81.09 kB / 1.231 GB, free: 8.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/1.215, allocations: 4 kB / 1.231 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.233e-05/1.215, allocations: 8 kB / 1.231 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/1.215, allocations: 11.92 kB / 1.231 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002908/1.215, allocations: 164.9 kB / 1.231 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003383/1.215, allocations: 266.6 kB / 1.231 GB, free: 8.41 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001025/1.215, allocations: 23.97 kB / 1.231 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.695e-05/1.216, allocations: 95.72 kB / 1.231 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of Backend: time 7.22e-07/1.216, allocations: 0 / 1.231 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000521/1.216, allocations: 117 kB / 1.231 GB, free: 8.176 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007383/1.217, allocations: 0.591 MB / 1.232 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of Templates: time 0.003923/1.221, allocations: 0.8451 MB / 1.233 GB, free: 6.703 MB / 0.9512 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