Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.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.001405/0.001405, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001596/0.001596, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.54/1.54, allocations: 230.6 MB / 256 MB, free: 7.789 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.347/3.347, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [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.00214/0.00214, allocations: 68.11 kB / 1.186 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4418/0.444, allocations: 181.9 MB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002888/0.4468, allocations: 1.454 MB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.4477, allocations: 436 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.213e-05/0.4478, allocations: 0 / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.475e-05/0.4478, allocations: 3.938 kB / 1.366 GB, free: 11.85 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.484e-05/0.4479, allocations: 15.91 kB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.4481, allocations: 23.92 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.4482, allocations: 51.8 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.4483, allocations: 7.984 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.637e-05/0.4484, allocations: 23.86 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.4485, allocations: 19.92 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.4485, allocations: 4 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.567e-05/0.4485, allocations: 4 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.808e-05/0.4485, allocations: 7.984 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.104e-05/0.4486, allocations: 15.94 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.4487, allocations: 47.75 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4487, allocations: 0 / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4487, allocations: 0 / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.269e-06/0.4487, allocations: 4 kB / 1.366 GB, free: 11.63 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.000638/0.4494, allocations: 319.9 kB / 1.366 GB, free: 11.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.4494, allocations: 8.031 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.4494, allocations: 8.891 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.4496, allocations: 106.5 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.4496, allocations: 8.312 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.4496, allocations: 4.375 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.4498, allocations: 83.69 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.4498, allocations: 4 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.4498, allocations: 4 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4498, allocations: 0 / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.076e-05/0.4499, allocations: 41.69 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.4503, allocations: 216.5 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.4504, allocations: 76.14 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.4504, allocations: 42.69 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.4504, allocations: 3.984 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.4507, allocations: 126.8 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.4507, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=9): time 0.0003494/0.451, allocations: 206.7 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.4511, allocations: 85.11 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.4512, allocations: 109.9 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.4512, allocations: 25.7 kB / 1.367 GB, free: 9.965 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.4513, allocations: 92.08 kB / 1.367 GB, free: 9.871 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.4513, allocations: 27.86 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.4513, allocations: 25.7 kB / 1.367 GB, free: 9.812 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4515, allocations: 314.8 kB / 1.368 GB, free: 9.496 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.214e-05/0.4515, allocations: 49.69 kB / 1.368 GB, free: 9.441 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.415e-05/0.4516, allocations: 68.2 kB / 1.368 GB, free: 9.359 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.4517, allocations: 114 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.4517, allocations: 3.938 kB / 1.368 GB, free: 9.223 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001839/0.4519, allocations: 149 kB / 1.368 GB, free: 9.059 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.452, allocations: 33.7 kB / 1.368 GB, free: 9.02 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.452, allocations: 8.047 kB / 1.368 GB, free: 9.012 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.452, allocations: 0 / 1.368 GB, free: 9.012 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.146e-05/0.452, allocations: 7.938 kB / 1.368 GB, free: 9.004 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.452, allocations: 4 kB / 1.368 GB, free: 9 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.288e-05/0.4521, allocations: 16.02 kB / 1.368 GB, free: 8.984 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.4521, allocations: 4 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$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): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001262/0.4522, allocations: 153 kB / 1.368 GB, free: 8.816 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.4522, allocations: 3.984 kB / 1.368 GB, free: 8.812 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.4523, allocations: 12.38 kB / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.4523, allocations: 384 / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.4523, allocations: 0 / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4523, allocations: 0 / 1.368 GB, free: 8.797 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.4527, allocations: 381.4 kB / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4527, allocations: 0 / 1.369 GB, free: 8.375 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.408e-06/0.4527, allocations: 8 kB / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.4527, allocations: 3.938 kB / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.4527, allocations: 0 / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4527, allocations: 0 / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4527, allocations: 0 / 1.369 GB, free: 8.363 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.453, allocations: 262.9 kB / 1.369 GB, free: 8.078 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.506e-05/0.453, allocations: 11.89 kB / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.453, allocations: 0 / 1.369 GB, free: 8.066 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.4531, allocations: 11.98 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/0.4532, allocations: 11.92 kB / 1.369 GB, free: 8.043 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.4532, allocations: 4 kB / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.427e-05/0.4532, allocations: 91.28 kB / 1.369 GB, free: 7.949 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4532, allocations: 0 / 1.369 GB, free: 7.949 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002295/0.4535, allocations: 12 kB / 1.369 GB, free: 7.938 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0001138/0.4536, allocations: 107.2 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002453/0.4538, allocations: 166.7 kB / 1.369 GB, free: 7.637 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4538, allocations: 0 / 1.369 GB, free: 7.637 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.4539, allocations: 109.1 kB / 1.369 GB, free: 7.512 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.4542, allocations: 27.2 kB / 1.369 GB, free: 7.492 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00038/0.4546, allocations: 183.3 kB / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.655e-05/0.4547, allocations: 67.34 kB / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.884e-05/0.4547, allocations: 4 kB / 1.37 GB, free: 7.191 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.145e-05/0.4548, allocations: 15.38 kB / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.4548, allocations: 0 / 1.37 GB, free: 7.176 MB / 1.061 GB Notification: Performance of Templates: time 0.003684/0.4585, allocations: 0.9574 MB / 1.371 GB, free: 6.242 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.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: 9.290267465636134]