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.0009497/0.0009497, allocations: 80.88 kB / 19.94 MB, free: 4.551 MB / 18.57 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.0009966/0.0009966, allocations: 177 kB / 23.36 MB, free: 1.137 MB / 18.57 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 0.9514/0.9514, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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 2.346/2.346, allocations: 438.8 MB / 0.6827 GB, free: 13.54 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.436e-05/2.612e-05, allocations: 4.984 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001668/0.001694, allocations: 0.7293 MB / 0.8393 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.003142, allocations: 1.255 MB / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.164e-05/0.003194, allocations: 0 / 0.8405 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.969e-05/0.003224, allocations: 3.938 kB / 0.8405 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.723e-05/0.003301, allocations: 11.88 kB / 0.8405 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.003773, allocations: 139.5 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.003934, allocations: 115.8 kB / 0.8408 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 7.812e-05/0.004012, allocations: 23.91 kB / 0.8408 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.004128, allocations: 71.83 kB / 0.8409 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.004213, allocations: 35.94 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.004236, allocations: 8 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 7.163e-05/0.004308, allocations: 23.98 kB / 0.8409 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.502e-05/0.004333, allocations: 19.91 kB / 0.8409 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.302e-05/0.004376, allocations: 27.98 kB / 0.841 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.004535, allocations: 99.73 kB / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.004537, allocations: 0 / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.41e-07/0.004538, allocations: 0 / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.246e-06/0.004541, allocations: 3.938 kB / 0.8411 GB, free: 11.61 MB / 0.8073 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.0004052/0.004946, allocations: 314.4 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.00498, allocations: 12.03 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.873e-05/0.005069, allocations: 8.938 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.086e-05/0.00515, allocations: 113.7 kB / 0.8415 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.005163, allocations: 8.359 kB / 0.8415 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.97e-05/0.005183, allocations: 8.375 kB / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.00529, allocations: 58.94 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.005299, allocations: 4.172 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.005307, allocations: 4.375 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.005314, allocations: 8.312 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.734e-05/0.005342, allocations: 19.86 kB / 0.8416 GB, free: 11 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002825/0.005624, allocations: 180.2 kB / 0.8418 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.173e-05/0.005686, allocations: 22.66 kB / 0.8418 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.794e-05/0.005704, allocations: 12.84 kB / 0.8418 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.005719, allocations: 4.078 kB / 0.8418 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.884e-05/0.005808, allocations: 75.27 kB / 0.8419 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.103e-06/0.005809, allocations: 0 / 0.8419 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001378/0.005947, allocations: 69.59 kB / 0.842 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000291/0.006238, allocations: 51.41 kB / 0.842 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.992e-05/0.006307, allocations: 122.6 kB / 0.8421 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.006329, allocations: 33.7 kB / 0.8421 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.006365, allocations: 84.14 kB / 0.8422 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.006384, allocations: 19.83 kB / 0.8422 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.652e-05/0.006441, allocations: 33.69 kB / 0.8423 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.852e-05/0.006519, allocations: 322.8 kB / 0.8426 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.745e-05/0.006577, allocations: 53.69 kB / 0.8426 GB, free: 9.836 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.967e-05/0.006636, allocations: 69.12 kB / 0.8427 GB, free: 9.75 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.747e-05/0.006724, allocations: 97.02 kB / 0.8428 GB, free: 9.637 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.006726, allocations: 4 kB / 0.8428 GB, free: 9.633 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001641/0.00689, allocations: 157 kB / 0.843 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.006921, allocations: 41.64 kB / 0.843 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.006926, allocations: 0 / 0.843 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.006939, allocations: 4 kB / 0.843 GB, free: 9.41 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.007005, allocations: 15.92 kB / 0.843 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.007008, allocations: 4 kB / 0.843 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.265e-05/0.007101, allocations: 27.91 kB / 0.843 GB, free: 9.363 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.007116, allocations: 12.06 kB / 0.8431 GB, free: 9.352 MB / 0.8073 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.078e-05/0.007187, allocations: 109.8 kB / 0.8432 GB, free: 9.234 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.487e-05/0.007202, allocations: 11.98 kB / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.267e-05/0.007294, allocations: 65.98 kB / 0.8432 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.007297, allocations: 4 kB / 0.8432 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.007298, allocations: 0 / 0.8432 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.007301, allocations: 3.938 kB / 0.8432 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001517/0.007453, allocations: 202.8 kB / 0.8434 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.007455, allocations: 0 / 0.8434 GB, free: 8.926 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.461e-05/0.007489, allocations: 11.92 kB / 0.8434 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.007493, allocations: 7.938 kB / 0.8435 GB, free: 8.906 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.007498, allocations: 0 / 0.8435 GB, free: 8.906 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.0075, allocations: 4 kB / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.007501, allocations: 0 / 0.8435 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.19e-05/0.007593, allocations: 151.6 kB / 0.8436 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.385e-06/0.007601, allocations: 7.953 kB / 0.8436 GB, free: 8.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.007617, allocations: 3.938 kB / 0.8436 GB, free: 8.727 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.279e-05/0.007669, allocations: 7.984 kB / 0.8436 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.007697, allocations: 7.984 kB / 0.8436 GB, free: 8.711 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.007703, allocations: 4 kB / 0.8436 GB, free: 8.707 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.94e-05/0.007722, allocations: 25.25 kB / 0.8437 GB, free: 8.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.1e-08/0.007722, allocations: 0 / 0.8437 GB, free: 8.68 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002121/0.007934, allocations: 16 kB / 0.8437 GB, free: 8.664 MB / 0.8073 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.0001105/0.008045, allocations: 96.28 kB / 0.8438 GB, free: 8.559 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000158/0.008203, allocations: 145.9 kB / 0.8439 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.008206, allocations: 0 / 0.8439 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.209e-05/0.008238, allocations: 21.39 kB / 0.8439 GB, free: 8.371 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.00841, allocations: 16.11 kB / 0.8439 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.008805, allocations: 160.7 kB / 0.8441 GB, free: 8.172 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.791e-05/0.008843, allocations: 59.34 kB / 0.8441 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.395e-05/0.008867, allocations: 4 kB / 0.8441 GB, free: 8.09 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.959e-05/0.008947, allocations: 63.36 kB / 0.8442 GB, free: 8.027 MB / 0.8073 GB Notification: Performance of SimCode: time 6.82e-07/0.008948, allocations: 7.938 kB / 0.8442 GB, free: 8.02 MB / 0.8073 GB Notification: Performance of Templates: time 0.003342/0.01229, allocations: 1.604 MB / 0.8458 GB, free: 6.445 MB / 0.8073 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.206170142162591]