Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.001665/0.001665, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002244/0.002244, allocations: 211.8 kB / 22.24 MB, free: 5.258 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 7.832 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.54/3.54, 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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [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.002159/0.002159, allocations: 68.59 kB / 1.186 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4669/0.4691, allocations: 181.9 MB / 1.364 GB, free: 13.65 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.00272/0.4718, allocations: 0.7232 MB / 1.365 GB, free: 12.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001998/0.4738, allocations: 1.21 MB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.4739, allocations: 4 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.4739, allocations: 3.938 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.454e-05/0.474, allocations: 15.86 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005787/0.4746, allocations: 149 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.4748, allocations: 111.8 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.4749, allocations: 11.98 kB / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.475, allocations: 51.84 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.4751, allocations: 43.81 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.4751, allocations: 16 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.903e-05/0.4752, allocations: 19.98 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.773e-05/0.4752, allocations: 15.98 kB / 1.366 GB, free: 11.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.444e-05/0.4753, allocations: 35.91 kB / 1.366 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.4755, allocations: 111.6 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.4755, allocations: 0 / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.462e-06/0.4755, allocations: 0 / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.212e-06/0.4755, allocations: 0 / 1.366 GB, free: 11.13 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.0006561/0.4761, allocations: 335.8 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.4762, allocations: 8.031 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.4763, allocations: 16.88 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.4764, allocations: 122.4 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.4764, allocations: 4.375 kB / 1.367 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.4765, allocations: 8.375 kB / 1.367 GB, free: 10.58 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001997/0.4767, allocations: 66.2 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.4767, allocations: 192 / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.4767, allocations: 11.94 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.4767, allocations: 0 / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.4769, allocations: 47.89 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004833/0.4774, allocations: 248.5 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.4776, allocations: 50.48 kB / 1.367 GB, free: 10.12 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.4777, allocations: 28.92 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.4777, allocations: 0 / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.4779, allocations: 91.31 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.4779, allocations: 7.938 kB / 1.367 GB, free: 9.98 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.000476/0.4784, allocations: 137.6 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.4785, allocations: 51.41 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.4786, allocations: 109.8 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.4786, allocations: 33.7 kB / 1.368 GB, free: 9.621 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 7.514e-05/0.4787, allocations: 96.08 kB / 1.368 GB, free: 9.523 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.4787, allocations: 11.84 kB / 1.368 GB, free: 9.512 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.176e-05/0.4788, allocations: 37.7 kB / 1.368 GB, free: 9.469 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4789, allocations: 322.8 kB / 1.368 GB, free: 9.145 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.4791, allocations: 73.67 kB / 1.368 GB, free: 9.066 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.4793, allocations: 117 kB / 1.368 GB, free: 8.934 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.4796, allocations: 133 kB / 1.368 GB, free: 8.785 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4796, allocations: 4 kB / 1.368 GB, free: 8.781 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004738/0.4801, allocations: 232.9 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.4801, allocations: 41.69 kB / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4801, allocations: 0 / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4801, allocations: 0 / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.988e-05/0.4802, allocations: 15.98 kB / 1.369 GB, free: 8.473 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4803, allocations: 0 / 1.369 GB, free: 8.473 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.4804, allocations: 27.97 kB / 1.369 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.4805, allocations: 12.05 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * 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.000114/0.4806, allocations: 129.7 kB / 1.369 GB, free: 8.297 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.4806, allocations: 7.953 kB / 1.369 GB, free: 8.289 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.4809, allocations: 114 kB / 1.369 GB, free: 8.168 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.4809, allocations: 0 / 1.369 GB, free: 8.168 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4809, allocations: 4 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.4809, allocations: 3.938 kB / 1.369 GB, free: 8.16 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000456/0.4814, allocations: 306.5 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4814, allocations: 0 / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.993e-05/0.4814, allocations: 11.98 kB / 1.369 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4814, allocations: 480 / 1.369 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.4814, allocations: 4 kB / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.4815, allocations: 0 / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4815, allocations: 80 / 1.369 GB, free: 7.809 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003293/0.4818, allocations: 215.3 kB / 1.369 GB, free: 7.582 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.196e-05/0.4818, allocations: 15.89 kB / 1.369 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.4818, allocations: 4 kB / 1.369 GB, free: 7.562 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.984e-05/0.4819, allocations: 7.984 kB / 1.369 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.4819, allocations: 0 / 1.369 GB, free: 7.555 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.482, allocations: 4 kB / 1.369 GB, free: 7.551 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.036e-05/0.482, allocations: 91.27 kB / 1.37 GB, free: 7.461 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.482, allocations: 0 / 1.37 GB, free: 7.461 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002649/0.4823, allocations: 27.94 kB / 1.37 GB, free: 7.434 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000181/0.4825, allocations: 103.2 kB / 1.37 GB, free: 7.324 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000426/0.4829, allocations: 185 kB / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4829, allocations: 0 / 1.37 GB, free: 7.125 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.483, allocations: 39.91 kB / 1.37 GB, free: 7.086 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.4833, allocations: 8 kB / 1.37 GB, free: 7.078 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004149/0.4837, allocations: 166.7 kB / 1.37 GB, free: 6.891 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.227e-05/0.4838, allocations: 71.47 kB / 1.37 GB, free: 6.801 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.222e-05/0.4838, allocations: 4 kB / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.294e-05/0.4839, allocations: 15.42 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.4839, allocations: 0 / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of Templates: time 0.004664/0.4885, allocations: 1.556 MB / 1.372 GB, free: 5.266 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.7146055996418]