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.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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01021/0.01021, allocations: 105.4 kB / 15.74 MB, free: 6.039 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.001803/0.001803, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.914/2.914, allocations: 461.8 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 67.88 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4004/0.4019, allocations: 157.4 MB / 1.208 GB, free: 9.734 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002511/0.4045, allocations: 0.726 MB / 1.208 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00173/0.4063, allocations: 1.182 MB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.485e-05/0.4063, allocations: 7.938 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.539e-05/0.4064, allocations: 3.938 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.38e-05/0.4065, allocations: 15.92 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.4072, allocations: 138.2 kB / 1.21 GB, free: 7.652 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.4074, allocations: 123.8 kB / 1.21 GB, free: 7.531 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.4075, allocations: 15.98 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.668e-05/0.4076, allocations: 51.83 kB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.4077, allocations: 43.83 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.4077, allocations: 8 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.469e-05/0.4078, allocations: 27.98 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.4078, allocations: 11.97 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.746e-05/0.4079, allocations: 39.86 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.4081, allocations: 111.7 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4081, allocations: 0 / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of FrontEnd: time 5.25e-06/0.4081, allocations: 0 / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.4081, allocations: 3.938 kB / 1.21 GB, free: 7.223 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006436/0.4088, allocations: 412.9 kB / 1.211 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.4088, allocations: 8.031 kB / 1.211 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.4089, allocations: 4.938 kB / 1.211 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.409, allocations: 180.2 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.4091, allocations: 4.375 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.4091, allocations: 8.375 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002053/0.4093, allocations: 70.2 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.4093, allocations: 4.172 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.4093, allocations: 3.938 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4093, allocations: 4 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.4095, allocations: 35.95 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.4101, allocations: 328.7 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.4102, allocations: 50.53 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.918e-05/0.4103, allocations: 28.94 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.4104, allocations: 0 / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.4106, allocations: 95.2 kB / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.4106, allocations: 0 / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004553/0.4111, allocations: 133.7 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.4111, allocations: 55.39 kB / 1.212 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4113, allocations: 129.7 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.4113, allocations: 29.7 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.4114, allocations: 92.05 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.4114, allocations: 15.8 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/0.4115, allocations: 37.7 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.4116, allocations: 314.8 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.4118, allocations: 51.95 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.412, allocations: 87.33 kB / 1.212 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.4123, allocations: 129 kB / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4123, allocations: 0 / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004103/0.4127, allocations: 199.2 kB / 1.213 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.4128, allocations: 39.36 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4128, allocations: 3.984 kB / 1.213 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4128, allocations: 4 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.512e-05/0.4129, allocations: 8 kB / 1.213 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.4129, allocations: 3.984 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.4131, allocations: 36.03 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.4132, allocations: 7.984 kB / 1.213 GB, free: 4.387 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: 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 9.792e-05/0.4133, allocations: 129.7 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.4133, allocations: 7.906 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003298/0.4136, allocations: 114 kB / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.4136, allocations: 0 / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4136, allocations: 0 / 1.213 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.4136, allocations: 7.984 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.4141, allocations: 362.4 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4141, allocations: 0 / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.961e-05/0.4142, allocations: 8 kB / 1.213 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4142, allocations: 0 / 1.213 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.4142, allocations: 3.984 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.4142, allocations: 4 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.4142, allocations: 0 / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004112/0.4146, allocations: 215.3 kB / 1.213 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.4147, allocations: 81.11 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.4147, allocations: 0 / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/0.4148, allocations: 12.45 kB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.4148, allocations: 7.938 kB / 1.214 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.4149, allocations: 11.98 kB / 1.214 GB, free: 3.332 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.882e-05/0.4149, allocations: 87.22 kB / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4149, allocations: 0 / 1.214 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003672/0.4153, allocations: 24 kB / 1.214 GB, free: 3.223 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: 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.0001686/0.4155, allocations: 103.2 kB / 1.214 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003983/0.4159, allocations: 171.3 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4159, allocations: 4.125 kB / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.416, allocations: 40.45 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.4163, allocations: 11.98 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003953/0.4167, allocations: 166.6 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.417, allocations: 0.6846 MB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.48e-05/0.417, allocations: 8.281 kB / 1.215 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.4171, allocations: 11.44 kB / 1.215 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.4171, allocations: 0 / 1.215 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of Templates: time 0.004455/0.4215, allocations: 1.402 MB / 1.216 GB, free: 0.5703 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) 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) Reference file matches