Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 112.7 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 189.6 kB / 22.23 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.374/3.374, allocations: 496 MB / 0.7835 GB, free: 33.78 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002394/0.002394, allocations: 59.78 kB / 1.138 GB, free: 33.81 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.416, allocations: 173.6 MB / 1.307 GB, free: 1.816 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002157/0.4181, allocations: 0.7395 MB / 1.308 GB, free: 1.078 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001802/0.4199, allocations: 1.194 MB / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.015e-05/0.42, allocations: 0 / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.003e-05/0.42, allocations: 3.938 kB / 1.309 GB, free: 15.87 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.382e-05/0.4201, allocations: 15.92 kB / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0006127/0.4208, allocations: 138.1 kB / 1.309 GB, free: 15.72 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002007/0.421, allocations: 119.7 kB / 1.309 GB, free: 15.6 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.238e-05/0.421, allocations: 15.98 kB / 1.309 GB, free: 15.59 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.4211, allocations: 51.91 kB / 1.309 GB, free: 15.54 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.4213, allocations: 43.88 kB / 1.31 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.4213, allocations: 8 kB / 1.31 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.4214, allocations: 27.98 kB / 1.31 GB, free: 15.46 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.4214, allocations: 11.92 kB / 1.31 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 8.443e-05/0.4215, allocations: 43.84 kB / 1.31 GB, free: 15.4 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.4217, allocations: 111.6 kB / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.4217, allocations: 0 / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.302e-06/0.4217, allocations: 0 / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.046e-05/0.4217, allocations: 0 / 1.31 GB, free: 15.29 MB / 1.014 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.0006286/0.4223, allocations: 331.8 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4223, allocations: 8.031 kB / 1.31 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.671e-05/0.4224, allocations: 16.89 kB / 1.31 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.4225, allocations: 114.5 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.4225, allocations: 12.3 kB / 1.31 GB, free: 14.76 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.4226, allocations: 8.375 kB / 1.31 GB, free: 14.75 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.4228, allocations: 70.14 kB / 1.31 GB, free: 14.68 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.4228, allocations: 192 / 1.31 GB, free: 14.68 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.4228, allocations: 11.94 kB / 1.31 GB, free: 14.66 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.4228, allocations: 3.938 kB / 1.31 GB, free: 14.66 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.423, allocations: 43.95 kB / 1.31 GB, free: 14.62 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005157/0.4235, allocations: 291.8 kB / 1.311 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.4237, allocations: 54.48 kB / 1.311 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.455e-05/0.4238, allocations: 28.94 kB / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.4238, allocations: 0 / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.424, allocations: 91.31 kB / 1.311 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.424, allocations: 0 / 1.311 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of matching and sorting (n=7): time 0.000448/0.4244, allocations: 141.6 kB / 1.311 GB, free: 13.95 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.4245, allocations: 55.39 kB / 1.311 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.4246, allocations: 109.8 kB / 1.311 GB, free: 13.77 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.4246, allocations: 29.7 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.4247, allocations: 92.09 kB / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.4247, allocations: 11.91 kB / 1.311 GB, free: 13.62 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/0.4248, allocations: 41.69 kB / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001576/0.4249, allocations: 322.8 kB / 1.312 GB, free: 13.25 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.4251, allocations: 51.95 kB / 1.312 GB, free: 13.2 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.4253, allocations: 71.39 kB / 1.312 GB, free: 13.12 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002725/0.4255, allocations: 133 kB / 1.312 GB, free: 12.97 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.4255, allocations: 0 / 1.312 GB, free: 12.97 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004384/0.426, allocations: 199.2 kB / 1.312 GB, free: 12.77 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 4.544e-05/0.426, allocations: 41.64 kB / 1.312 GB, free: 12.72 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.426, allocations: 3.984 kB / 1.312 GB, free: 12.71 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.426, allocations: 4 kB / 1.312 GB, free: 12.71 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.145e-05/0.4261, allocations: 12.06 kB / 1.312 GB, free: 12.7 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.4261, allocations: 480 / 1.312 GB, free: 12.7 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.4263, allocations: 35.89 kB / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.4264, allocations: 15.98 kB / 1.312 GB, free: 12.65 MB / 1.014 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.0001203/0.4265, allocations: 121.7 kB / 1.312 GB, free: 12.52 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.4265, allocations: 7.953 kB / 1.312 GB, free: 12.51 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000305/0.4268, allocations: 121.9 kB / 1.312 GB, free: 12.38 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4268, allocations: 0 / 1.312 GB, free: 12.38 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.4268, allocations: 3.938 kB / 1.312 GB, free: 12.38 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.4268, allocations: 7.984 kB / 1.312 GB, free: 12.37 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.4273, allocations: 329.6 kB / 1.313 GB, free: 12 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4273, allocations: 7.984 kB / 1.313 GB, free: 11.99 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.658e-05/0.4273, allocations: 11.94 kB / 1.313 GB, free: 11.98 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4273, allocations: 0 / 1.313 GB, free: 11.98 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.4273, allocations: 7.984 kB / 1.313 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.4273, allocations: 0 / 1.313 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4274, allocations: 0 / 1.313 GB, free: 11.97 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003144/0.4277, allocations: 203.4 kB / 1.313 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.197e-05/0.4277, allocations: 3.953 kB / 1.313 GB, free: 11.75 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.4277, allocations: 8 kB / 1.313 GB, free: 11.75 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.4278, allocations: 11.98 kB / 1.313 GB, free: 11.73 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.4278, allocations: 3.938 kB / 1.313 GB, free: 11.73 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.4278, allocations: 7.984 kB / 1.313 GB, free: 11.72 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.513e-05/0.4279, allocations: 91.22 kB / 1.313 GB, free: 11.63 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7.1e-08/0.4279, allocations: 0 / 1.313 GB, free: 11.63 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002591/0.4282, allocations: 16 kB / 1.313 GB, free: 11.62 MB / 1.014 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.0001516/0.4283, allocations: 112 kB / 1.313 GB, free: 11.5 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003966/0.4287, allocations: 151.3 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4287, allocations: 4 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.4288, allocations: 36.5 kB / 1.313 GB, free: 11.3 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.4291, allocations: 21.2 kB / 1.313 GB, free: 11.28 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004485/0.4296, allocations: 159 kB / 1.313 GB, free: 11.1 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.43, allocations: 0.6884 MB / 1.314 GB, free: 10.39 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.9e-05/0.43, allocations: 15.62 kB / 1.314 GB, free: 10.37 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.925e-05/0.4301, allocations: 11.44 kB / 1.314 GB, free: 10.36 MB / 1.014 GB
Notification: Performance of SimCode: time 2.91e-07/0.4301, allocations: 0 / 1.314 GB, free: 10.36 MB / 1.014 GB
Notification: Performance of Templates: time 0.005241/0.4353, allocations: 1.429 MB / 1.316 GB, free: 8.945 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.537526123225689]