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.0009932/0.0009931, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00802/0.008021, allocations: 170 kB / 16.26 MB, free: 6.613 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.564/1.564, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.075/3.075, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004278/0.0004275, allocations: 15.03 kB / 0.9028 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4095/0.4099, allocations: 159.6 MB / 1.059 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001268/0.4112, allocations: 403.1 kB / 1.059 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.4129, allocations: 1.053 MB / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.11e-05/0.4129, allocations: 0 / 1.06 GB, free: 4 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.174e-05/0.413, allocations: 11.81 kB / 1.06 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.545e-05/0.4131, allocations: 4 kB / 1.06 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.4133, allocations: 31.92 kB / 1.06 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.591e-05/0.4134, allocations: 43.89 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.4135, allocations: 4 kB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.756e-05/0.4136, allocations: 23.86 kB / 1.06 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.606e-05/0.4137, allocations: 15.92 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.4137, allocations: 4 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.828e-05/0.4138, allocations: 15.98 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.4138, allocations: 3.984 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.4139, allocations: 45.56 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.414, allocations: 55.84 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.414, allocations: 0 / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.384e-06/0.414, allocations: 0 / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.287e-06/0.414, allocations: 0 / 1.06 GB, free: 3.738 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.000554/0.4146, allocations: 355.6 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4146, allocations: 8.031 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.4147, allocations: 0.9375 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.4148, allocations: 184.2 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.4149, allocations: 384 / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.582e-05/0.4149, allocations: 4.375 kB / 1.061 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.4151, allocations: 66.17 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.4151, allocations: 192 / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.4151, allocations: 3.938 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.4151, allocations: 4 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.4153, allocations: 51.95 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00051/0.4159, allocations: 273 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.416, allocations: 58.44 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.4161, allocations: 32.92 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.4162, allocations: 0 / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.4164, allocations: 71.39 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 4.509e-06/0.4164, allocations: 0 / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0004757/0.4169, allocations: 137.4 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.417, allocations: 51.41 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.4171, allocations: 109.8 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.4171, allocations: 25.7 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.915e-05/0.4172, allocations: 84.14 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.4173, allocations: 15.81 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.4173, allocations: 9.719 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4174, allocations: 326.8 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.4176, allocations: 23.98 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.4177, allocations: 55.39 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.4179, allocations: 103.2 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4179, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000292/0.4182, allocations: 101.6 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.4183, allocations: 8 kB / 1.062 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.4183, allocations: 4.125 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4183, allocations: 0 / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.4185, allocations: 19.92 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.4185, allocations: 4 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.656e-05/0.4186, allocations: 15.92 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.4186, allocations: 0 / 1.062 GB, free: 1.324 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 0.0001031/0.4187, allocations: 117.8 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.4187, allocations: 11.91 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002876/0.419, allocations: 101.5 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.419, allocations: 0 / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.419, allocations: 0 / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.419, allocations: 0 / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004328/0.4195, allocations: 354.8 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4195, allocations: 3.984 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.986e-05/0.4196, allocations: 15.94 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.4196, allocations: 4 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.4196, allocations: 7.984 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4196, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.4196, allocations: 0 / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.4199, allocations: 195.4 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.4199, allocations: 81.11 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.42, allocations: 0 / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.17e-05/0.42, allocations: 11.92 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.4201, allocations: 7.984 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.4201, allocations: 3.938 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.559e-05/0.4202, allocations: 87.28 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4202, allocations: 0 / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002425/0.4204, allocations: 16 kB / 1.063 GB, free: 224 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 (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.0001948/0.4206, allocations: 111.9 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002667/0.4209, allocations: 64.14 kB / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4209, allocations: 0 / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.421, allocations: 35.92 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.4214, allocations: 13.34 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.4218, allocations: 150.6 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.4221, allocations: 0.6809 MB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.161e-05/0.4221, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.4222, allocations: 11.44 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.4222, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.003799/0.426, allocations: 0.6611 MB / 1.065 GB, free: 14.44 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