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.00128/0.00128, allocations: 110.1 kB / 16.41 MB, free: 6.492 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.001278/0.001278, allocations: 187 kB / 17.34 MB, free: 5.766 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.549/2.549, allocations: 469.4 MB / 0.7428 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 67.89 kB / 1.065 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7732/0.7745, allocations: 159.1 MB / 1.221 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001911/0.7765, allocations: 0.6593 MB / 1.222 GB, free: 1.715 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001311/0.7778, allocations: 1.057 MB / 1.223 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.931e-05/0.7779, allocations: 0 / 1.223 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.163e-05/0.7779, allocations: 3.938 kB / 1.223 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.97e-05/0.778, allocations: 11.92 kB / 1.223 GB, free: 0.6289 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.7783, allocations: 39.84 kB / 1.223 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.003e-05/0.7784, allocations: 43.84 kB / 1.223 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.688e-05/0.7785, allocations: 15.98 kB / 1.223 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.229e-05/0.7786, allocations: 11.94 kB / 1.223 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.183e-05/0.7786, allocations: 27.91 kB / 1.223 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.7787, allocations: 4 kB / 1.223 GB, free: 500 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.443e-05/0.7787, allocations: 19.92 kB / 1.223 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.7788, allocations: 7.984 kB / 1.223 GB, free: 472 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.483e-05/0.7788, allocations: 27.86 kB / 1.223 GB, free: 444 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.7789, allocations: 47.8 kB / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.7789, allocations: 0 / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7789, allocations: 0 / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.779, allocations: 0 / 1.223 GB, free: 396 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.0005171/0.7795, allocations: 363.3 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.7795, allocations: 8.625 kB / 1.223 GB, free: 15.97 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.7796, allocations: 8.844 kB / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.7797, allocations: 166.2 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.7797, allocations: 4.375 kB / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.7797, allocations: 384 / 1.223 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.7799, allocations: 58.23 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.7799, allocations: 192 / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.7799, allocations: 7.938 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.7799, allocations: 7.938 kB / 1.223 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.7801, allocations: 43.95 kB / 1.223 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000413/0.7805, allocations: 268.9 kB / 1.224 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.7807, allocations: 50.48 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.035e-05/0.7808, allocations: 28.94 kB / 1.224 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.7808, allocations: 3.984 kB / 1.224 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001517/0.781, allocations: 67.33 kB / 1.224 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.781, allocations: 0 / 1.224 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.0003625/0.7813, allocations: 101.6 kB / 1.224 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.7814, allocations: 63.39 kB / 1.224 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.432e-05/0.7815, allocations: 105.8 kB / 1.224 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.459e-05/0.7815, allocations: 25.7 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/0.7816, allocations: 95.97 kB / 1.224 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.7816, allocations: 15.84 kB / 1.224 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.7816, allocations: 21.7 kB / 1.224 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.319e-05/0.7817, allocations: 314.8 kB / 1.225 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.351e-05/0.7818, allocations: 23.98 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.7819, allocations: 51.39 kB / 1.225 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.7821, allocations: 83.27 kB / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.7821, allocations: 0 / 1.225 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002521/0.7824, allocations: 97.5 kB / 1.225 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.7824, allocations: 4 kB / 1.225 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.7824, allocations: 4 kB / 1.225 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.7824, allocations: 128 / 1.225 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.7826, allocations: 15.98 kB / 1.225 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.7826, allocations: 7.938 kB / 1.225 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.463e-05/0.7826, allocations: 11.92 kB / 1.225 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.7827, allocations: 8 kB / 1.225 GB, free: 14.05 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 7.73e-05/0.7827, allocations: 113.8 kB / 1.225 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.7828, allocations: 11.89 kB / 1.225 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.783, allocations: 93.61 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.783, allocations: 0 / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.783, allocations: 0 / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.783, allocations: 0 / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003889/0.7834, allocations: 346.7 kB / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7834, allocations: 64 / 1.225 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.068e-05/0.7835, allocations: 12 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.257e-06/0.7835, allocations: 4 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.7835, allocations: 3.984 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.7835, allocations: 0 / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7835, allocations: 0 / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.7838, allocations: 183.4 kB / 1.226 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.7839, allocations: 81.02 kB / 1.226 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.7839, allocations: 0 / 1.226 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.784, allocations: 11.98 kB / 1.226 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/0.784, allocations: 8 kB / 1.226 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.784, allocations: 11.86 kB / 1.226 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.129e-05/0.7841, allocations: 91.73 kB / 1.226 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7841, allocations: 0 / 1.226 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00027/0.7844, allocations: 8 kB / 1.226 GB, free: 12.97 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.0001366/0.7845, allocations: 103.2 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002378/0.7847, allocations: 59.89 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.7848, allocations: 0 / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.7849, allocations: 23.98 kB / 1.226 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002786/0.7851, allocations: 21.73 kB / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.7855, allocations: 160 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.7857, allocations: 0.6846 MB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.819e-05/0.7857, allocations: 11.44 kB / 1.227 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of SimCode: time 3.01e-07/0.7858, allocations: 0 / 1.227 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of Templates: time 0.002169/0.7879, allocations: 0.8199 MB / 1.228 GB, free: 11.04 MB / 0.9512 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