Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_11_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_11_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.005459/0.005459, allocations: 99.53 kB / 15.73 MB, free: 5.988 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.001456/0.001456, allocations: 193.8 kB / 16.67 MB, free: 5.918 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.723/2.723, allocations: 469.8 MB / 0.7425 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 71.89 kB / 1.065 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8628/0.8645, allocations: 159.1 MB / 1.221 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001627/0.8662, allocations: 0.6677 MB / 1.221 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00117/0.8673, allocations: 1.053 MB / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.407e-05/0.8674, allocations: 0 / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.664e-05/0.8674, allocations: 7.922 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-05/0.8675, allocations: 7.938 kB / 1.222 GB, free: 412 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.8677, allocations: 35.89 kB / 1.222 GB, free: 376 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.769e-05/0.8678, allocations: 43.8 kB / 1.222 GB, free: 332 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.514e-05/0.8679, allocations: 12 kB / 1.222 GB, free: 320 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.061e-05/0.8679, allocations: 15.98 kB / 1.222 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.158e-05/0.868, allocations: 27.84 kB / 1.222 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.403e-05/0.868, allocations: 4 kB / 1.222 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.8681, allocations: 15.98 kB / 1.222 GB, free: 256 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.8681, allocations: 11.92 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.472e-05/0.8681, allocations: 19.88 kB / 1.222 GB, free: 224 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.8682, allocations: 51.36 kB / 1.223 GB, free: 176 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8683, allocations: 4 kB / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.783e-06/0.8683, allocations: 0 / 1.223 GB, free: 172 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.839e-06/0.8683, allocations: 4 kB / 1.223 GB, free: 168 kB / 0.9356 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.0005219/0.8688, allocations: 360.3 kB / 1.223 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.8688, allocations: 11.97 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.8689, allocations: 0.9375 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.837e-05/0.869, allocations: 176.3 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.869, allocations: 384 / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.869, allocations: 8.375 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.8692, allocations: 62.22 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.8692, allocations: 4.188 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.8692, allocations: 3.938 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.8692, allocations: 0 / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.8694, allocations: 39.97 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004267/0.8698, allocations: 272.9 kB / 1.223 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.8699, allocations: 50.48 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.303e-05/0.87, allocations: 24.94 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.87, allocations: 0 / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.8703, allocations: 75.33 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/0.8703, allocations: 3.938 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.0003809/0.8706, allocations: 101.6 kB / 1.224 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.8707, allocations: 55.41 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.976e-05/0.8708, allocations: 109.8 kB / 1.224 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.8708, allocations: 33.64 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.52e-05/0.8708, allocations: 88.09 kB / 1.224 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/0.8708, allocations: 11.94 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.8709, allocations: 17.72 kB / 1.224 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.871, allocations: 322.8 kB / 1.224 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.59e-05/0.8711, allocations: 19.98 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.8712, allocations: 55.34 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.8714, allocations: 71.34 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.8714, allocations: 0 / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002375/0.8716, allocations: 105.5 kB / 1.225 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.8716, allocations: 12.12 kB / 1.225 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.8716, allocations: 0 / 1.225 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.8716, allocations: 0 / 1.225 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.8717, allocations: 15.98 kB / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.8717, allocations: 0 / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.048e-05/0.8718, allocations: 15.92 kB / 1.225 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.8718, allocations: 7.938 kB / 1.225 GB, free: 13.82 MB / 0.9512 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.592e-05/0.8719, allocations: 121.7 kB / 1.225 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.8719, allocations: 11.94 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.8722, allocations: 89.61 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8722, allocations: 0 / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.8722, allocations: 0 / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.8722, allocations: 4 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.8726, allocations: 338.8 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.8726, allocations: 4 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.947e-05/0.8726, allocations: 11.98 kB / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.8726, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.8726, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8726, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.8726, allocations: 0 / 1.225 GB, free: 13.17 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.8729, allocations: 191.3 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.8729, allocations: 81.11 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.8729, allocations: 0 / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-05/0.873, allocations: 11.98 kB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.8731, allocations: 4 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.8731, allocations: 3.938 kB / 1.225 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.133e-05/0.8731, allocations: 95.2 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1e-07/0.8731, allocations: 0 / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000241/0.8734, allocations: 8 kB / 1.225 GB, free: 12.75 MB / 0.9512 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.0001342/0.8735, allocations: 107.2 kB / 1.226 GB, free: 12.63 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.8737, allocations: 59.89 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.8737, allocations: 0 / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.796e-05/0.8738, allocations: 23.97 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.8741, allocations: 10.44 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003202/0.8744, allocations: 141.9 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.8746, allocations: 0.6807 MB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.9e-05/0.8747, allocations: 7.938 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.745e-05/0.8747, allocations: 11.44 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of SimCode: time 4.71e-07/0.8747, allocations: 0 / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of Templates: time 0.003008/0.8777, allocations: 0.757 MB / 1.227 GB, free: 10.91 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches