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.009365/0.009365, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001654/0.001654, allocations: 198.4 kB / 16.68 MB, free: 5.926 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.692/1.692, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.755/2.755, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 56.12 kB / 1.054 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.185/1.186, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002711/1.189, allocations: 0.6655 MB / 1.208 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001787/1.191, allocations: 1.057 MB / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.835e-05/1.191, allocations: 0 / 1.209 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.458e-05/1.191, allocations: 7.938 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001/1.191, allocations: 7.922 kB / 1.209 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/1.191, allocations: 39.84 kB / 1.209 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001233/1.191, allocations: 35.92 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/1.192, allocations: 19.97 kB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.608e-05/1.192, allocations: 11.94 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.625e-05/1.192, allocations: 27.91 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/1.192, allocations: 4 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.822e-05/1.192, allocations: 19.92 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.971e-05/1.192, allocations: 8 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.16e-05/1.192, allocations: 23.84 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/1.192, allocations: 43.88 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/1.192, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/1.192, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.608e-06/1.192, allocations: 0 / 1.21 GB, free: 11.68 MB / 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.0006061/1.193, allocations: 359.2 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/1.193, allocations: 8.031 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.271e-05/1.193, allocations: 12.84 kB / 1.21 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/1.193, allocations: 170.2 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/1.193, allocations: 4.359 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/1.193, allocations: 4.375 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/1.193, allocations: 62.11 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/1.193, allocations: 8.172 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/1.193, allocations: 3.938 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/1.193, allocations: 7.938 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/1.194, allocations: 39.95 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/1.194, allocations: 272.9 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/1.194, allocations: 50.48 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/1.194, allocations: 32.88 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/1.194, allocations: 3.984 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002669/1.195, allocations: 63.39 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.683e-06/1.195, allocations: 0 / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0005354/1.195, allocations: 105.6 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/1.195, allocations: 59.39 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/1.195, allocations: 105.8 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/1.195, allocations: 25.7 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.521e-05/1.195, allocations: 99.97 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/1.195, allocations: 3.906 kB / 1.211 GB, free: 10 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/1.196, allocations: 17.72 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.196, allocations: 322.8 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/1.196, allocations: 23.98 kB / 1.211 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/1.196, allocations: 47.41 kB / 1.211 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/1.196, allocations: 83.27 kB / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/1.196, allocations: 0 / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003549/1.197, allocations: 97.5 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/1.197, allocations: 8 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/1.197, allocations: 0 / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/1.197, allocations: 4.125 kB / 1.212 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/1.197, allocations: 19.92 kB / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/1.197, allocations: 0 / 1.212 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.098e-05/1.197, allocations: 7.984 kB / 1.212 GB, free: 9.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/1.197, allocations: 4 kB / 1.212 GB, free: 9.336 MB / 0.9356 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.000112/1.197, allocations: 117.8 kB / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/1.197, allocations: 0 / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003663/1.198, allocations: 97.55 kB / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/1.198, allocations: 0 / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/1.198, allocations: 0 / 1.212 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/1.198, allocations: 7.938 kB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/1.198, allocations: 350.6 kB / 1.212 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.198, allocations: 0 / 1.212 GB, free: 8.695 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.167e-05/1.198, allocations: 12.06 kB / 1.212 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/1.198, allocations: 4 kB / 1.212 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/1.198, allocations: 7.922 kB / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/1.198, allocations: 0 / 1.212 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/1.198, allocations: 3.938 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003684/1.199, allocations: 179.5 kB / 1.212 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.153e-05/1.199, allocations: 81.02 kB / 1.212 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/1.199, allocations: 0 / 1.212 GB, free: 8.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/1.199, allocations: 11.98 kB / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/1.199, allocations: 8 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/1.199, allocations: 7.922 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.704e-05/1.199, allocations: 83.28 kB / 1.213 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.7e-07/1.199, allocations: 0 / 1.213 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003738/1.199, allocations: 12 kB / 1.213 GB, free: 8.258 MB / 0.9356 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.0001896/1.2, allocations: 103.2 kB / 1.213 GB, free: 8.148 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003665/1.2, allocations: 59.89 kB / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.2, allocations: 0 / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/1.2, allocations: 27.92 kB / 1.213 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/1.201, allocations: 11.98 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004593/1.201, allocations: 138.3 kB / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/1.201, allocations: 0.6807 MB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.744e-05/1.201, allocations: 7.984 kB / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/1.201, allocations: 7.438 kB / 1.214 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of SimCode: time 3.8e-07/1.201, allocations: 0 / 1.214 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of Templates: time 0.004557/1.206, allocations: 0.7717 MB / 1.214 GB, free: 6.402 MB / 0.9356 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