Running: ./testmodel.py --libraries=/var/lib/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 (/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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.642/2.642, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001553/0.001554, allocations: 183.2 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.572/2.572, allocations: 205.4 MB / 0.5766 GB, free: 21.14 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001493/0.001493, allocations: 99.38 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.0004601, allocations: 10.59 kB / 0.7951 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2353, allocations: 106.3 MB / 0.8989 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002086/0.2375, allocations: 1.143 MB / 0.9 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007206/0.2383, allocations: 254 kB / 0.9002 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.133e-05/0.2383, allocations: 4 kB / 0.9003 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.118e-05/0.2384, allocations: 3.984 kB / 0.9003 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.2385, allocations: 15.92 kB / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.2388, allocations: 23.91 kB / 0.9003 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.388e-05/0.2389, allocations: 31.97 kB / 0.9003 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.239, allocations: 15.92 kB / 0.9003 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.429e-05/0.2391, allocations: 19.91 kB / 0.9004 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.692e-05/0.2392, allocations: 27.86 kB / 0.9004 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.2392, allocations: 0 / 0.9004 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.2392, allocations: 4 kB / 0.9004 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.2393, allocations: 7.984 kB / 0.9004 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.233e-05/0.2393, allocations: 33.7 kB / 0.9004 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.449e-05/0.2394, allocations: 39.91 kB / 0.9005 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.2394, allocations: 0 / 0.9005 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2395, allocations: 0 / 0.9005 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2395, allocations: 0 / 0.9005 GB, free: 64.29 MB / 0.6042 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.0007203/0.2402, allocations: 379.1 kB / 0.9008 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2403, allocations: 12.03 kB / 0.9008 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.2403, allocations: 0 / 0.9008 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.2404, allocations: 178.8 kB / 0.901 GB, free: 63.65 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.2405, allocations: 4 kB / 0.901 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.2405, allocations: 8 kB / 0.901 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.2409, allocations: 69.66 kB / 0.9011 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2409, allocations: 4 kB / 0.9011 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.2409, allocations: 0 / 0.9011 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2409, allocations: 0 / 0.9011 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.2413, allocations: 59.89 kB / 0.9011 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.2419, allocations: 288.8 kB / 0.9014 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.2422, allocations: 62.55 kB / 0.9015 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.2422, allocations: 7.984 kB / 0.9015 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.2426, allocations: 87.44 kB / 0.9016 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 3.537e-06/0.2426, allocations: 0 / 0.9016 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0008089/0.2434, allocations: 149.5 kB / 0.9017 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.2435, allocations: 55.36 kB / 0.9018 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.934e-05/0.2436, allocations: 113.8 kB / 0.9019 GB, free: 62.65 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.2436, allocations: 25.7 kB / 0.9019 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.915e-05/0.2437, allocations: 96.11 kB / 0.902 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.2437, allocations: 11.81 kB / 0.902 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.016e-05/0.2438, allocations: 8 kB / 0.902 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.512e-05/0.2439, allocations: 318.8 kB / 0.9023 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.2441, allocations: 31.97 kB / 0.9023 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.2443, allocations: 54.5 kB / 0.9024 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.2446, allocations: 31.97 kB / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2446, allocations: 0 / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005258/0.2451, allocations: 117.6 kB / 0.9025 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.2452, allocations: 10.19 kB / 0.9026 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2452, allocations: 0 / 0.9026 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.2452, allocations: 0 / 0.9026 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2454, allocations: 15.98 kB / 0.9026 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.2454, allocations: 8.578 kB / 0.9026 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.2457, allocations: 23.83 kB / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.2457, allocations: 8 kB / 0.9026 GB, free: 61.88 MB / 0.6042 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.0001028/0.2458, allocations: 117.8 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.2458, allocations: 4 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005757/0.2464, allocations: 126 kB / 0.9028 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2465, allocations: 4.172 kB / 0.9028 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.2465, allocations: 0 / 0.9028 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2465, allocations: 7.891 kB / 0.9029 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009421/0.2474, allocations: 386.4 kB / 0.9032 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2475, allocations: 0 / 0.9032 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.2476, allocations: 19.98 kB / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2476, allocations: 0 / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.2477, allocations: 0 / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.2477, allocations: 3.953 kB / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.2477, allocations: 0 / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.2483, allocations: 211.4 kB / 0.9034 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.2484, allocations: 81.02 kB / 0.9035 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.977e-05/0.2484, allocations: 7.984 kB / 0.9035 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.2487, allocations: 19.92 kB / 0.9035 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.315e-05/0.2488, allocations: 15.94 kB / 0.9036 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.2488, allocations: 4 kB / 0.9036 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.015e-05/0.2489, allocations: 83.28 kB / 0.9036 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5.41e-07/0.2489, allocations: 0 / 0.9036 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005843/0.2495, allocations: 12 kB / 0.9037 GB, free: 60.69 MB / 0.6042 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.0001464/0.2497, allocations: 105.4 kB / 0.9038 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005743/0.2503, allocations: 79.88 kB / 0.9038 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2503, allocations: 0 / 0.9038 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.2506, allocations: 48.03 kB / 0.9039 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.2511, allocations: 4 kB / 0.9039 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005672/0.2516, allocations: 174.7 kB / 0.9041 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.2519, allocations: 0.6947 MB / 0.9047 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.572e-05/0.252, allocations: 8.141 kB / 0.9047 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.182e-05/0.252, allocations: 11.44 kB / 0.9047 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of SimCode: time 9.91e-07/0.2521, allocations: 0 / 0.9047 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of Templates: time 0.004674/0.2567, allocations: 0.7437 MB / 0.9055 GB, free: 58.77 MB / 0.6042 GB