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.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") [: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.38/2.38, allocations: 253.1 MB / 260.4 MB, free: 7.496 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.001637/0.001636, allocations: 189.1 kB / 319.6 MB, free: 3.312 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.937/1.937, allocations: 205.4 MB / 0.5704 GB, free: 15.05 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.001286/0.001286, allocations: 94 kB / 0.6746 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.364e-05/1.38e-05, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2573, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7715/1.029, allocations: 131.9 MB / 1.017 GB, free: 6.426 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/1.029, allocations: 64.67 kB / 1.017 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004653/1.034, allocations: 0.8309 MB / 1.018 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.957e-06/1.034, allocations: 0 / 1.018 GB, free: 5.68 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000704/1.035, allocations: 379.8 kB / 1.018 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.035, allocations: 12.03 kB / 1.018 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.386e-05/1.035, allocations: 10.47 kB / 1.018 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/1.035, allocations: 178.9 kB / 1.018 GB, free: 5.035 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/1.035, allocations: 0 / 1.018 GB, free: 5.035 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/1.035, allocations: 4 kB / 1.018 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000133/1.035, allocations: 26.62 kB / 1.018 GB, free: 5.016 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/1.035, allocations: 55.08 kB / 1.018 GB, free: 4.965 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/1.035, allocations: 3.906 kB / 1.018 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/1.035, allocations: 11.3 kB / 1.018 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/1.036, allocations: 0 / 1.018 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004935/1.036, allocations: 269.5 kB / 1.019 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001452/1.036, allocations: 55.52 kB / 1.019 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.484e-05/1.036, allocations: 19.36 kB / 1.019 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/1.036, allocations: 0 / 1.019 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001305/1.036, allocations: 65.52 kB / 1.019 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.753e-06/1.036, allocations: 0 / 1.019 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0002599/1.037, allocations: 73.47 kB / 1.019 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/1.037, allocations: 51.41 kB / 1.019 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/1.037, allocations: 112.4 kB / 1.019 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/1.037, allocations: 25.7 kB / 1.019 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.896e-05/1.037, allocations: 91.02 kB / 1.019 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/1.037, allocations: 30.52 kB / 1.019 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-06/1.037, allocations: 112 / 1.019 GB, free: 4.141 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001632/1.037, allocations: 321.5 kB / 1.019 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.814e-05/1.037, allocations: 15 kB / 1.019 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.521e-05/1.037, allocations: 43.98 kB / 1.02 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.75e-05/1.037, allocations: 23.17 kB / 1.02 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/1.038, allocations: 384 / 1.02 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002278/1.038, allocations: 92.94 kB / 1.02 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/1.038, allocations: 4 kB / 1.02 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/1.038, allocations: 3.938 kB / 1.02 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/1.038, allocations: 7.938 kB / 1.02 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/1.038, allocations: 20.11 kB / 1.02 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/1.038, allocations: 4 kB / 1.02 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/1.038, allocations: 19.89 kB / 1.02 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/1.038, allocations: 7.875 kB / 1.02 GB, free: 3.594 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001248/1.038, allocations: 115.4 kB / 1.02 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/1.038, allocations: 3.906 kB / 1.02 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/1.039, allocations: 79.98 kB / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/1.039, allocations: 0 / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.039, allocations: 0 / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/1.039, allocations: 0 / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006084/1.039, allocations: 338.2 kB / 1.02 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/1.039, allocations: 0 / 1.02 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/1.04, allocations: 15.98 kB / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/1.04, allocations: 0 / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/1.04, allocations: 0 / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.04, allocations: 4 kB / 1.02 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.13e-05/1.04, allocations: 11.89 kB / 1.02 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000223/1.04, allocations: 165.5 kB / 1.02 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.992e-05/1.04, allocations: 81.02 kB / 1.02 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/1.04, allocations: 3.312 kB / 1.02 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/1.04, allocations: 19.98 kB / 1.021 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.519e-05/1.04, allocations: 7.984 kB / 1.021 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/1.04, allocations: 11.92 kB / 1.021 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.917e-05/1.04, allocations: 94.09 kB / 1.021 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003369/1.041, allocations: 8 kB / 1.021 GB, free: 2.621 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: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000161/1.041, allocations: 99.25 kB / 1.021 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002111/1.041, allocations: 55.3 kB / 1.021 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.041, allocations: 0 / 1.021 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/1.041, allocations: 26.44 kB / 1.021 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/1.042, allocations: 8.688 kB / 1.021 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/1.042, allocations: 114.3 kB / 1.021 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004615/1.043, allocations: 0.7077 MB / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of SimCode: time 1.252e-06/1.043, allocations: 0 / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of Templates: time 0.00458/1.047, allocations: 0.8438 MB / 1.022 GB, free: 0.7617 MB / 0.6355 GB