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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009855/0.0009855, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001258/0.001258, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 223.3 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.008/3.008, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005568/0.0005572, allocations: 8.719 kB / 0.9021 GB, free: 36.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.369, allocations: 159.6 MB / 1.058 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.0009249/0.37, allocations: 387.3 kB / 1.058 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001375/0.3714, allocations: 1.038 MB / 1.059 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.648e-05/0.3715, allocations: 0 / 1.059 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.943e-05/0.3715, allocations: 3.938 kB / 1.059 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.245e-05/0.3716, allocations: 0 / 1.059 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.3719, allocations: 35.89 kB / 1.059 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.482e-05/0.372, allocations: 43.86 kB / 1.059 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.445e-05/0.3721, allocations: 4 kB / 1.059 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.537e-05/0.3721, allocations: 15.98 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.235e-05/0.3722, allocations: 19.91 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.3722, allocations: 0 / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.3723, allocations: 19.92 kB / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.841e-05/0.3723, allocations: 7.984 kB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.119e-05/0.3724, allocations: 33.7 kB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.631e-05/0.3725, allocations: 27.92 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3725, allocations: 4 kB / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3725, allocations: 0 / 1.06 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.3725, allocations: 0 / 1.06 GB, free: 3.672 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.0005422/0.373, allocations: 355.4 kB / 1.06 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3731, allocations: 16.02 kB / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.3731, allocations: 0 / 1.06 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.3733, allocations: 171 kB / 1.06 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3733, allocations: 8 kB / 1.06 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.3733, allocations: 7.953 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.3735, allocations: 65.66 kB / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3735, allocations: 0 / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.3736, allocations: 0 / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.3736, allocations: 0 / 1.06 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.3737, allocations: 51.95 kB / 1.06 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004469/0.3742, allocations: 288.7 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.3743, allocations: 46.56 kB / 1.061 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.7e-05/0.3745, allocations: 32.92 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3745, allocations: 4 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001964/0.3747, allocations: 79.39 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.3747, allocations: 0 / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0003759/0.3751, allocations: 121.6 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.3751, allocations: 55.41 kB / 1.061 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.934e-05/0.3752, allocations: 109.8 kB / 1.061 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.488e-05/0.3753, allocations: 29.64 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.3753, allocations: 92.05 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.3753, allocations: 3.906 kB / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-06/0.3753, allocations: 0 / 1.061 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.3754, allocations: 330.8 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.386e-05/0.3755, allocations: 27.97 kB / 1.061 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.3757, allocations: 51.41 kB / 1.061 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.832e-05/0.3758, allocations: 39.92 kB / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3758, allocations: 0 / 1.062 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000248/0.376, allocations: 109.5 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3761, allocations: 8 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3761, allocations: 0 / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.3761, allocations: 0 / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3762, allocations: 19.98 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3762, allocations: 7.938 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/0.3763, allocations: 16.05 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3763, allocations: 4 kB / 1.062 GB, free: 1.332 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.672e-05/0.3764, allocations: 117.8 kB / 1.062 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.3764, allocations: 3.906 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.3767, allocations: 105.6 kB / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3767, allocations: 0 / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3767, allocations: 0 / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3767, allocations: 0 / 1.062 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004145/0.3771, allocations: 350.5 kB / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3772, allocations: 0 / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.919e-05/0.3772, allocations: 11.98 kB / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.3772, allocations: 0 / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.3773, allocations: 7.938 kB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.3773, allocations: 0 / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3773, allocations: 0 / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002714/0.3775, allocations: 203.8 kB / 1.062 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.631e-05/0.3776, allocations: 85.08 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3776, allocations: 4 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.993e-05/0.3777, allocations: 11.98 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.3778, allocations: 8 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.3778, allocations: 0 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.84e-05/0.3778, allocations: 87.73 kB / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3778, allocations: 0 / 1.063 GB, free: 256 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002416/0.3781, allocations: 15.94 kB / 1.063 GB, free: 240 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000177/0.3783, allocations: 95.48 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002499/0.3785, allocations: 75.89 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3785, allocations: 0 / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.3786, allocations: 31.97 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.3789, allocations: 12.2 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003678/0.3793, allocations: 142.6 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.3796, allocations: 0.6809 MB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.641e-05/0.3796, allocations: 7.984 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.3796, allocations: 7.438 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3796, allocations: 4 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of Templates: time 0.003017/0.3827, allocations: 0.6409 MB / 1.064 GB, free: 14.48 MB / 0.8262 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