Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.403/5.403, allocations: 0.5623 GB / 0.5776 GB, free: 3.371 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002587/0.002587, allocations: 358.8 kB / 0.6447 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.725/4.725, allocations: 410.7 MB / 1.113 GB, free: 5.965 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00192/0.001919, allocations: 184.7 kB / 1.226 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0006914/0.0006915, allocations: 20 kB / 1.349 GB, free: 8.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8494/0.8501, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009731/0.8512, allocations: 454.7 kB / 1.462 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001674/0.8529, allocations: 1.135 MB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.824e-05/0.853, allocations: 0.75 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.853, allocations: 3.938 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.8531, allocations: 12.64 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006501/0.8538, allocations: 120.6 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.8539, allocations: 87.81 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.264e-05/0.854, allocations: 13.8 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.849e-05/0.8541, allocations: 39.91 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 8.419e-05/0.8542, allocations: 40.97 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.8542, allocations: 4 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 8.021e-05/0.8543, allocations: 19.92 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.8543, allocations: 13.03 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.311e-05/0.8544, allocations: 33.7 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.8546, allocations: 71.81 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.8546, allocations: 2.375 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.304e-06/0.8546, allocations: 0 / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.8546, allocations: 0 / 1.463 GB, free: 282.3 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.0005893/0.8552, allocations: 395.5 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.8553, allocations: 14.19 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.8553, allocations: 7.906 kB / 1.464 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.708e-05/0.8554, allocations: 174.9 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.8555, allocations: 4 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.8555, allocations: 11.98 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002745/0.8558, allocations: 67.33 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.8558, allocations: 4.734 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.8558, allocations: 0 / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.8559, allocations: 8.562 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.8562, allocations: 55.39 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.8567, allocations: 329.3 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.857, allocations: 57.5 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.8571, allocations: 38.94 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.8572, allocations: 0 / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.8575, allocations: 93.11 kB / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 3.527e-06/0.8575, allocations: 0 / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0006665/0.8582, allocations: 157 kB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.8583, allocations: 60.06 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.95e-05/0.8584, allocations: 118.8 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.8584, allocations: 25.7 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.109e-05/0.8585, allocations: 89.3 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.8585, allocations: 23.73 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.999e-05/0.8585, allocations: 4 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.868e-05/0.8586, allocations: 316.2 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000246/0.8589, allocations: 61.08 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.8591, allocations: 80.91 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.8594, allocations: 85.88 kB / 1.466 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.8594, allocations: 1.594 kB / 1.466 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000645/0.8601, allocations: 205.3 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.8602, allocations: 37.69 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.8602, allocations: 0 / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.8602, allocations: 6.656 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.8604, allocations: 19.92 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.8604, allocations: 0 / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.8608, allocations: 53.56 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.8608, allocations: 4.875 kB / 1.466 GB, free: 279.5 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,$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.0001092/0.861, allocations: 118.6 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.861, allocations: 8.531 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004753/0.8615, allocations: 130.6 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.8615, allocations: 480 / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.8615, allocations: 0 / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.8616, allocations: 85.02 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.8616, allocations: 3.953 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.8617, allocations: 11.98 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.8618, allocations: 9.078 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004804/0.8623, allocations: 200.1 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004426/0.8627, allocations: 290 kB / 1.467 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001821/0.8629, allocations: 45.48 kB / 1.467 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.452e-05/0.863, allocations: 93.17 kB / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of Backend: time 7.62e-07/0.863, allocations: 0 / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007751/0.8638, allocations: 229.3 kB / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0005464/0.8644, allocations: 0.6109 MB / 1.468 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of Templates: time 0.00496/0.8693, allocations: 1.326 MB / 1.469 GB, free: 276.4 MB / 0.8542 GB