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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001798/0.001798, allocations: 212.6 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.752/3.752, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 72.81 kB / 1.186 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/0.4389, allocations: 181.8 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001941/0.4408, allocations: 0.6697 MB / 1.364 GB, free: 12.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.4424, allocations: 1.089 MB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.4424, allocations: 0 / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.862e-05/0.4424, allocations: 3.938 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.464e-05/0.4425, allocations: 3.938 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.4428, allocations: 43.84 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.443, allocations: 51.83 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.4431, allocations: 4 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.068e-05/0.4431, allocations: 19.92 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.049e-05/0.4432, allocations: 19.92 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.4432, allocations: 8 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.4433, allocations: 23.97 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.246e-05/0.4433, allocations: 11.98 kB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.819e-05/0.4433, allocations: 19.88 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.4435, allocations: 63.72 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.4435, allocations: 0 / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4435, allocations: 0 / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.4435, allocations: 0 / 1.366 GB, free: 11.56 MB / 1.061 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.0005319/0.444, allocations: 282.2 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.444, allocations: 8.031 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.931e-05/0.4441, allocations: 12.89 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001164/0.4443, allocations: 118.5 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.188e-06/0.4443, allocations: 4.312 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.073e-05/0.4443, allocations: 4.375 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.4445, allocations: 58.23 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.4445, allocations: 192 / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.4445, allocations: 7.922 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.4445, allocations: 4 kB / 1.366 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.4447, allocations: 43.91 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.4451, allocations: 232.5 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.4453, allocations: 50.55 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.793e-05/0.4454, allocations: 33.91 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.4454, allocations: 0 / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001865/0.4456, allocations: 75.31 kB / 1.367 GB, free: 10.53 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.4456, allocations: 4 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004134/0.446, allocations: 121.6 kB / 1.367 GB, free: 10.4 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4461, allocations: 55.41 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.231e-05/0.4461, allocations: 109.8 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.4462, allocations: 29.7 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.4462, allocations: 84.14 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.532e-05/0.4462, allocations: 19.84 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.4463, allocations: 21.7 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4464, allocations: 322.8 kB / 1.367 GB, free: 9.723 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.4465, allocations: 27.91 kB / 1.367 GB, free: 9.695 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.4467, allocations: 56.27 kB / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.4469, allocations: 84.2 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4469, allocations: 8 kB / 1.368 GB, free: 9.52 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002751/0.4471, allocations: 109.5 kB / 1.368 GB, free: 9.406 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.4472, allocations: 8 kB / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4472, allocations: 0 / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.4472, allocations: 0 / 1.368 GB, free: 9.398 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.4473, allocations: 19.98 kB / 1.368 GB, free: 9.379 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.4473, allocations: 8.156 kB / 1.368 GB, free: 9.371 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.4474, allocations: 11.94 kB / 1.368 GB, free: 9.359 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.4474, allocations: 4 kB / 1.368 GB, free: 9.355 MB / 1.061 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 9.63e-05/0.4475, allocations: 125.9 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.031e-05/0.4475, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.4478, allocations: 102 kB / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.4478, allocations: 192 / 1.368 GB, free: 9.117 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.4478, allocations: 3.984 kB / 1.368 GB, free: 9.113 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4478, allocations: 7.938 kB / 1.368 GB, free: 9.105 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004202/0.4482, allocations: 302 kB / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4482, allocations: 0 / 1.368 GB, free: 8.773 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.296e-05/0.4483, allocations: 11.98 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.4483, allocations: 0 / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.4483, allocations: 4 kB / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4483, allocations: 0 / 1.368 GB, free: 8.758 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4483, allocations: 4.312 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.4486, allocations: 203.4 kB / 1.368 GB, free: 8.539 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.467e-05/0.4486, allocations: 7.953 kB / 1.368 GB, free: 8.531 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.4486, allocations: 0 / 1.368 GB, free: 8.531 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.165e-05/0.4487, allocations: 7.984 kB / 1.368 GB, free: 8.523 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.4487, allocations: 4 kB / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.4487, allocations: 0 / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.151e-05/0.4488, allocations: 99.62 kB / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.4488, allocations: 0 / 1.369 GB, free: 8.422 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002513/0.449, allocations: 12 kB / 1.369 GB, free: 8.41 MB / 1.061 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.0001446/0.4492, allocations: 103.2 kB / 1.369 GB, free: 8.301 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002753/0.4495, allocations: 71.83 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4495, allocations: 0 / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.4496, allocations: 27.92 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.4498, allocations: 13.17 kB / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/0.4502, allocations: 142.5 kB / 1.369 GB, free: 8.027 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.678e-05/0.4503, allocations: 71.34 kB / 1.369 GB, free: 7.938 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.995e-05/0.4503, allocations: 0 / 1.369 GB, free: 7.938 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.161e-05/0.4503, allocations: 11.44 kB / 1.369 GB, free: 7.926 MB / 1.061 GB Notification: Performance of SimCode: time 4.01e-07/0.4503, allocations: 0 / 1.369 GB, free: 7.926 MB / 1.061 GB Notification: Performance of Templates: time 0.003815/0.4541, allocations: 0.8522 MB / 1.37 GB, free: 7.086 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.040511531755328]