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.001566/0.001566, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001609/0.001609, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.425/1.425, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.625/2.625, allocations: 469.4 MB / 0.7423 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.34 kB / 0.9083 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3699/0.3713, allocations: 159.1 MB / 1.064 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002622/0.374, allocations: 0.7325 MB / 1.064 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.3755, allocations: 1.053 MB / 1.065 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.3756, allocations: 4 kB / 1.065 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.289e-05/0.3757, allocations: 0 / 1.065 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.3759, allocations: 7.922 kB / 1.065 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.3763, allocations: 39.91 kB / 1.066 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.3764, allocations: 39.92 kB / 1.066 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.3765, allocations: 11.98 kB / 1.066 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.629e-05/0.3766, allocations: 11.94 kB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.375e-05/0.3767, allocations: 19.92 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.3767, allocations: 4 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.246e-05/0.3768, allocations: 23.91 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.3769, allocations: 11.98 kB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.637e-05/0.3769, allocations: 19.88 kB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3771, allocations: 39.92 kB / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3771, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3771, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3771, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8419 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.0006919/0.3778, allocations: 355.7 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3779, allocations: 12.62 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.3779, allocations: 0.9375 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.3781, allocations: 176.2 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3781, allocations: 384 / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.3781, allocations: 8.375 kB / 1.066 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.3783, allocations: 58.23 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3783, allocations: 192 / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3784, allocations: 7.875 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3784, allocations: 3.984 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.3786, allocations: 47.89 kB / 1.066 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.3791, allocations: 265 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.3793, allocations: 54.48 kB / 1.067 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.59e-05/0.3794, allocations: 24.94 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.3794, allocations: 3.984 kB / 1.067 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.3796, allocations: 75.27 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=5): time 1.713e-06/0.3797, allocations: 0 / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5): time 0.0004154/0.3801, allocations: 105.5 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.3801, allocations: 55.39 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.075e-05/0.3802, allocations: 105.8 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.3802, allocations: 29.7 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.3803, allocations: 88.14 kB / 1.067 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.3803, allocations: 7.812 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.968e-05/0.3804, allocations: 29.7 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.3805, allocations: 314.8 kB / 1.067 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3806, allocations: 19.98 kB / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3807, allocations: 55.39 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.381, allocations: 79.27 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.381, allocations: 4 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000262/0.3812, allocations: 97.59 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.3813, allocations: 4 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3813, allocations: 0 / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.3813, allocations: 4 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3814, allocations: 11.98 kB / 1.068 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.3814, allocations: 8.172 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.413e-05/0.3815, allocations: 19.97 kB / 1.068 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.3815, allocations: 8 kB / 1.068 GB, free: 11.07 MB / 0.8419 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 8.591e-05/0.3816, allocations: 113.8 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.3816, allocations: 7.984 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002758/0.3819, allocations: 85.62 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3819, allocations: 4 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.382, allocations: 0 / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.382, allocations: 4 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004334/0.3824, allocations: 342.3 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3824, allocations: 4 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.093e-05/0.3825, allocations: 7.984 kB / 1.068 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3825, allocations: 3.938 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.3825, allocations: 0 / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3825, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3825, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.3828, allocations: 179.4 kB / 1.068 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.3829, allocations: 88.95 kB / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.3829, allocations: 0 / 1.069 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.555e-05/0.383, allocations: 7.984 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.383, allocations: 7.984 kB / 1.069 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.383, allocations: 11.94 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.832e-05/0.3831, allocations: 79.28 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3831, allocations: 0 / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002535/0.3833, allocations: 16 kB / 1.069 GB, free: 10.01 MB / 0.8419 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.0001549/0.3835, allocations: 103.2 kB / 1.069 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002726/0.3838, allocations: 60.08 kB / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3838, allocations: 8.062 kB / 1.069 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3839, allocations: 28.11 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3842, allocations: 8.812 kB / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003284/0.3845, allocations: 167.7 kB / 1.069 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3848, allocations: 0.6846 MB / 1.07 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.3848, allocations: 15.42 kB / 1.07 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of SimCode: time 6.72e-07/0.3848, allocations: 0 / 1.07 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of Templates: time 0.002386/0.3872, allocations: 0.8223 MB / 1.071 GB, free: 8.055 MB / 0.8419 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/jenkins1/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