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.058/5.058, allocations: 0.5623 GB / 0.5769 GB, free: 3.34 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.003942/0.003941, allocations: 362.2 kB / 0.644 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.228/4.228, allocations: 410.7 MB / 1.112 GB, free: 5.945 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.001808/0.001808, allocations: 192.3 kB / 1.225 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0007995/0.0007998, allocations: 12 kB / 1.348 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6974/0.6983, 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.000788/0.6991, allocations: 450.5 kB / 1.461 GB, free: 283.9 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001375/0.7005, allocations: 1.14 MB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.693e-05/0.7006, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.941e-05/0.7006, allocations: 4.656 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.402e-05/0.7007, allocations: 7.922 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005065/0.7012, allocations: 125.1 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.7013, allocations: 87.81 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.466e-05/0.7014, allocations: 10.41 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.046e-05/0.7015, allocations: 43.89 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 7.244e-05/0.7016, allocations: 39.83 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.7017, allocations: 4 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.584e-05/0.7017, allocations: 19.92 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.872e-05/0.7018, allocations: 17.89 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.7018, allocations: 29.7 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.702, allocations: 71.83 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.514e-06/0.702, allocations: 0 / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.848e-06/0.702, allocations: 0 / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.597e-06/0.702, allocations: 1.438 kB / 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.0004802/0.7025, allocations: 395.7 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.7025, allocations: 14.06 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.7026, allocations: 7.906 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.989e-05/0.7027, allocations: 178.9 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.7027, allocations: 4 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.108e-05/0.7028, allocations: 8 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.703, allocations: 75.7 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.703, allocations: 0 / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.325e-05/0.703, allocations: 0.6562 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.354e-06/0.703, allocations: 4 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.7033, allocations: 51.7 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004783/0.7038, allocations: 325.3 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.704, allocations: 57.2 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.7041, allocations: 38.38 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.7041, allocations: 0 / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.7044, allocations: 93.92 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 2.438e-06/0.7044, allocations: 0 / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0005163/0.7049, allocations: 160.7 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.705, allocations: 56.52 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.492e-05/0.7051, allocations: 114.1 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.7051, allocations: 26.39 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.005e-05/0.7052, allocations: 89.33 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.7052, allocations: 23.83 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.7052, allocations: 7.875 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.7053, allocations: 319.9 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.7055, allocations: 57.14 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.7057, allocations: 87.84 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.7059, allocations: 88.95 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.489e-06/0.7059, allocations: 0 / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005224/0.7065, allocations: 205.2 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.764e-05/0.7065, allocations: 38.55 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.555e-06/0.7065, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.7066, allocations: 4 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.7067, allocations: 20.77 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.69e-06/0.7067, allocations: 3.953 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002629/0.707, allocations: 53.86 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.707, allocations: 4 kB / 1.465 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 9.623e-05/0.7071, allocations: 121.8 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.7072, allocations: 7.906 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003606/0.7075, allocations: 132 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.7076, allocations: 0 / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.727e-06/0.7076, allocations: 0.9688 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.093e-06/0.7076, allocations: 7.953 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.7081, allocations: 361 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.952e-06/0.7081, allocations: 0.9688 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.031e-05/0.7082, allocations: 12.98 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.7082, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.7082, allocations: 4 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.7082, allocations: 4.688 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.492e-06/0.7083, allocations: 3.953 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003358/0.7086, allocations: 219.2 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.7086, allocations: 89.02 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.7087, allocations: 0 / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.7088, allocations: 9.109 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.7089, allocations: 8.891 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.7089, allocations: 4 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.445e-05/0.709, allocations: 96.67 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.36e-07/0.709, allocations: 0 / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003836/0.7094, allocations: 24 kB / 1.466 GB, free: 278.4 MB / 0.8542 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.0001404/0.7095, allocations: 112.8 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004549/0.71, allocations: 179 kB / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.71, allocations: 0 / 1.467 GB, free: 278.1 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.7102, allocations: 40.45 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.7105, allocations: 14.06 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003772/0.7109, allocations: 164.8 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.7111, allocations: 0.6901 MB / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.7111, allocations: 5.625 kB / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.891e-05/0.7112, allocations: 11.44 kB / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of SimCode: time 1.591e-06/0.7112, allocations: 0 / 1.467 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of Templates: time 0.004309/0.7155, allocations: 1.23 MB / 1.469 GB, free: 275.9 MB / 0.8542 GB