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.001024/0.001024, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001676/0.001676, allocations: 169 kB / 23.27 MB, free: 1.223 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.098/1.098, allocations: 177.2 MB / 203.7 MB, free: 5.523 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.422/2.422, allocations: 438.1 MB / 0.682 GB, free: 14.14 MB / 0.6511 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.805e-06/2.805e-06, allocations: 0 / 0.8897 GB, free: 9.746 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.03e-05/3.31e-05, allocations: 5.547 kB / 0.8897 GB, free: 9.742 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002197/0.00223, allocations: 0.748 MB / 0.8905 GB, free: 8.996 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001793/0.004023, allocations: 1.228 MB / 0.8917 GB, free: 7.754 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.547e-05/0.004088, allocations: 3.938 kB / 0.8917 GB, free: 7.75 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.004123, allocations: 3.938 kB / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 9.581e-05/0.004219, allocations: 7.922 kB / 0.8917 GB, free: 7.738 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006162/0.004835, allocations: 147.5 kB / 0.8918 GB, free: 7.594 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.005036, allocations: 119.7 kB / 0.8919 GB, free: 7.477 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.005144, allocations: 11.94 kB / 0.8919 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.005305, allocations: 67.94 kB / 0.892 GB, free: 7.398 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.005406, allocations: 39.88 kB / 0.892 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.005435, allocations: 8 kB / 0.8921 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.006e-05/0.005525, allocations: 27.98 kB / 0.8921 GB, free: 7.324 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.555e-05/0.005551, allocations: 11.92 kB / 0.8921 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.942e-05/0.00561, allocations: 39.95 kB / 0.8921 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.005793, allocations: 95.69 kB / 0.8922 GB, free: 7.18 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.005796, allocations: 0 / 0.8922 GB, free: 7.18 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.313e-06/0.005798, allocations: 4 kB / 0.8922 GB, free: 7.176 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.005802, allocations: 0 / 0.8922 GB, free: 7.176 MB / 0.8542 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.0005156/0.006318, allocations: 438.1 kB / 0.8926 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.006362, allocations: 8.031 kB / 0.8927 GB, free: 6.695 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.00648, allocations: 16.89 kB / 0.8927 GB, free: 6.68 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.006586, allocations: 116.6 kB / 0.8928 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.006605, allocations: 4.375 kB / 0.8928 GB, free: 6.535 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.006622, allocations: 4.375 kB / 0.8928 GB, free: 6.531 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.006753, allocations: 70.88 kB / 0.8929 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.006762, allocations: 192 / 0.8929 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.006772, allocations: 4.375 kB / 0.8929 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.006778, allocations: 384 / 0.8929 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.286e-05/0.006811, allocations: 11.92 kB / 0.8929 GB, free: 6.438 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003859/0.007197, allocations: 292.3 kB / 0.8931 GB, free: 6.125 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 8.297e-05/0.00728, allocations: 39 kB / 0.8932 GB, free: 6.074 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.095e-05/0.0073, allocations: 11.77 kB / 0.8932 GB, free: 6.059 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.007322, allocations: 4 kB / 0.8932 GB, free: 6.055 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/0.007439, allocations: 77.02 kB / 0.8933 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.00744, allocations: 4 kB / 0.8933 GB, free: 5.961 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0002093/0.00765, allocations: 85.5 kB / 0.8934 GB, free: 5.871 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.007688, allocations: 59.41 kB / 0.8934 GB, free: 5.801 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.537e-05/0.007784, allocations: 165.9 kB / 0.8936 GB, free: 5.621 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.007809, allocations: 29.7 kB / 0.8936 GB, free: 5.586 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.007874, allocations: 150.8 kB / 0.8937 GB, free: 5.434 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.007896, allocations: 19.88 kB / 0.8938 GB, free: 5.414 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.422e-05/0.00797, allocations: 35.36 kB / 0.8938 GB, free: 5.371 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.00811, allocations: 0.4923 MB / 0.8943 GB, free: 4.867 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.123e-05/0.008181, allocations: 53.69 kB / 0.8943 GB, free: 4.809 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.95e-05/0.00827, allocations: 92.41 kB / 0.8944 GB, free: 4.695 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.008375, allocations: 100.4 kB / 0.8945 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.008377, allocations: 0 / 0.8945 GB, free: 4.574 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002566/0.008634, allocations: 192.9 kB / 0.8947 GB, free: 4.367 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.008672, allocations: 41.62 kB / 0.8947 GB, free: 4.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.008677, allocations: 0 / 0.8947 GB, free: 4.32 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.008689, allocations: 0 / 0.8947 GB, free: 4.32 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.507e-05/0.008765, allocations: 12 kB / 0.8948 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.008769, allocations: 3.984 kB / 0.8948 GB, free: 4.305 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.008878, allocations: 31.98 kB / 0.8948 GB, free: 4.273 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.008893, allocations: 4 kB / 0.8948 GB, free: 4.27 MB / 0.8542 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 9.673e-05/0.00899, allocations: 168.5 kB / 0.8949 GB, free: 4.094 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.009009, allocations: 15.89 kB / 0.895 GB, free: 4.078 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.009151, allocations: 78.19 kB / 0.895 GB, free: 3.996 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.009155, allocations: 3.984 kB / 0.895 GB, free: 3.992 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.009157, allocations: 4 kB / 0.895 GB, free: 3.988 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.009161, allocations: 0 / 0.895 GB, free: 3.988 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.009408, allocations: 302.4 kB / 0.8953 GB, free: 3.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.00941, allocations: 0 / 0.8953 GB, free: 3.66 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.203e-05/0.009442, allocations: 11.98 kB / 0.8953 GB, free: 3.648 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.197e-06/0.009446, allocations: 7.938 kB / 0.8954 GB, free: 3.641 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.009451, allocations: 0 / 0.8954 GB, free: 3.641 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.009452, allocations: 0 / 0.8954 GB, free: 3.641 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.009454, allocations: 0 / 0.8954 GB, free: 3.641 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.009582, allocations: 223.9 kB / 0.8956 GB, free: 3.402 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.588e-06/0.009591, allocations: 11.89 kB / 0.8956 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.412e-05/0.009605, allocations: 4 kB / 0.8956 GB, free: 3.387 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.523e-05/0.009641, allocations: 4 kB / 0.8956 GB, free: 3.383 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.009668, allocations: 15.86 kB / 0.8956 GB, free: 3.367 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.009672, allocations: 4 kB / 0.8956 GB, free: 3.363 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.327e-05/0.009716, allocations: 135.2 kB / 0.8957 GB, free: 3.23 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.009716, allocations: 0 / 0.8957 GB, free: 3.23 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001604/0.009876, allocations: 20 kB / 0.8958 GB, free: 3.211 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.0001185/0.009994, allocations: 107.2 kB / 0.8959 GB, free: 3.098 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001476/0.01014, allocations: 152.7 kB / 0.896 GB, free: 2.926 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01014, allocations: 0 / 0.896 GB, free: 2.926 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.127e-05/0.01018, allocations: 27.78 kB / 0.896 GB, free: 2.895 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.01037, allocations: 16.73 kB / 0.896 GB, free: 2.879 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003966/0.01076, allocations: 161.9 kB / 0.8962 GB, free: 2.691 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.314e-05/0.0108, allocations: 63.34 kB / 0.8963 GB, free: 2.609 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.387e-05/0.01082, allocations: 4 kB / 0.8963 GB, free: 2.605 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.942e-05/0.0109, allocations: 90.19 kB / 0.8963 GB, free: 2.516 MB / 0.8542 GB Notification: Performance of SimCode: time 6.81e-07/0.0109, allocations: 0 / 0.8963 GB, free: 2.516 MB / 0.8542 GB Notification: Performance of Templates: time 0.00322/0.01412, allocations: 1.682 MB / 0.898 GB, free: 0.8711 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.408421057276428]