Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 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.Validation.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007899/0.0007898, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005518/0.005518, allocations: 168.8 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.097/3.097, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004003, allocations: 18.88 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4854/0.4858, allocations: 162.2 MB / 1.074 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001131/0.487, allocations: 461.1 kB / 1.075 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.4887, allocations: 1.19 MB / 1.076 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.311e-05/0.4888, allocations: 0 / 1.076 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.245e-05/0.4888, allocations: 7.938 kB / 1.076 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.928e-05/0.4889, allocations: 7.938 kB / 1.076 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005335/0.4894, allocations: 126.6 kB / 1.076 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.4896, allocations: 99.81 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001196/0.4897, allocations: 15.97 kB / 1.076 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.473e-05/0.4898, allocations: 39.92 kB / 1.076 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.256e-05/0.4899, allocations: 39.83 kB / 1.076 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.256e-05/0.4899, allocations: 4 kB / 1.076 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.49, allocations: 19.98 kB / 1.076 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.49, allocations: 11.97 kB / 1.076 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.96e-05/0.4901, allocations: 61.56 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.4903, allocations: 99.72 kB / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4903, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.374e-06/0.4903, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.4903, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 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.000664/0.491, allocations: 406.8 kB / 1.077 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.491, allocations: 8.031 kB / 1.077 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.4911, allocations: 12.78 kB / 1.077 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.4912, allocations: 168.4 kB / 1.077 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.4913, allocations: 4.375 kB / 1.077 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.4913, allocations: 8.375 kB / 1.077 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.4915, allocations: 74.2 kB / 1.077 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.4916, allocations: 192 / 1.077 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.4916, allocations: 15.92 kB / 1.077 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.4916, allocations: 0 / 1.077 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.4918, allocations: 47.91 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/0.4923, allocations: 328.6 kB / 1.077 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.4925, allocations: 62.48 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.4926, allocations: 32.94 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.4926, allocations: 3.984 kB / 1.077 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.4929, allocations: 95.36 kB / 1.077 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.4929, allocations: 8 kB / 1.077 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004645/0.4934, allocations: 145.5 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.4934, allocations: 59.39 kB / 1.078 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.971e-05/0.4935, allocations: 117.8 kB / 1.078 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.4935, allocations: 29.7 kB / 1.078 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.4936, allocations: 88.14 kB / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.4936, allocations: 15.72 kB / 1.078 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.4937, allocations: 29.64 kB / 1.078 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.4938, allocations: 314.8 kB / 1.078 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.494, allocations: 63.95 kB / 1.078 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.4942, allocations: 75.39 kB / 1.078 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.4945, allocations: 149 kB / 1.079 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4945, allocations: 0 / 1.079 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004369/0.4949, allocations: 207.3 kB / 1.079 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.495, allocations: 37.69 kB / 1.079 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.495, allocations: 0 / 1.079 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.495, allocations: 4 kB / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.4951, allocations: 15.92 kB / 1.079 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.4951, allocations: 7.938 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.4954, allocations: 51.91 kB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.4954, allocations: 7.984 kB / 1.079 GB, free: 2.434 MB / 0.8262 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.4955, allocations: 125.7 kB / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.053e-05/0.4955, allocations: 0 / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003184/0.4959, allocations: 133.9 kB / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4959, allocations: 0 / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4959, allocations: 0 / 1.079 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-06/0.4959, allocations: 4.469 kB / 1.079 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004436/0.4963, allocations: 374.4 kB / 1.079 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.4964, allocations: 0 / 1.079 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.254e-05/0.4964, allocations: 11.98 kB / 1.079 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.4964, allocations: 0 / 1.079 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.4964, allocations: 11.94 kB / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.4965, allocations: 0 / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4965, allocations: 0 / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003156/0.4968, allocations: 215.4 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.707e-05/0.4968, allocations: 89.02 kB / 1.08 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.4969, allocations: 0 / 1.08 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.102e-05/0.497, allocations: 11.98 kB / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.497, allocations: 7.922 kB / 1.08 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.497, allocations: 4 kB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.503e-05/0.4971, allocations: 91.27 kB / 1.08 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4971, allocations: 0 / 1.08 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002558/0.4973, allocations: 24 kB / 1.08 GB, free: 1.246 MB / 0.8262 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 (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.000154/0.4975, allocations: 99.25 kB / 1.08 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004425/0.4979, allocations: 183.2 kB / 1.08 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.498, allocations: 0 / 1.08 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.4981, allocations: 52.03 kB / 1.08 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/0.4984, allocations: 8 kB / 1.08 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004321/0.4988, allocations: 181.2 kB / 1.08 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.4992, allocations: 0.6848 MB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.867e-05/0.4992, allocations: 3.984 kB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.463e-05/0.4993, allocations: 15.44 kB / 1.081 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4993, allocations: 0 / 1.081 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of Templates: time 0.004299/0.5036, allocations: 1.279 MB / 1.082 GB, free: 14.7 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1)