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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 114.8 kB / 17.08 MB, free: 5.953 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.001309/0.001309, allocations: 193.2 kB / 20.03 MB, free: 3.027 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.466/1.466, allocations: 222.9 MB / 245.7 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.955/2.955, allocations: 489.3 MB / 0.7687 GB, free: 3.785 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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=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: Performance of FrontEnd - loaded program: time 0.002084/0.002084, allocations: 63.91 kB / 1.103 GB, free: 0.8203 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9472/0.9493, allocations: 163.8 MB / 1.263 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001935/0.9513, allocations: 0.7271 MB / 1.263 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001468/0.9528, allocations: 1.188 MB / 1.264 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.872e-05/0.9528, allocations: 1 kB / 1.264 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.045e-05/0.9529, allocations: 4.547 kB / 1.264 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.485e-05/0.9529, allocations: 11.2 kB / 1.264 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.9534, allocations: 148.5 kB / 1.265 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.9537, allocations: 121 kB / 1.265 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.569e-05/0.9538, allocations: 20.81 kB / 1.265 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.442e-05/0.9539, allocations: 48.44 kB / 1.265 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.954, allocations: 46.95 kB / 1.265 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/0.954, allocations: 9.625 kB / 1.265 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.139e-05/0.9541, allocations: 28.28 kB / 1.265 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.542e-05/0.9541, allocations: 14.03 kB / 1.265 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.719e-05/0.9542, allocations: 38.02 kB / 1.265 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.9544, allocations: 112.9 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.9544, allocations: 0.8438 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.144e-06/0.9544, allocations: 0.7031 kB / 1.265 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.9544, allocations: 0 / 1.265 GB, free: 6.414 MB / 0.9981 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.0005548/0.955, allocations: 408.2 kB / 1.265 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.9551, allocations: 10.09 kB / 1.265 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.539e-05/0.9551, allocations: 9.578 kB / 1.265 GB, free: 6 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.466e-05/0.9552, allocations: 177.1 kB / 1.266 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.9552, allocations: 4.078 kB / 1.266 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.9553, allocations: 10.03 kB / 1.266 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.9555, allocations: 69.92 kB / 1.266 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.9555, allocations: 4.188 kB / 1.266 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.9555, allocations: 3.938 kB / 1.266 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.9555, allocations: 2.219 kB / 1.266 GB, free: 5.738 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.9557, allocations: 38.67 kB / 1.266 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004328/0.9562, allocations: 317.9 kB / 1.266 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.9563, allocations: 57.62 kB / 1.266 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.9564, allocations: 29.44 kB / 1.266 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.9565, allocations: 0.8125 kB / 1.266 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.9567, allocations: 91.19 kB / 1.266 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.522e-06/0.9567, allocations: 0 / 1.266 GB, free: 5.328 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004604/0.9572, allocations: 142 kB / 1.266 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.9572, allocations: 58.19 kB / 1.266 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.565e-05/0.9573, allocations: 121.5 kB / 1.266 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.9573, allocations: 28.27 kB / 1.267 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.114e-05/0.9574, allocations: 89.38 kB / 1.267 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.9574, allocations: 16.14 kB / 1.267 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.9575, allocations: 41.12 kB / 1.267 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.9575, allocations: 318.6 kB / 1.267 GB, free: 4.613 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.9577, allocations: 48.11 kB / 1.267 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.9579, allocations: 76.33 kB / 1.267 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.9582, allocations: 133.2 kB / 1.267 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9582, allocations: 0 / 1.267 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004465/0.9586, allocations: 199.1 kB / 1.267 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.9587, allocations: 35.78 kB / 1.267 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.9587, allocations: 0.8125 kB / 1.267 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.9587, allocations: 5.406 kB / 1.267 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.9588, allocations: 12.38 kB / 1.267 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.9588, allocations: 1.5 kB / 1.267 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.9591, allocations: 42.45 kB / 1.267 GB, free: 4.309 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.9591, allocations: 12.08 kB / 1.268 GB, free: 4.305 MB / 0.9981 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 7.799e-05/0.9592, allocations: 120.4 kB / 1.268 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.515e-05/0.9592, allocations: 10.86 kB / 1.268 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003196/0.9595, allocations: 116.1 kB / 1.268 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.9595, allocations: 2.297 kB / 1.268 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.9595, allocations: 0 / 1.268 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.9596, allocations: 1.266 kB / 1.268 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003985/0.96, allocations: 361.8 kB / 1.268 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.96, allocations: 4.094 kB / 1.268 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.558e-05/0.96, allocations: 9.828 kB / 1.268 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.9601, allocations: 5.266 kB / 1.268 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.9601, allocations: 2.516 kB / 1.268 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.9601, allocations: 0 / 1.268 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.9601, allocations: 1.953 kB / 1.268 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.9604, allocations: 205.3 kB / 1.268 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.9604, allocations: 92.05 kB / 1.268 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.9604, allocations: 2.141 kB / 1.268 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.024e-05/0.9605, allocations: 6.375 kB / 1.268 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.029e-05/0.9606, allocations: 9.766 kB / 1.268 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.9606, allocations: 6.328 kB / 1.268 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.715e-05/0.9606, allocations: 93.61 kB / 1.269 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9607, allocations: 0 / 1.269 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002747/0.9609, allocations: 28.58 kB / 1.269 GB, free: 3.414 MB / 0.9981 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.0001408/0.9611, allocations: 105.1 kB / 1.269 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004012/0.9615, allocations: 169.2 kB / 1.269 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9615, allocations: 0 / 1.269 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.9616, allocations: 37.84 kB / 1.269 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.9619, allocations: 14.41 kB / 1.269 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.9623, allocations: 194 kB / 1.269 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.9624, allocations: 0.6854 MB / 1.27 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.9625, allocations: 11.12 kB / 1.27 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.9625, allocations: 0.75 kB / 1.27 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of Templates: time 0.003857/0.9663, allocations: 1.201 MB / 1.271 GB, free: 2.25 MB / 0.9981 GB " [Timeout remaining time 299] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.511541235959157]