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.001016/0.001016, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001323/0.001323, allocations: 169 kB / 23.02 MB, free: 1.547 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 1.004/1.004, allocations: 177.1 MB / 203.4 MB, free: 5.641 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 1.998/1.998, allocations: 429.5 MB / 0.6733 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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 2.264e-06/2.264e-06, allocations: 0 / 0.8781 GB, free: 6.316 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.541e-05, allocations: 6.141 kB / 0.8782 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001395/0.00142, allocations: 0.744 MB / 0.8789 GB, free: 5.59 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.002799, allocations: 1.244 MB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.155e-05/0.002861, allocations: 7.938 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.391e-05/0.002895, allocations: 4.812 kB / 0.8801 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.551e-05/0.00298, allocations: 7.922 kB / 0.8801 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004774/0.003458, allocations: 149.5 kB / 0.8803 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.003625, allocations: 111.8 kB / 0.8804 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.003731, allocations: 15.92 kB / 0.8804 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.003849, allocations: 68.91 kB / 0.8804 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.711e-05/0.003936, allocations: 35.89 kB / 0.8805 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.003962, allocations: 15.98 kB / 0.8805 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.16e-05/0.004034, allocations: 28.7 kB / 0.8805 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.004058, allocations: 4.531 kB / 0.8805 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.43e-05/0.004112, allocations: 39.89 kB / 0.8806 GB, free: 3.859 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.004276, allocations: 97.19 kB / 0.8807 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004278, allocations: 0 / 0.8807 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.182e-06/0.004279, allocations: 0 / 0.8807 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.004285, allocations: 0 / 0.8807 GB, free: 3.766 MB / 0.8386 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.0005231/0.004808, allocations: 426.8 kB / 0.8811 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.004853, allocations: 16.72 kB / 0.8811 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.00498, allocations: 20.81 kB / 0.8811 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.941e-05/0.005069, allocations: 113.7 kB / 0.8812 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.005085, allocations: 8.375 kB / 0.8812 GB, free: 3.125 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.005101, allocations: 4.375 kB / 0.8812 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.005238, allocations: 71.52 kB / 0.8813 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.005247, allocations: 5.406 kB / 0.8813 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.005258, allocations: 384 / 0.8813 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.005265, allocations: 384 / 0.8813 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.792e-05/0.005303, allocations: 11.94 kB / 0.8813 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003993/0.005703, allocations: 308.6 kB / 0.8816 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.068e-05/0.005793, allocations: 44.02 kB / 0.8816 GB, free: 2.637 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.694e-05/0.00582, allocations: 15.77 kB / 0.8817 GB, free: 2.617 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.005839, allocations: 5.125 kB / 0.8817 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/0.005939, allocations: 72.98 kB / 0.8817 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.00594, allocations: 0 / 0.8817 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002037/0.006144, allocations: 95 kB / 0.8818 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.006182, allocations: 63.39 kB / 0.8819 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/0.006268, allocations: 169.9 kB / 0.882 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.006285, allocations: 29.7 kB / 0.8821 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.006343, allocations: 142.3 kB / 0.8822 GB, free: 1.996 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.006362, allocations: 15.89 kB / 0.8822 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.006413, allocations: 43.36 kB / 0.8823 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.006531, allocations: 0.4884 MB / 0.8827 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.281e-05/0.006604, allocations: 57.67 kB / 0.8828 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.006683, allocations: 104.4 kB / 0.8829 GB, free: 1.242 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.517e-05/0.006778, allocations: 108.4 kB / 0.883 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.006781, allocations: 1.094 kB / 0.883 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000204/0.006985, allocations: 208.8 kB / 0.8832 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.007018, allocations: 43.22 kB / 0.8832 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.007023, allocations: 0 / 0.8832 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.007039, allocations: 4 kB / 0.8832 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.391e-05/0.007113, allocations: 8 kB / 0.8832 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.007118, allocations: 5.094 kB / 0.8833 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.471e-05/0.007203, allocations: 27.91 kB / 0.8833 GB, free: 0.8008 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.007217, allocations: 8.062 kB / 0.8833 GB, free: 0.793 MB / 0.8386 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.969e-05/0.007297, allocations: 174.9 kB / 0.8835 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.007308, allocations: 11.89 kB / 0.8835 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.007432, allocations: 82.09 kB / 0.8835 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.007435, allocations: 4 kB / 0.8835 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.007439, allocations: 0 / 0.8835 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.007442, allocations: 0 / 0.8835 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.00764, allocations: 325.3 kB / 0.8839 GB, free: 152 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.007641, allocations: 4 kB / 0.8839 GB, free: 148 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.905e-05/0.00767, allocations: 7.984 kB / 0.8839 GB, free: 140 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.007672, allocations: 4 kB / 0.8839 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.00768, allocations: 0 / 0.8839 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.007681, allocations: 480 / 0.8839 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.007682, allocations: 4 kB / 0.8839 GB, free: 132 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.007812, allocations: 231.8 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-06/0.00782, allocations: 4 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.007838, allocations: 0 / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.757e-05/0.007876, allocations: 7.984 kB / 0.8841 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.922e-05/0.007915, allocations: 7.938 kB / 0.8841 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.007924, allocations: 7.984 kB / 0.8841 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.858e-05/0.007963, allocations: 127.2 kB / 0.8842 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5.1e-08/0.007963, allocations: 4 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001695/0.008132, allocations: 23.95 kB / 0.8843 GB, free: 15.7 MB / 0.8542 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.0001078/0.00824, allocations: 107.2 kB / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001907/0.008431, allocations: 160.7 kB / 0.8845 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.008432, allocations: 0 / 0.8845 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.00847, allocations: 23.67 kB / 0.8846 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002048/0.008675, allocations: 28.73 kB / 0.8846 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.009225, allocations: 166 kB / 0.8847 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.855e-05/0.009263, allocations: 59.34 kB / 0.8848 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.245e-05/0.009286, allocations: 4 kB / 0.8848 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.009311, allocations: 12.5 kB / 0.8848 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of SimCode: time 6.51e-07/0.009312, allocations: 3.938 kB / 0.8848 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of Templates: time 0.004016/0.01333, allocations: 1.663 MB / 0.8864 GB, free: 13.44 MB / 0.8542 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.290623430162668]