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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.45/2.45, allocations: 253.1 MB / 260.4 MB, free: 7.555 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001712/0.001711, allocations: 189 kB / 319.6 MB, free: 3.332 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 1.955/1.955, allocations: 205.4 MB / 0.5704 GB, free: 15.07 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.001295/0.001295, allocations: 95 kB / 0.6746 GB, free: 4.449 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.143e-05/1.158e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2345, allocations: 106.3 MB / 0.8881 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6833/0.9178, allocations: 131.9 MB / 1.017 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.9182, allocations: 74.14 kB / 1.017 GB, free: 6.398 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006519/0.9247, allocations: 1.165 MB / 1.018 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.108e-05/0.9248, allocations: 0 / 1.018 GB, free: 5.434 MB / 0.6355 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.0006882/0.9255, allocations: 366.3 kB / 1.018 GB, free: 5.035 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.9256, allocations: 12.03 kB / 1.018 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.9256, allocations: 3.906 kB / 1.018 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/0.9258, allocations: 178.8 kB / 1.019 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.9259, allocations: 4 kB / 1.019 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.9259, allocations: 0 / 1.019 GB, free: 4.805 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001552/0.926, allocations: 19.86 kB / 1.019 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.9262, allocations: 60.98 kB / 1.019 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.9262, allocations: 3.938 kB / 1.019 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.9263, allocations: 4 kB / 1.019 GB, free: 4.723 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.9263, allocations: 0 / 1.019 GB, free: 4.723 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004728/0.9267, allocations: 251.4 kB / 1.019 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.9269, allocations: 42.88 kB / 1.019 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.236e-05/0.927, allocations: 22.61 kB / 1.019 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.927, allocations: 0 / 1.019 GB, free: 4.391 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001295/0.9272, allocations: 66 kB / 1.019 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.753e-06/0.9272, allocations: 0 / 1.019 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000256/0.9274, allocations: 61.62 kB / 1.019 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.9275, allocations: 54.92 kB / 1.019 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.9276, allocations: 109.3 kB / 1.019 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.9276, allocations: 33.7 kB / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.9277, allocations: 83.39 kB / 1.019 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.9278, allocations: 19.05 kB / 1.019 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.216e-06/0.9278, allocations: 0 / 1.019 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.9279, allocations: 310.8 kB / 1.02 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.232e-05/0.928, allocations: 14.44 kB / 1.02 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.939e-05/0.9281, allocations: 39.14 kB / 1.02 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.799e-05/0.9281, allocations: 18.86 kB / 1.02 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.9281, allocations: 3.938 kB / 1.02 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001894/0.9283, allocations: 74.47 kB / 1.02 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.9284, allocations: 4 kB / 1.02 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.9284, allocations: 3.984 kB / 1.02 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.9284, allocations: 0 / 1.02 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.9286, allocations: 19.38 kB / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.9287, allocations: 12.08 kB / 1.02 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.9289, allocations: 23.83 kB / 1.02 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.9289, allocations: 4 kB / 1.02 GB, free: 3.441 MB / 0.6355 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 () * 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 9.965e-05/0.929, allocations: 101 kB / 1.02 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.9291, allocations: 11.91 kB / 1.02 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002311/0.9293, allocations: 73.55 kB / 1.02 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.9293, allocations: 4 kB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.9294, allocations: 96 / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.9294, allocations: 3.984 kB / 1.02 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/0.93, allocations: 324.7 kB / 1.02 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.93, allocations: 6.75 kB / 1.02 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.9301, allocations: 12.17 kB / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.9302, allocations: 4 kB / 1.02 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.9302, allocations: 3.938 kB / 1.02 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.9302, allocations: 0 / 1.02 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.9302, allocations: 3.906 kB / 1.02 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002084/0.9304, allocations: 163 kB / 1.021 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.9305, allocations: 81.11 kB / 1.021 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.9305, allocations: 3.984 kB / 1.021 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.9308, allocations: 23.89 kB / 1.021 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.9308, allocations: 7.984 kB / 1.021 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.9309, allocations: 0 / 1.021 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.527e-05/0.9309, allocations: 90.09 kB / 1.021 GB, free: 2.5 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003209/0.9313, allocations: 8 kB / 1.021 GB, free: 2.492 MB / 0.6355 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) * 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.0001645/0.9314, allocations: 99.19 kB / 1.021 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.9316, allocations: 46.41 kB / 1.021 GB, free: 2.352 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.9316, allocations: 4.062 kB / 1.021 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.671e-05/0.9317, allocations: 23.38 kB / 1.021 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.9321, allocations: 7.688 kB / 1.021 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.9325, allocations: 98.02 kB / 1.021 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003724/0.9329, allocations: 0.6997 MB / 1.022 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of SimCode: time 9.12e-07/0.9329, allocations: 0 / 1.022 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of Templates: time 0.004217/0.9371, allocations: 0.8142 MB / 1.023 GB, free: 0.6914 MB / 0.6355 GB