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.008871/0.008871, allocations: 101.8 kB / 15.73 MB, free: 6.48 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.001937/0.001937, allocations: 191.4 kB / 16.67 MB, free: 6.391 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.633/1.633, allocations: 222.9 MB / 240.4 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.177/3.177, allocations: 461.9 MB / 0.7347 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 59.91 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4623/0.4636, allocations: 157.4 MB / 1.208 GB, free: 9.73 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002647/0.4663, allocations: 0.6659 MB / 1.208 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002088/0.4684, allocations: 1.057 MB / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.502e-05/0.4685, allocations: 0 / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.926e-05/0.4686, allocations: 0 / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.109e-05/0.4687, allocations: 7.875 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.4691, allocations: 35.89 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.4692, allocations: 51.84 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.4693, allocations: 11.98 kB / 1.209 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.554e-05/0.4694, allocations: 27.84 kB / 1.21 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.373e-05/0.4695, allocations: 19.92 kB / 1.21 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/0.4695, allocations: 4 kB / 1.21 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.583e-05/0.4696, allocations: 19.98 kB / 1.21 GB, free: 7.816 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.4696, allocations: 7.984 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.901e-05/0.4697, allocations: 15.88 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.4698, allocations: 55.84 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4698, allocations: 4 kB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4699, allocations: 0 / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.4699, allocations: 0 / 1.21 GB, free: 7.734 MB / 0.9669 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.0006397/0.4705, allocations: 347.4 kB / 1.21 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/0.4706, allocations: 16.61 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.4706, allocations: 4.844 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.4708, allocations: 172.3 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.4708, allocations: 4.375 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.4708, allocations: 8.312 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.471, allocations: 62.23 kB / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.471, allocations: 192 / 1.21 GB, free: 7.039 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.471, allocations: 3.938 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.4711, allocations: 0 / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.4712, allocations: 39.95 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005182/0.4718, allocations: 284.8 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.4719, allocations: 42.5 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.247e-05/0.472, allocations: 28.92 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.4721, allocations: 4 kB / 1.211 GB, free: 6.582 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.4723, allocations: 67.39 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.673e-06/0.4723, allocations: 4 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.0004217/0.4728, allocations: 105.6 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.4728, allocations: 51.41 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.4729, allocations: 109.8 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.473, allocations: 25.7 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.473, allocations: 92.05 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.4731, allocations: 8.406 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.046e-05/0.4731, allocations: 25.7 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4733, allocations: 314.8 kB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.4734, allocations: 23.97 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.4735, allocations: 47.41 kB / 1.211 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.4737, allocations: 79.28 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4737, allocations: 0 / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002904/0.474, allocations: 109.4 kB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.4741, allocations: 8 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.4741, allocations: 0 / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.4741, allocations: 3.938 kB / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.4742, allocations: 15.98 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.4742, allocations: 256 / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.072e-05/0.4743, allocations: 7.938 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.4743, allocations: 11.98 kB / 1.212 GB, free: 5.398 MB / 0.9669 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 9.703e-05/0.4744, allocations: 121.9 kB / 1.212 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.4745, allocations: 7.906 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.4747, allocations: 89.55 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4748, allocations: 4 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4748, allocations: 3.938 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4748, allocations: 0 / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005115/0.4753, allocations: 342.4 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4753, allocations: 0 / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.733e-05/0.4754, allocations: 11.98 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4754, allocations: 0 / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.4754, allocations: 4 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4754, allocations: 4 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4754, allocations: 0 / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002959/0.4757, allocations: 179.5 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/0.4758, allocations: 89 kB / 1.212 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.4758, allocations: 0 / 1.212 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.096e-05/0.4759, allocations: 7.984 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.476, allocations: 7.922 kB / 1.213 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.476, allocations: 7.938 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.464e-05/0.4761, allocations: 83.28 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4761, allocations: 0 / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002554/0.4763, allocations: 19.98 kB / 1.213 GB, free: 4.324 MB / 0.9669 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.0002361/0.4766, allocations: 103.2 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002897/0.4769, allocations: 55.89 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4769, allocations: 0 / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.477, allocations: 32.41 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.4773, allocations: 9.844 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005438/0.4778, allocations: 139.2 kB / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.4783, allocations: 0.6807 MB / 1.214 GB, free: 3.25 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.696e-05/0.4783, allocations: 4 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.634e-05/0.4784, allocations: 19.38 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.4784, allocations: 0 / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of Templates: time 0.004032/0.4824, allocations: 0.7465 MB / 1.214 GB, free: 2.484 MB / 0.9669 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