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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.764/2.764, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004771/0.0004771, allocations: 8 kB / 0.8708 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7994/0.7999, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.0009658/0.8009, allocations: 457.5 kB / 1.021 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.8023, allocations: 1.136 MB / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.287e-05/0.8024, allocations: 0 / 1.022 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.158e-05/0.8024, allocations: 7.922 kB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.06e-05/0.8025, allocations: 15.92 kB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.803, allocations: 118.8 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.806e-05/0.8031, allocations: 59.92 kB / 1.023 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.764e-05/0.8032, allocations: 4 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.474e-05/0.8033, allocations: 43.89 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.401e-05/0.8033, allocations: 35.89 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.8034, allocations: 4 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.223e-05/0.8034, allocations: 23.97 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.863e-05/0.8035, allocations: 11.92 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.8035, allocations: 37.7 kB / 1.023 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.8036, allocations: 71.83 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.8037, allocations: 0 / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.8037, allocations: 3.938 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.8037, allocations: 3.938 kB / 1.023 GB, free: 15.07 MB / 0.7794 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.0005344/0.8042, allocations: 394.8 kB / 1.023 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.8043, allocations: 11.98 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.624e-05/0.8043, allocations: 8 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.8044, allocations: 174.9 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.8045, allocations: 11.94 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.8045, allocations: 8 kB / 1.023 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.8047, allocations: 73.61 kB / 1.023 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.8047, allocations: 0 / 1.023 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.8047, allocations: 0 / 1.023 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.8047, allocations: 11.98 kB / 1.023 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.8049, allocations: 51.95 kB / 1.023 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.8054, allocations: 320.8 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.8056, allocations: 58.48 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.8056, allocations: 4 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.8058, allocations: 95.52 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.8058, allocations: 0 / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004323/0.8063, allocations: 153.5 kB / 1.024 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.8063, allocations: 55.41 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.846e-05/0.8064, allocations: 113.8 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.8065, allocations: 33.7 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.487e-05/0.8065, allocations: 92.23 kB / 1.024 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.002e-05/0.8066, allocations: 15.73 kB / 1.024 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.449e-05/0.8066, allocations: 8 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.8067, allocations: 318.8 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.8069, allocations: 55.97 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.8071, allocations: 79.77 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.8073, allocations: 89.61 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8073, allocations: 4 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000423/0.8078, allocations: 203.3 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.8078, allocations: 41.72 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.8078, allocations: 3.938 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.8079, allocations: 0 / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.808, allocations: 19.98 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.808, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.8082, allocations: 47.88 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.8082, allocations: 15.92 kB / 1.025 GB, free: 12.3 MB / 0.7794 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.8083, allocations: 119.9 kB / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.8084, allocations: 4 kB / 1.025 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002976/0.8087, allocations: 129.9 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.8087, allocations: 4 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.8087, allocations: 0 / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.8087, allocations: 0 / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.8091, allocations: 374.4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8091, allocations: 0 / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.148e-05/0.8092, allocations: 15.98 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.8092, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.8092, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.8092, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.8092, allocations: 4 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.8095, allocations: 215.4 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.8096, allocations: 89.02 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.8096, allocations: 4 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.743e-05/0.8097, allocations: 11.98 kB / 1.026 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.8098, allocations: 7.984 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/0.8098, allocations: 4 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.259e-05/0.8098, allocations: 87.27 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8098, allocations: 0 / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002486/0.8101, allocations: 24 kB / 1.026 GB, free: 11.12 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001358/0.8102, allocations: 107.2 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003671/0.8106, allocations: 187.5 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.8106, allocations: 0 / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.8107, allocations: 44.03 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.8109, allocations: 23.94 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003474/0.8113, allocations: 175.2 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.8116, allocations: 0.6929 MB / 1.027 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.248e-05/0.8116, allocations: 4.188 kB / 1.027 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.556e-05/0.8116, allocations: 11.44 kB / 1.027 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.8116, allocations: 0 / 1.027 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of Templates: time 0.00373/0.8154, allocations: 1.22 MB / 1.029 GB, free: 8.613 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches