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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 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.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001199/0.001199, allocations: 197.7 kB / 16.14 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.664/1.664, allocations: 251.6 MB / 0.5088 GB, free: 3.324 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 67.91 kB / 0.6216 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6657/0.6672, allocations: 104.7 MB / 0.7238 GB, free: 13.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.004007/0.6714, allocations: 1.507 MB / 0.7253 GB, free: 11.64 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007591/0.6722, allocations: 260 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.952e-05/0.6722, allocations: 3.938 kB / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.033e-05/0.6723, allocations: 0 / 0.7255 GB, free: 11.38 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.828e-05/0.6724, allocations: 11.92 kB / 0.7255 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.6727, allocations: 27.92 kB / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.857e-05/0.6728, allocations: 51.91 kB / 0.7256 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.6729, allocations: 27.97 kB / 0.7257 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.02e-05/0.673, allocations: 19.88 kB / 0.7257 GB, free: 11.24 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.648e-05/0.673, allocations: 23.91 kB / 0.7257 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.6731, allocations: 0 / 0.7257 GB, free: 11.22 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.714e-05/0.6731, allocations: 4 kB / 0.7257 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.6731, allocations: 15.92 kB / 0.7257 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.807e-05/0.6732, allocations: 23.86 kB / 0.7257 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.6733, allocations: 53.81 kB / 0.7258 GB, free: 11.12 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.6733, allocations: 3.938 kB / 0.7258 GB, free: 11.12 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.012e-06/0.6733, allocations: 0 / 0.7258 GB, free: 11.12 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.363e-06/0.6733, allocations: 4 kB / 0.7258 GB, free: 11.12 MB / 0.545 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.000649/0.674, allocations: 371.3 kB / 0.7261 GB, free: 10.7 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.674, allocations: 8.031 kB / 0.7262 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.6741, allocations: 8.844 kB / 0.7262 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.6742, allocations: 168.3 kB / 0.7263 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.6743, allocations: 4.375 kB / 0.7263 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.6743, allocations: 12.31 kB / 0.7263 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.6745, allocations: 74.2 kB / 0.7264 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.6745, allocations: 192 / 0.7264 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.6745, allocations: 3.938 kB / 0.7264 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.6745, allocations: 0 / 0.7264 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.6747, allocations: 51.89 kB / 0.7265 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006613/0.6754, allocations: 292.7 kB / 0.7267 GB, free: 10 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.6756, allocations: 58.48 kB / 0.7268 GB, free: 9.934 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.6757, allocations: 24.97 kB / 0.7268 GB, free: 9.906 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.6758, allocations: 7.984 kB / 0.7268 GB, free: 9.898 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.6761, allocations: 79.38 kB / 0.7269 GB, free: 9.809 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.6761, allocations: 0 / 0.7269 GB, free: 9.809 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0005172/0.6767, allocations: 133.5 kB / 0.727 GB, free: 9.672 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.6767, allocations: 55.41 kB / 0.7271 GB, free: 9.605 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.6769, allocations: 109.8 kB / 0.7272 GB, free: 9.488 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.6769, allocations: 29.7 kB / 0.7272 GB, free: 9.453 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.869e-05/0.677, allocations: 92.12 kB / 0.7273 GB, free: 9.359 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.6771, allocations: 15.75 kB / 0.7273 GB, free: 9.344 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.6771, allocations: 25.72 kB / 0.7273 GB, free: 9.312 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.6773, allocations: 318.8 kB / 0.7277 GB, free: 8.992 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.6775, allocations: 27.98 kB / 0.7277 GB, free: 8.965 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.6776, allocations: 42.55 kB / 0.7277 GB, free: 8.914 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.6778, allocations: 86.45 kB / 0.7278 GB, free: 8.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.6778, allocations: 0 / 0.7278 GB, free: 8.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002498/0.6781, allocations: 105.5 kB / 0.7279 GB, free: 8.711 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.6781, allocations: 4 kB / 0.7279 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.6781, allocations: 0 / 0.7279 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.6782, allocations: 8.031 kB / 0.7279 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.6783, allocations: 12.17 kB / 0.7279 GB, free: 8.688 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.6783, allocations: 4.562 kB / 0.7279 GB, free: 8.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.752e-05/0.6784, allocations: 19.92 kB / 0.7279 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.6784, allocations: 4 kB / 0.728 GB, free: 8.66 MB / 0.545 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,triggeredMax.y,$PRE.triggeredMax.y,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.6786, allocations: 117.8 kB / 0.7281 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.6786, allocations: 3.906 kB / 0.7281 GB, free: 8.531 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003002/0.6789, allocations: 122 kB / 0.7282 GB, free: 8.406 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.6789, allocations: 0 / 0.7282 GB, free: 8.406 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6789, allocations: 0 / 0.7282 GB, free: 8.406 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.679, allocations: 3.938 kB / 0.7282 GB, free: 8.402 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.6795, allocations: 370.5 kB / 0.7285 GB, free: 7.984 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.6795, allocations: 4 kB / 0.7285 GB, free: 7.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.297e-05/0.6796, allocations: 8 kB / 0.7286 GB, free: 7.973 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.6796, allocations: 3.938 kB / 0.7286 GB, free: 7.969 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.6796, allocations: 3.984 kB / 0.7286 GB, free: 7.965 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6796, allocations: 4 kB / 0.7286 GB, free: 7.961 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.6796, allocations: 0 / 0.7286 GB, free: 7.961 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.6799, allocations: 211.3 kB / 0.7288 GB, free: 7.738 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.68, allocations: 85.02 kB / 0.7288 GB, free: 7.637 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.6801, allocations: 4 kB / 0.7289 GB, free: 7.633 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.6802, allocations: 11.98 kB / 0.7289 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.154e-05/0.6803, allocations: 11.92 kB / 0.7289 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.427e-06/0.6803, allocations: 4 kB / 0.7289 GB, free: 7.605 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.901e-05/0.6803, allocations: 87.27 kB / 0.729 GB, free: 7.52 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6803, allocations: 0 / 0.729 GB, free: 7.52 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002391/0.6806, allocations: 12 kB / 0.729 GB, free: 7.508 MB / 0.545 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) * 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.0001951/0.6808, allocations: 103.2 kB / 0.7291 GB, free: 7.398 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002753/0.6811, allocations: 63.89 kB / 0.7291 GB, free: 7.336 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.6811, allocations: 0 / 0.7291 GB, free: 7.336 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.6812, allocations: 43.91 kB / 0.7292 GB, free: 7.293 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.6815, allocations: 23.92 kB / 0.7292 GB, free: 7.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/0.682, allocations: 159.6 kB / 0.7293 GB, free: 7.086 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.6823, allocations: 0.6851 MB / 0.73 GB, free: 6.375 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.038e-05/0.6824, allocations: 15.78 kB / 0.73 GB, free: 6.359 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.6824, allocations: 15.44 kB / 0.73 GB, free: 6.344 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.6824, allocations: 0 / 0.73 GB, free: 6.344 MB / 0.545 GB Notification: Performance of Templates: time 0.003708/0.6862, allocations: 0.7713 MB / 0.7308 GB, free: 5.582 MB / 0.545 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 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)