Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01068/0.01068, allocations: 88.66 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001227/0.001227, allocations: 175.2 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.364/2.364, allocations: 205.5 MB / 222.2 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.388/2.388, allocations: 252.8 MB / 0.511 GB, free: 8.371 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007434/0.0007437, allocations: 15.34 kB / 0.6243 GB, free: 21.07 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2361, allocations: 106.2 MB / 0.7281 GB, free: 8.156 MB / 0.5574 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002067/0.2382, allocations: 1.148 MB / 0.7292 GB, free: 6.992 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.0006904/0.2389, allocations: 260.9 kB / 0.7294 GB, free: 6.734 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.245e-05/0.239, allocations: 0 / 0.7294 GB, free: 6.734 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 1.982e-05/0.239, allocations: 3.938 kB / 0.7295 GB, free: 6.73 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.2391, allocations: 8 kB / 0.7295 GB, free: 6.723 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.2394, allocations: 31.84 kB / 0.7295 GB, free: 6.691 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 8.867e-05/0.2395, allocations: 39.94 kB / 0.7295 GB, free: 6.652 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 8.919e-05/0.2396, allocations: 12 kB / 0.7295 GB, free: 6.641 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 7.41e-05/0.2397, allocations: 19.92 kB / 0.7296 GB, free: 6.621 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.2397, allocations: 19.91 kB / 0.7296 GB, free: 6.602 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.2398, allocations: 4 kB / 0.7296 GB, free: 6.598 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.2398, allocations: 0 / 0.7296 GB, free: 6.598 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 2.161e-05/0.2398, allocations: 11.92 kB / 0.7296 GB, free: 6.586 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/0.2399, allocations: 33.7 kB / 0.7296 GB, free: 6.547 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 8.179e-05/0.24, allocations: 35.92 kB / 0.7297 GB, free: 6.512 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.24, allocations: 4 kB / 0.7297 GB, free: 6.508 MB / 0.5574 GB Notification: Performance of FrontEnd: time 1.873e-06/0.24, allocations: 0 / 0.7297 GB, free: 6.508 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.24, allocations: 0 / 0.7297 GB, free: 6.508 MB / 0.5574 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.0006656/0.2407, allocations: 367.5 kB / 0.73 GB, free: 6.102 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.2407, allocations: 8.031 kB / 0.73 GB, free: 6.094 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.2408, allocations: 42.5 kB / 0.7301 GB, free: 6.043 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.2408, allocations: 7.906 kB / 0.7301 GB, free: 6.035 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.241, allocations: 182.9 kB / 0.7302 GB, free: 5.816 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.241, allocations: 4 kB / 0.7302 GB, free: 5.812 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.241, allocations: 4 kB / 0.7303 GB, free: 5.809 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.2413, allocations: 69.64 kB / 0.7303 GB, free: 5.734 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.2414, allocations: 4 kB / 0.7303 GB, free: 5.73 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.2414, allocations: 8 kB / 0.7303 GB, free: 5.723 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2414, allocations: 0 / 0.7303 GB, free: 5.723 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.2417, allocations: 55.95 kB / 0.7304 GB, free: 5.668 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.2423, allocations: 288.8 kB / 0.7307 GB, free: 5.336 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.2425, allocations: 66.47 kB / 0.7307 GB, free: 5.262 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.2426, allocations: 4 kB / 0.7307 GB, free: 5.258 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003157/0.2429, allocations: 87.41 kB / 0.7308 GB, free: 5.16 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/0.2429, allocations: 0 / 0.7308 GB, free: 5.16 MB / 0.5574 GB Notification: Performance of matching and sorting (n=7): time 0.0006817/0.2436, allocations: 153.6 kB / 0.731 GB, free: 5.004 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.2437, allocations: 51.41 kB / 0.731 GB, free: 4.941 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.2438, allocations: 113.8 kB / 0.7311 GB, free: 4.82 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2438, allocations: 25.7 kB / 0.7311 GB, free: 4.789 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 6.599e-05/0.2439, allocations: 96.03 kB / 0.7312 GB, free: 4.691 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.2439, allocations: 15.75 kB / 0.7312 GB, free: 4.676 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-06/0.244, allocations: 4 kB / 0.7312 GB, free: 4.672 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2441, allocations: 318.8 kB / 0.7316 GB, free: 4.352 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.2443, allocations: 31.98 kB / 0.7316 GB, free: 4.32 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.2445, allocations: 46.55 kB / 0.7316 GB, free: 4.266 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.2447, allocations: 39.92 kB / 0.7317 GB, free: 4.227 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2447, allocations: 0 / 0.7317 GB, free: 4.227 MB / 0.5574 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004412/0.2451, allocations: 117.6 kB / 0.7318 GB, free: 4.105 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2452, allocations: 8 kB / 0.7318 GB, free: 4.098 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2452, allocations: 0 / 0.7318 GB, free: 4.098 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2452, allocations: 0 / 0.7318 GB, free: 4.098 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.2454, allocations: 19.94 kB / 0.7318 GB, free: 4.078 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.2454, allocations: 4 kB / 0.7318 GB, free: 4.074 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.2456, allocations: 19.89 kB / 0.7318 GB, free: 4.055 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2456, allocations: 4 kB / 0.7318 GB, free: 4.051 MB / 0.5574 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.0001162/0.2457, allocations: 117.8 kB / 0.7319 GB, free: 3.926 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.2458, allocations: 4.188 kB / 0.7319 GB, free: 3.922 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004689/0.2462, allocations: 125.9 kB / 0.7321 GB, free: 3.793 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2463, allocations: 7.938 kB / 0.7321 GB, free: 3.785 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2463, allocations: 3.953 kB / 0.7321 GB, free: 3.781 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2463, allocations: 0 / 0.7321 GB, free: 3.781 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007918/0.2471, allocations: 386.4 kB / 0.7324 GB, free: 3.348 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2471, allocations: 0 / 0.7324 GB, free: 3.348 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.2472, allocations: 19.98 kB / 0.7325 GB, free: 3.328 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2473, allocations: 0 / 0.7325 GB, free: 3.328 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2473, allocations: 3.953 kB / 0.7325 GB, free: 3.324 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.2473, allocations: 0 / 0.7325 GB, free: 3.324 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2473, allocations: 3.938 kB / 0.7325 GB, free: 3.32 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004789/0.2478, allocations: 212.3 kB / 0.7327 GB, free: 3.098 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.2479, allocations: 84.95 kB / 0.7328 GB, free: 2.996 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.2479, allocations: 8 kB / 0.7328 GB, free: 2.988 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.2481, allocations: 23.88 kB / 0.7328 GB, free: 2.965 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.714e-05/0.2482, allocations: 7.984 kB / 0.7328 GB, free: 2.957 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.2482, allocations: 4 kB / 0.7328 GB, free: 2.953 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 6.627e-05/0.2483, allocations: 91.33 kB / 0.7329 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2483, allocations: 0 / 0.7329 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0003249/0.2486, allocations: 16 kB / 0.7329 GB, free: 2.848 MB / 0.5574 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.000809/0.2494, allocations: 0.7397 MB / 0.7336 GB, free: 2.082 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0004265/0.2499, allocations: 88.05 kB / 0.7337 GB, free: 1.996 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2499, allocations: 0 / 0.7337 GB, free: 1.996 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.2501, allocations: 35.92 kB / 0.7337 GB, free: 1.961 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.2504, allocations: 24 kB / 0.7338 GB, free: 1.938 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.2519, allocations: 0.8198 MB / 0.7346 GB, free: 1.055 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.2522, allocations: 0.6926 MB / 0.7352 GB, free: 344 kB / 0.5574 GB Notification: Performance of simCode: alias equations: time 5.566e-05/0.2523, allocations: 11.92 kB / 0.7353 GB, free: 332 kB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.2524, allocations: 19.44 kB / 0.7353 GB, free: 312 kB / 0.5574 GB Notification: Performance of SimCode: time 9.11e-07/0.2524, allocations: 0 / 0.7353 GB, free: 312 kB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.2745, allocations: 1.57 MB / 0.7368 GB, free: 14.84 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.2747, allocations: 201.9 kB / 0.737 GB, free: 14.59 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.554/2.828, allocations: 0 / 0.737 GB, free: 14.59 MB / 0.573 GB