Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.467/1.467, allocations: 249.5 MB / 257 MB, free: 6.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001033, allocations: 180.8 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.3 MB / 0.5671 GB, free: 15.89 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000951/0.0009511, allocations: 98.52 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.771e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2416, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7419/0.9835, allocations: 132.1 MB / 1.014 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/0.984, allocations: 76.5 kB / 1.014 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004319/0.9883, allocations: 1.464 MB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.853e-06/0.9883, allocations: 0 / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.9883, allocations: 0 / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005022/0.9888, allocations: 362.1 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.9889, allocations: 12.03 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.989, allocations: 11.34 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.9891, allocations: 175 kB / 1.016 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.9891, allocations: 7.938 kB / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.9892, allocations: 0 / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.826e-05/0.9893, allocations: 18.69 kB / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.217e-05/0.9894, allocations: 48.38 kB / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.9894, allocations: 8 kB / 1.016 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.9894, allocations: 3.984 kB / 1.016 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.9894, allocations: 0 / 1.016 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00042/0.9898, allocations: 270.8 kB / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.399e-05/0.9899, allocations: 40.02 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.567e-05/0.99, allocations: 20.48 kB / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.99, allocations: 0 / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/0.9901, allocations: 69.33 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.9902, allocations: 0 / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001904/0.9904, allocations: 71.06 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.9904, allocations: 51.41 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.896e-05/0.9905, allocations: 104.7 kB / 1.017 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.9905, allocations: 29.7 kB / 1.017 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.9906, allocations: 91.72 kB / 1.017 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.9906, allocations: 23.11 kB / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.9906, allocations: 0 / 1.017 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.9907, allocations: 316.8 kB / 1.017 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.062e-05/0.9908, allocations: 11.38 kB / 1.017 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.161e-05/0.9908, allocations: 37.5 kB / 1.017 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.267e-05/0.9909, allocations: 11.56 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.9909, allocations: 7.938 kB / 1.017 GB, free: 2.391 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001121/0.991, allocations: 72.02 kB / 1.018 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.991, allocations: 11.94 kB / 1.018 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.991, allocations: 0 / 1.018 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.9911, allocations: 0 / 1.018 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.9912, allocations: 19.92 kB / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.9912, allocations: 4 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.127e-05/0.9913, allocations: 19.95 kB / 1.018 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.9913, allocations: 7.953 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 7.281e-05/0.9914, allocations: 108.2 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.9914, allocations: 3.906 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001473/0.9916, allocations: 81.27 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.9916, allocations: 0 / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.9916, allocations: 4.188 kB / 1.018 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.9916, allocations: 4 kB / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003417/0.992, allocations: 325.5 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.992, allocations: 3.25 kB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.631e-05/0.992, allocations: 15.98 kB / 1.018 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.9921, allocations: 0 / 1.018 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.9921, allocations: 4 kB / 1.018 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.9921, allocations: 3.938 kB / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9921, allocations: 0 / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.9922, allocations: 179.1 kB / 1.018 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.9923, allocations: 77.2 kB / 1.018 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.9923, allocations: 5.484 kB / 1.018 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.9925, allocations: 19.98 kB / 1.018 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.269e-05/0.9925, allocations: 7.984 kB / 1.018 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.9925, allocations: 7.375 kB / 1.018 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.854e-05/0.9926, allocations: 86.77 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9926, allocations: 0 / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002123/0.9928, allocations: 12 kB / 1.019 GB, free: 1.297 MB / 0.6355 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * 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.0001392/0.993, allocations: 99.2 kB / 1.019 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001211/0.9931, allocations: 38.94 kB / 1.019 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.9931, allocations: 4.062 kB / 1.019 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.9e-05/0.9931, allocations: 27.66 kB / 1.019 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.9934, allocations: 7.75 kB / 1.019 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002686/0.9936, allocations: 98.83 kB / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.9939, allocations: 0.6923 MB / 1.019 GB, free: 304 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.544e-05/0.9939, allocations: 11.86 kB / 1.019 GB, free: 292 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.059e-05/0.994, allocations: 11.44 kB / 1.019 GB, free: 284 kB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.994, allocations: 0 / 1.019 GB, free: 284 kB / 0.6355 GB Notification: Performance of Templates: time 0.002634/0.9966, allocations: 0.7009 MB / 1.02 GB, free: 15.6 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches