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.001059/0.001059, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.01049/0.01049, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.606/1.606, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.048/3.048, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004859/0.000486, allocations: 8.219 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4488, allocations: 159.6 MB / 1.059 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001491/0.4503, allocations: 458.9 kB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002358/0.4527, allocations: 1.197 MB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.534e-05/0.4528, allocations: 0 / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.148e-05/0.4529, allocations: 7.938 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.453, allocations: 3.938 kB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007905/0.4538, allocations: 127 kB / 1.06 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.454, allocations: 103.8 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.4542, allocations: 15.98 kB / 1.061 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.4543, allocations: 43.89 kB / 1.061 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.4545, allocations: 35.84 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.019e-05/0.4545, allocations: 4 kB / 1.061 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.169e-05/0.4546, allocations: 15.98 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.4547, allocations: 15.97 kB / 1.061 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.4548, allocations: 61.55 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.455, allocations: 103.7 kB / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.455, allocations: 0 / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.856e-06/0.455, allocations: 0 / 1.061 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.4551, allocations: 4 kB / 1.061 GB, free: 3.238 MB / 0.8106 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.0007949/0.4559, allocations: 397.2 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.267e-05/0.4559, allocations: 8.031 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.456, allocations: 8.938 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.4562, allocations: 172.2 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.4562, allocations: 12.36 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.4563, allocations: 12.31 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.4566, allocations: 74.2 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4566, allocations: 4.188 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.4566, allocations: 3.938 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.4566, allocations: 0 / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002155/0.4568, allocations: 55.95 kB / 1.062 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.4575, allocations: 328.6 kB / 1.062 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.4577, allocations: 58.55 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.4579, allocations: 28.94 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.4579, allocations: 4 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002483/0.4582, allocations: 95.3 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.4582, allocations: 0 / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005268/0.4587, allocations: 157.6 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.4588, allocations: 55.41 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.4589, allocations: 109.8 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.4589, allocations: 33.7 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.803e-05/0.459, allocations: 88.14 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.4591, allocations: 15.8 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.4591, allocations: 17.72 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4593, allocations: 323.1 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.4595, allocations: 55.97 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.4597, allocations: 91.27 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000319/0.46, allocations: 141 kB / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.46, allocations: 0 / 1.063 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005182/0.4606, allocations: 207.2 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.207e-05/0.4606, allocations: 41.69 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4606, allocations: 0 / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.4607, allocations: 4 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.4608, allocations: 15.98 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4608, allocations: 64 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.461, allocations: 47.95 kB / 1.063 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.4611, allocations: 8 kB / 1.063 GB, free: 352 kB / 0.8106 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.000122/0.4612, allocations: 137.6 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.4612, allocations: 8 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003361/0.4616, allocations: 126 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.4616, allocations: 0 / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4616, allocations: 4 kB / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4616, allocations: 4 kB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000516/0.4621, allocations: 370.4 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4622, allocations: 0 / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.048e-05/0.4622, allocations: 15.98 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4622, allocations: 8 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.4623, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4623, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4623, allocations: 0 / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/0.4627, allocations: 219.3 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.4627, allocations: 81.11 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.4628, allocations: 3.984 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.354e-05/0.4629, allocations: 12 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/0.4629, allocations: 7.922 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.4629, allocations: 4 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.119e-05/0.463, allocations: 91.27 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.463, allocations: 4 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002768/0.4633, allocations: 23.91 kB / 1.064 GB, free: 15.14 MB / 0.8262 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.0002292/0.4635, allocations: 107.6 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000437/0.464, allocations: 179.3 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.464, allocations: 0 / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.4641, allocations: 51.89 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.4645, allocations: 7.984 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000452/0.4649, allocations: 181.4 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.4653, allocations: 0.6887 MB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.123e-05/0.4653, allocations: 4 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.4654, allocations: 7.438 kB / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of SimCode: time 8.12e-07/0.4654, allocations: 0 / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of Templates: time 0.004809/0.4702, allocations: 1.283 MB / 1.067 GB, free: 12.59 MB / 0.8262 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