Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 113.5 kB / 16.42 MB, free: 6.457 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.001244/0.001245, allocations: 185.5 kB / 17.35 MB, free: 5.734 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.488/1.488, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.643/2.643, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 63.89 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156/1.157, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002312/1.16, allocations: 0.6681 MB / 1.168 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001577/1.161, allocations: 1.053 MB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.459e-05/1.161, allocations: 0 / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.334e-05/1.162, allocations: 3.938 kB / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.223e-05/1.162, allocations: 7.938 kB / 1.169 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003588/1.162, allocations: 43.83 kB / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/1.162, allocations: 43.86 kB / 1.169 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/1.162, allocations: 7.984 kB / 1.169 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 9.13e-05/1.162, allocations: 19.92 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.976e-05/1.162, allocations: 19.92 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/1.162, allocations: 4 kB / 1.169 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.481e-05/1.163, allocations: 23.98 kB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/1.163, allocations: 7.984 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.157e-05/1.163, allocations: 19.88 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/1.163, allocations: 59.3 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.163, allocations: 4 kB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.874e-06/1.163, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.161e-05/1.163, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 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.0006496/1.164, allocations: 356.3 kB / 1.17 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/1.164, allocations: 8.922 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/1.164, allocations: 0.9375 kB / 1.17 GB, free: 1.453 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/1.164, allocations: 176.3 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/1.164, allocations: 8.375 kB / 1.17 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/1.164, allocations: 4.375 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/1.164, allocations: 66.16 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/1.164, allocations: 192 / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/1.164, allocations: 3.938 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/1.164, allocations: 0 / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/1.164, allocations: 43.89 kB / 1.17 GB, free: 1.113 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005574/1.165, allocations: 273 kB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/1.165, allocations: 46.48 kB / 1.17 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.924e-05/1.165, allocations: 24.94 kB / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/1.165, allocations: 7.938 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/1.166, allocations: 79.31 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 3.446e-06/1.166, allocations: 3.984 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.0004357/1.166, allocations: 101.6 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/1.166, allocations: 51.41 kB / 1.17 GB, free: 456 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/1.166, allocations: 109.8 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/1.166, allocations: 29.7 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 8.572e-05/1.166, allocations: 88.14 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/1.166, allocations: 11.89 kB / 1.171 GB, free: 196 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/1.166, allocations: 21.72 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002303/1.167, allocations: 318.8 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/1.167, allocations: 20.23 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/1.167, allocations: 55.34 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/1.167, allocations: 75.34 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/1.167, allocations: 3.938 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003028/1.167, allocations: 105.5 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/1.167, allocations: 8 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/1.167, allocations: 0 / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/1.167, allocations: 4 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/1.168, allocations: 11.98 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/1.168, allocations: 0 / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.454e-05/1.168, allocations: 16.05 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/1.168, allocations: 4 kB / 1.171 GB, free: 15.52 MB / 0.9044 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.000107/1.168, allocations: 121.7 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/1.168, allocations: 7.953 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003093/1.168, allocations: 85.61 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1.168, allocations: 4 kB / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/1.168, allocations: 0 / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/1.168, allocations: 81.11 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/1.168, allocations: 0 / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.518e-05/1.168, allocations: 15.92 kB / 1.172 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/1.168, allocations: 7.938 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003078/1.169, allocations: 164.9 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003884/1.169, allocations: 262.7 kB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001467/1.169, allocations: 23.97 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.073e-05/1.169, allocations: 87.28 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of Backend: time 9.02e-07/1.169, allocations: 3.938 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000555/1.17, allocations: 120 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006912/1.171, allocations: 0.584 MB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of Templates: time 0.0044/1.175, allocations: 0.851 MB / 1.174 GB, free: 13.01 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches