Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.627/1.627, allocations: 297.8 MB / 313.8 MB, free: 128 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008874/0.0008874, allocations: 183.2 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 223.2 MB / 0.6626 GB, free: 4.336 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000774/0.0007741, allocations: 105.3 kB / 0.7808 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004093, allocations: 20.69 kB / 0.9088 GB, free: 0.6602 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5164/0.5168, allocations: 120.3 MB / 1.026 GB, free: 56.7 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1691/0.686, allocations: 141.7 MB / 1.165 GB, free: 0.5195 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.6863, allocations: 67.97 kB / 1.165 GB, free: 464 kB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.007154/0.6935, allocations: 2.616 MB / 1.167 GB, free: 13.88 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.933e-06/0.6935, allocations: 0 / 1.167 GB, free: 13.88 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.6935, allocations: 0 / 1.167 GB, free: 13.88 MB / 0.7448 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.0004813/0.694, allocations: 401 kB / 1.168 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.6941, allocations: 16.03 kB / 1.168 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.279e-05/0.6941, allocations: 8.844 kB / 1.168 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.6942, allocations: 172.4 kB / 1.168 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.6943, allocations: 4.375 kB / 1.168 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.6943, allocations: 4.375 kB / 1.168 GB, free: 13.2 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.6945, allocations: 74.16 kB / 1.168 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.6945, allocations: 1.688 kB / 1.168 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.6945, allocations: 7.938 kB / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6945, allocations: 0 / 1.168 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.6947, allocations: 51.95 kB / 1.168 GB, free: 13.06 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004687/0.6952, allocations: 332.6 kB / 1.168 GB, free: 12.68 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.6954, allocations: 58.48 kB / 1.168 GB, free: 12.62 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.435e-05/0.6955, allocations: 36.88 kB / 1.168 GB, free: 12.58 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.6955, allocations: 7.984 kB / 1.168 GB, free: 12.57 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.6957, allocations: 83.38 kB / 1.169 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/0.6957, allocations: 0 / 1.169 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0004126/0.6961, allocations: 157.5 kB / 1.169 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.6962, allocations: 55.41 kB / 1.169 GB, free: 12.25 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.723e-05/0.6963, allocations: 109.8 kB / 1.169 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.6963, allocations: 29.7 kB / 1.169 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.6964, allocations: 100.1 kB / 1.169 GB, free: 12 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.6964, allocations: 19.88 kB / 1.169 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.6964, allocations: 0 / 1.169 GB, free: 11.98 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.6965, allocations: 322.7 kB / 1.169 GB, free: 11.65 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.6967, allocations: 55.95 kB / 1.169 GB, free: 11.6 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.6968, allocations: 83.39 kB / 1.169 GB, free: 11.5 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002455/0.6971, allocations: 143 kB / 1.17 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6971, allocations: 0 / 1.17 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004205/0.6975, allocations: 207.1 kB / 1.17 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.6976, allocations: 37.75 kB / 1.17 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.6976, allocations: 4 kB / 1.17 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.6976, allocations: 8 kB / 1.17 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.519e-05/0.6977, allocations: 15.98 kB / 1.17 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.6977, allocations: 4 kB / 1.17 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.6979, allocations: 43.97 kB / 1.17 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.6979, allocations: 7.984 kB / 1.17 GB, free: 11.01 MB / 0.7448 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 8.739e-05/0.698, allocations: 122.3 kB / 1.17 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.356e-05/0.698, allocations: 7.844 kB / 1.17 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.6983, allocations: 130 kB / 1.17 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.6983, allocations: 0 / 1.17 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6983, allocations: 0 / 1.17 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.6984, allocations: 0 / 1.17 GB, free: 10.74 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00038/0.6987, allocations: 378.9 kB / 1.17 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.6988, allocations: 0 / 1.17 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.101e-05/0.6988, allocations: 11.98 kB / 1.17 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.6988, allocations: 2.391 kB / 1.17 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.6988, allocations: 0 / 1.17 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.6989, allocations: 7.938 kB / 1.17 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6989, allocations: 0 / 1.17 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.6991, allocations: 223.8 kB / 1.171 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.692e-05/0.6992, allocations: 81.05 kB / 1.171 GB, free: 9.965 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.6992, allocations: 4 kB / 1.171 GB, free: 9.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/0.6993, allocations: 11.98 kB / 1.171 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.6994, allocations: 15.91 kB / 1.171 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.6994, allocations: 7.938 kB / 1.171 GB, free: 9.926 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.044e-05/0.6994, allocations: 83.28 kB / 1.171 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6994, allocations: 3.938 kB / 1.171 GB, free: 9.84 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002565/0.6997, allocations: 39.89 kB / 1.171 GB, free: 9.801 MB / 0.7448 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.0001495/0.6998, allocations: 103.2 kB / 1.171 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003533/0.7002, allocations: 183.3 kB / 1.171 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7002, allocations: 0 / 1.171 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.7003, allocations: 39.97 kB / 1.171 GB, free: 9.457 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.7006, allocations: 19.55 kB / 1.171 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003431/0.701, allocations: 163.2 kB / 1.171 GB, free: 9.254 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.7012, allocations: 0.6926 MB / 1.172 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.521e-05/0.7012, allocations: 8 kB / 1.172 GB, free: 8.527 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.123e-05/0.7013, allocations: 11.44 kB / 1.172 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of SimCode: time 2.4e-07/0.7013, allocations: 0 / 1.172 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of Templates: time 0.004163/0.7054, allocations: 1.254 MB / 1.173 GB, free: 7.289 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)