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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001243/0.001242, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.607/1.607, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.247/3.247, allocations: 482.6 MB / 0.7549 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00285/0.002851, allocations: 62.84 kB / 0.9241 GB, free: 29.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4431/0.446, allocations: 162.3 MB / 1.083 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002428/0.4485, allocations: 0.6685 MB / 1.083 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001605/0.4501, allocations: 1.053 MB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.427e-05/0.4502, allocations: 3.938 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.422e-05/0.4502, allocations: 3.938 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.4503, allocations: 7.922 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.4506, allocations: 39.84 kB / 1.084 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.4507, allocations: 47.91 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.4508, allocations: 11.98 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.908e-05/0.4509, allocations: 23.92 kB / 1.084 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.823e-05/0.451, allocations: 19.92 kB / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.451, allocations: 4 kB / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.286e-05/0.4511, allocations: 19.98 kB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.698e-05/0.4511, allocations: 19.86 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.4512, allocations: 19.92 kB / 1.084 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.4513, allocations: 51.8 kB / 1.085 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.4514, allocations: 0 / 1.085 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4514, allocations: 8 kB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.4514, allocations: 0 / 1.085 GB, free: 10.93 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007567/0.4521, allocations: 355.7 kB / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/0.4522, allocations: 8.031 kB / 1.085 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.504e-05/0.4523, allocations: 16.78 kB / 1.085 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/0.4525, allocations: 176.3 kB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.4525, allocations: 4.375 kB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.4526, allocations: 4.375 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.4528, allocations: 62.23 kB / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4528, allocations: 192 / 1.085 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.4529, allocations: 7.922 kB / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.4529, allocations: 0 / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.4531, allocations: 43.91 kB / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006421/0.4538, allocations: 288.8 kB / 1.085 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.454, allocations: 58.48 kB / 1.086 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.4541, allocations: 24.97 kB / 1.086 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.4541, allocations: 4 kB / 1.086 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.4544, allocations: 83.31 kB / 1.086 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.4544, allocations: 0 / 1.086 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0004184/0.4548, allocations: 113.6 kB / 1.086 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.4549, allocations: 55.41 kB / 1.086 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.455, allocations: 117.7 kB / 1.086 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.455, allocations: 25.7 kB / 1.086 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.392e-05/0.4551, allocations: 92.2 kB / 1.086 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.4552, allocations: 19.75 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.782e-05/0.4552, allocations: 25.7 kB / 1.086 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.4554, allocations: 314.8 kB / 1.086 GB, free: 8.852 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.4555, allocations: 31.91 kB / 1.086 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.4556, allocations: 56.27 kB / 1.086 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.4559, allocations: 88.14 kB / 1.087 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.4559, allocations: 0 / 1.087 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000271/0.4561, allocations: 113.5 kB / 1.087 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.4562, allocations: 4.188 kB / 1.087 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4562, allocations: 4 kB / 1.087 GB, free: 8.523 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.4562, allocations: 3.938 kB / 1.087 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.4563, allocations: 19.98 kB / 1.087 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.4563, allocations: 0 / 1.087 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.412e-05/0.4564, allocations: 20.05 kB / 1.087 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.4564, allocations: 0 / 1.087 GB, free: 8.48 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,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 (9): * Single equations (assignments): 9 * 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.0001189/0.4566, allocations: 121.7 kB / 1.087 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.4566, allocations: 7.938 kB / 1.087 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.4569, allocations: 102 kB / 1.087 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.4569, allocations: 0 / 1.087 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.4569, allocations: 3.984 kB / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.4569, allocations: 4 kB / 1.087 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005008/0.4574, allocations: 350.4 kB / 1.087 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4574, allocations: 0 / 1.087 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.4575, allocations: 12.36 kB / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.4575, allocations: 0 / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.4575, allocations: 0 / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4575, allocations: 4 kB / 1.087 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4576, allocations: 8 kB / 1.087 GB, free: 7.805 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.4578, allocations: 195.4 kB / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.4579, allocations: 81.02 kB / 1.088 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.4579, allocations: 0 / 1.088 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.908e-05/0.458, allocations: 7.984 kB / 1.088 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.4581, allocations: 15.97 kB / 1.088 GB, free: 7.477 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.4581, allocations: 7.938 kB / 1.088 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.487e-05/0.4581, allocations: 83.28 kB / 1.088 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4581, allocations: 0 / 1.088 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002373/0.4584, allocations: 15.94 kB / 1.088 GB, free: 7.371 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: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001787/0.4586, allocations: 103.8 kB / 1.088 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002709/0.4588, allocations: 72.14 kB / 1.088 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4588, allocations: 0 / 1.088 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.459, allocations: 35.91 kB / 1.088 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.4592, allocations: 8 kB / 1.088 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004179/0.4596, allocations: 138 kB / 1.088 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.4601, allocations: 0.6846 MB / 1.089 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.116e-05/0.4601, allocations: 4 kB / 1.089 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.4601, allocations: 19.36 kB / 1.089 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.4601, allocations: 0 / 1.089 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of Templates: time 0.003774/0.4639, allocations: 0.7985 MB / 1.089 GB, free: 5.469 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=400 -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