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.001409/0.00141, 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.001699/0.001699, 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.556/1.556, allocations: 222.9 MB / 241 MB, free: 15.17 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.688/2.688, allocations: 437 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.89 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.069/1.071, allocations: 151.6 MB / 1.167 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001917/1.073, allocations: 0.6758 MB / 1.168 GB, free: 3.234 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001326/1.074, allocations: 1.053 MB / 1.169 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.489e-05/1.074, allocations: 0 / 1.169 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.718e-05/1.074, allocations: 3.938 kB / 1.169 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.734e-05/1.074, allocations: 7.938 kB / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003425/1.074, allocations: 39.83 kB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/1.075, allocations: 39.86 kB / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/1.075, allocations: 15.98 kB / 1.169 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.544e-05/1.075, allocations: 8 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.165e-05/1.075, allocations: 39.83 kB / 1.169 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/1.075, allocations: 4 kB / 1.169 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.649e-05/1.075, allocations: 19.92 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/1.075, allocations: 4 kB / 1.169 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.496e-05/1.075, allocations: 27.86 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001561/1.075, allocations: 43.86 kB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/1.075, allocations: 0 / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.865e-06/1.075, allocations: 0 / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.606e-06/1.075, allocations: 0 / 1.169 GB, free: 1.918 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.0007182/1.076, allocations: 363.2 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/1.076, allocations: 8.922 kB / 1.17 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/1.076, allocations: 8.844 kB / 1.17 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/1.076, allocations: 166.2 kB / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/1.076, allocations: 4.375 kB / 1.17 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/1.076, allocations: 4.375 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/1.077, allocations: 58.17 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/1.077, allocations: 192 / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/1.077, allocations: 3.938 kB / 1.17 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/1.077, allocations: 11.94 kB / 1.17 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/1.077, allocations: 39.95 kB / 1.17 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/1.077, allocations: 272.9 kB / 1.17 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001529/1.078, allocations: 54.41 kB / 1.17 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/1.078, allocations: 28.94 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/1.078, allocations: 7.969 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/1.078, allocations: 67.39 kB / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/1.078, allocations: 0 / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.0004283/1.078, allocations: 105.6 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/1.078, allocations: 55.39 kB / 1.17 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/1.079, allocations: 105.9 kB / 1.171 GB, free: 400 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/1.079, allocations: 33.64 kB / 1.171 GB, free: 360 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/1.079, allocations: 91.97 kB / 1.171 GB, free: 264 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/1.079, allocations: 11.91 kB / 1.171 GB, free: 252 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.02e-05/1.079, allocations: 17.72 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001721/1.079, allocations: 318.8 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.719e-05/1.079, allocations: 23.98 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/1.079, allocations: 51.41 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/1.079, allocations: 75.33 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/1.079, allocations: 3.938 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002456/1.08, allocations: 97.5 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/1.08, allocations: 4 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/1.08, allocations: 128 / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.08, allocations: 8 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/1.08, allocations: 19.92 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/1.08, allocations: 4 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.371e-05/1.08, allocations: 7.984 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/1.08, allocations: 4.469 kB / 1.171 GB, free: 15.58 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.0001074/1.08, allocations: 113.8 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/1.08, allocations: 4 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002874/1.08, allocations: 101.8 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/1.08, allocations: 0 / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/1.08, allocations: 0 / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.577e-05/1.08, allocations: 84.95 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/1.08, allocations: 7.984 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.891e-05/1.081, allocations: 4 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/1.081, allocations: 11.92 kB / 1.172 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002946/1.081, allocations: 164.9 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002951/1.081, allocations: 258.7 kB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000101/1.081, allocations: 27.97 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.371e-05/1.081, allocations: 87.27 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of Backend: time 5.51e-07/1.081, allocations: 4 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005431/1.082, allocations: 120.5 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0006425/1.083, allocations: 0.577 MB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of Templates: time 0.003965/1.087, allocations: 0.8472 MB / 1.174 GB, free: 13.08 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