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.001482/0.001482, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001588/0.001588, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.674/1.674, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.981/2.981, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 61.31 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3375, allocations: 157.4 MB / 1.052 GB, free: 8.824 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001956/0.3395, allocations: 0.7287 MB / 1.053 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.3409, allocations: 1.065 MB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.278e-05/0.3409, allocations: 0 / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.805e-05/0.3409, allocations: 0 / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.558e-05/0.341, allocations: 11.94 kB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.3413, allocations: 31.91 kB / 1.054 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.238e-05/0.3414, allocations: 39.91 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.399e-05/0.3415, allocations: 8 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.591e-05/0.3415, allocations: 19.91 kB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.656e-05/0.3416, allocations: 19.92 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.3416, allocations: 4 kB / 1.054 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.3417, allocations: 15.92 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.708e-05/0.3417, allocations: 8 kB / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.648e-05/0.3418, allocations: 27.84 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.3419, allocations: 47.86 kB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3419, allocations: 0 / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3419, allocations: 0 / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.3419, allocations: 0 / 1.054 GB, free: 6.785 MB / 0.8106 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.0005719/0.3425, allocations: 355.6 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3426, allocations: 8.031 kB / 1.054 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.3426, allocations: 4.938 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.3428, allocations: 176.2 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.3428, allocations: 4.375 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.3428, allocations: 4.375 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.343, allocations: 54.23 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.343, allocations: 192 / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3431, allocations: 7.938 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3431, allocations: 7.938 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.3433, allocations: 39.94 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.3438, allocations: 280.9 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.344, allocations: 42.5 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.3441, allocations: 28.92 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.3441, allocations: 4 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.3444, allocations: 75.27 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 2.044e-06/0.3444, allocations: 0 / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.00047/0.3448, allocations: 105.5 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.3449, allocations: 51.41 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.345, allocations: 113.8 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.3451, allocations: 29.7 kB / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.3451, allocations: 80.14 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.3452, allocations: 19.75 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.702e-05/0.3452, allocations: 25.64 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3454, allocations: 318.8 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.3455, allocations: 19.97 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.3456, allocations: 51.42 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.3459, allocations: 83.27 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3459, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002832/0.3462, allocations: 93.58 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3462, allocations: 4 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3462, allocations: 4.25 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3462, allocations: 0 / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.3463, allocations: 19.98 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.3464, allocations: 12.06 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.238e-05/0.3464, allocations: 11.84 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.3465, allocations: 4 kB / 1.056 GB, free: 4.438 MB / 0.8106 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 9.42e-05/0.3466, allocations: 119.3 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.3466, allocations: 4 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.3469, allocations: 85.62 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3469, allocations: 7.984 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.3469, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3469, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004515/0.3474, allocations: 342.4 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3474, allocations: 0 / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/0.3474, allocations: 7.984 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3475, allocations: 4 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3475, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3475, allocations: 4 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3475, allocations: 0 / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.3478, allocations: 187.3 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.3479, allocations: 89.03 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.3479, allocations: 0 / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-05/0.348, allocations: 4 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.348, allocations: 11.98 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.348, allocations: 4.125 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.628e-05/0.3481, allocations: 83.28 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3481, allocations: 4 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002527/0.3483, allocations: 15.98 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001544/0.3485, allocations: 95.25 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002766/0.3488, allocations: 71.89 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3488, allocations: 3.938 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.3489, allocations: 27.97 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.3492, allocations: 5.203 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.3496, allocations: 147.9 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3499, allocations: 0.6848 MB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.266e-05/0.3499, allocations: 4 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.35, allocations: 7.438 kB / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.35, allocations: 0 / 1.058 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of Templates: time 0.003089/0.3531, allocations: 0.665 MB / 1.059 GB, free: 1.617 MB / 0.8106 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/jenkins/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