Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.262/2.262, allocations: 251 MB / 265.9 MB, free: 11.67 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002715/0.002716, allocations: 188.5 kB / 325.5 MB, free: 2.871 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.408/2.408, allocations: 205.4 MB / 0.5764 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 91.23 kB / 0.6809 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007331/0.0007332, allocations: 15.5 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2354, allocations: 106.3 MB / 0.8988 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2173/0.4527, allocations: 131.8 MB / 1.028 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.4531, allocations: 67.97 kB / 1.028 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006413/0.4595, allocations: 1.48 MB / 1.029 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.044e-06/0.4595, allocations: 0 / 1.029 GB, free: 11.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.4596, allocations: 4 kB / 1.029 GB, free: 11.92 MB / 0.6823 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.0006855/0.4603, allocations: 395 kB / 1.029 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4603, allocations: 8.031 kB / 1.029 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.856e-05/0.4604, allocations: 34.56 kB / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.4604, allocations: 7.953 kB / 1.029 GB, free: 11.43 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.4606, allocations: 171 kB / 1.03 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.4606, allocations: 0 / 1.03 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.669e-05/0.4607, allocations: 11.98 kB / 1.03 GB, free: 11.21 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.461, allocations: 69.61 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.599e-06/0.461, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.461, allocations: 3.984 kB / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.461, allocations: 0 / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.4614, allocations: 59.95 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.4619, allocations: 288.8 kB / 1.03 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.4622, allocations: 66.48 kB / 1.03 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.4622, allocations: 0 / 1.03 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.4626, allocations: 88.34 kB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.4626, allocations: 0 / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0006977/0.4633, allocations: 145.5 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.4634, allocations: 55.41 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.4635, allocations: 108.9 kB / 1.03 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.4635, allocations: 25.7 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.655e-05/0.4636, allocations: 92.05 kB / 1.031 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.4636, allocations: 19.81 kB / 1.031 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.4637, allocations: 4 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4638, allocations: 318.8 kB / 1.031 GB, free: 9.773 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.464, allocations: 31.98 kB / 1.031 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.4642, allocations: 46.55 kB / 1.031 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.4644, allocations: 39.97 kB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4644, allocations: 0 / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004433/0.4649, allocations: 113.6 kB / 1.031 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.4649, allocations: 8.188 kB / 1.031 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.4649, allocations: 4.031 kB / 1.031 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.465, allocations: 3.938 kB / 1.031 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.4651, allocations: 27.81 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.4652, allocations: 4 kB / 1.031 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.4653, allocations: 19.89 kB / 1.031 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.4654, allocations: 0 / 1.031 GB, free: 9.465 MB / 0.6823 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,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.4655, allocations: 117.9 kB / 1.031 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.139e-05/0.4655, allocations: 7.984 kB / 1.031 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004897/0.466, allocations: 122.6 kB / 1.031 GB, free: 9.211 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.466, allocations: 3.984 kB / 1.031 GB, free: 9.207 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-06/0.4661, allocations: 3.953 kB / 1.031 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.4661, allocations: 4 kB / 1.031 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008942/0.467, allocations: 382.5 kB / 1.032 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.467, allocations: 4 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.4672, allocations: 23.92 kB / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4672, allocations: 0 / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.4672, allocations: 7.953 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4672, allocations: 0 / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4672, allocations: 0 / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.4677, allocations: 203.5 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.4678, allocations: 85.02 kB / 1.032 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.4679, allocations: 7.984 kB / 1.032 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.4681, allocations: 15.94 kB / 1.032 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.4681, allocations: 11.98 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.4682, allocations: 4 kB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.246e-05/0.4682, allocations: 83.28 kB / 1.032 GB, free: 8.297 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.8e-07/0.4683, allocations: 0 / 1.032 GB, free: 8.297 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003181/0.4686, allocations: 16 kB / 1.032 GB, free: 8.281 MB / 0.6823 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 (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.0008214/0.4694, allocations: 0.7436 MB / 1.033 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004427/0.4699, allocations: 79.89 kB / 1.033 GB, free: 7.43 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4699, allocations: 0 / 1.033 GB, free: 7.43 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.4701, allocations: 43.97 kB / 1.033 GB, free: 7.387 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.4704, allocations: 15.83 kB / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.4721, allocations: 0.8435 MB / 1.034 GB, free: 6.469 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.4724, allocations: 0.6887 MB / 1.035 GB, free: 5.754 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 6.475e-05/0.4725, allocations: 11.86 kB / 1.035 GB, free: 5.742 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.655e-05/0.4726, allocations: 23.42 kB / 1.035 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of SimCode: time 1.272e-06/0.4726, allocations: 0 / 1.035 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.4974, allocations: 1.588 MB / 1.036 GB, free: 4.281 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003446/0.4978, allocations: 192.4 kB / 1.036 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/2.821, allocations: 0 / 1.036 GB, free: 4.039 MB / 0.6823 GB