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.001087/0.001087, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009941/0.0009941, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.058/1.058, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.372/2.372, allocations: 429.5 MB / 0.6743 GB, free: 3.906 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 1.844e-06/1.844e-06, allocations: 0 / 0.8794 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.716e-05/1.901e-05, allocations: 6.219 kB / 0.8794 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001329/0.001348, allocations: 0.7394 MB / 0.8801 GB, free: 5.344 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.002655, allocations: 1.245 MB / 0.8813 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.253e-05/0.002717, allocations: 0 / 0.8813 GB, free: 4.09 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.911e-05/0.002756, allocations: 3.938 kB / 0.8813 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.259e-05/0.002839, allocations: 11.88 kB / 0.8813 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000412/0.003251, allocations: 141.4 kB / 0.8815 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.003404, allocations: 123.7 kB / 0.8816 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.185e-05/0.003496, allocations: 17.27 kB / 0.8816 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.00361, allocations: 63.94 kB / 0.8817 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.199e-05/0.003692, allocations: 35.89 kB / 0.8817 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.00372, allocations: 8 kB / 0.8817 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.403e-05/0.003794, allocations: 33.56 kB / 0.8817 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.532e-05/0.003819, allocations: 11.98 kB / 0.8817 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.003864, allocations: 31.92 kB / 0.8818 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.004016, allocations: 99.73 kB / 0.8819 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.004017, allocations: 1.812 kB / 0.8819 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.01e-07/0.004018, allocations: 0 / 0.8819 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.004023, allocations: 3.938 kB / 0.8819 GB, free: 3.52 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.0004673/0.00449, allocations: 430.1 kB / 0.8823 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.004532, allocations: 8.031 kB / 0.8823 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.004632, allocations: 23.58 kB / 0.8823 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.004754, allocations: 108.6 kB / 0.8824 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.00477, allocations: 4.375 kB / 0.8824 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.004785, allocations: 8.375 kB / 0.8824 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.0049, allocations: 66.92 kB / 0.8825 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.004909, allocations: 192 / 0.8825 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.004917, allocations: 384 / 0.8825 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.004923, allocations: 4.375 kB / 0.8825 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.776e-05/0.004951, allocations: 15.88 kB / 0.8825 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003201/0.005271, allocations: 292.3 kB / 0.8828 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.693e-05/0.005338, allocations: 39.05 kB / 0.8828 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.005357, allocations: 15.67 kB / 0.8829 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.005371, allocations: 3.938 kB / 0.8829 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.286e-05/0.005464, allocations: 77.11 kB / 0.8829 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.005466, allocations: 0 / 0.8829 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.000174/0.00564, allocations: 89.56 kB / 0.883 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.005679, allocations: 59.34 kB / 0.8831 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.702e-05/0.005766, allocations: 169.9 kB / 0.8832 GB, free: 1.965 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.005783, allocations: 29.7 kB / 0.8833 GB, free: 1.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.005852, allocations: 142.8 kB / 0.8834 GB, free: 1.785 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.005871, allocations: 15.89 kB / 0.8834 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.005921, allocations: 39.34 kB / 0.8834 GB, free: 1.723 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.006063, allocations: 0.4923 MB / 0.8839 GB, free: 1.219 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.006118, allocations: 57.67 kB / 0.884 GB, free: 1.156 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.448e-05/0.006182, allocations: 92.41 kB / 0.8841 GB, free: 1.043 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.416e-05/0.006267, allocations: 100.4 kB / 0.8842 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.006269, allocations: 0 / 0.8842 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001867/0.006456, allocations: 188.9 kB / 0.8843 GB, free: 0.7188 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.006486, allocations: 41.58 kB / 0.8844 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.00649, allocations: 3.938 kB / 0.8844 GB, free: 0.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.006501, allocations: 4 kB / 0.8844 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.623e-05/0.006567, allocations: 15.98 kB / 0.8844 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.006571, allocations: 0 / 0.8844 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.511e-05/0.006666, allocations: 35.97 kB / 0.8844 GB, free: 0.6133 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.466e-05/0.00668, allocations: 4 kB / 0.8844 GB, free: 0.6094 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 0.0001393/0.00682, allocations: 164.6 kB / 0.8846 GB, free: 448 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.006832, allocations: 11.89 kB / 0.8846 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.006941, allocations: 86.02 kB / 0.8847 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.006943, allocations: 0 / 0.8847 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.006945, allocations: 0 / 0.8847 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.006948, allocations: 0 / 0.8847 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.007123, allocations: 298.5 kB / 0.885 GB, free: 8 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.007124, allocations: 0 / 0.885 GB, free: 8 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.19e-05/0.007166, allocations: 16.05 kB / 0.885 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.007168, allocations: 3.938 kB / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.007173, allocations: 0 / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.007174, allocations: 0 / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.007176, allocations: 0 / 0.885 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.007291, allocations: 227.9 kB / 0.8852 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.097e-05/0.007302, allocations: 11.94 kB / 0.8852 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.007317, allocations: 3.984 kB / 0.8852 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.583e-05/0.007353, allocations: 4 kB / 0.8852 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.007384, allocations: 7.984 kB / 0.8852 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.007388, allocations: 4 kB / 0.8853 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.407e-05/0.007432, allocations: 139.6 kB / 0.8854 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.007432, allocations: 0 / 0.8854 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001848/0.007617, allocations: 23.95 kB / 0.8854 GB, free: 15.55 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.000106/0.007723, allocations: 111.1 kB / 0.8855 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.007882, allocations: 148.7 kB / 0.8857 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-06/0.007884, allocations: 0 / 0.8857 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.258e-05/0.007916, allocations: 27.66 kB / 0.8857 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.008102, allocations: 20.62 kB / 0.8857 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003815/0.008484, allocations: 165.8 kB / 0.8859 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.292e-05/0.008527, allocations: 55.36 kB / 0.8859 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.338e-05/0.00855, allocations: 11.92 kB / 0.8859 GB, free: 14.94 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.014e-05/0.00863, allocations: 86.19 kB / 0.886 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of SimCode: time 5.31e-07/0.008631, allocations: 0 / 0.886 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of Templates: time 0.003334/0.01196, allocations: 1.711 MB / 0.8877 GB, free: 13.19 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: 6.01628660177812]