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.Sampler.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.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") [: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.58/2.58, allocations: 253.1 MB / 260.4 MB, free: 7.57 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.00243/0.002429, allocations: 181.3 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 2.004/2.004, 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.001387/0.001387, allocations: 87.33 kB / 0.6746 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.322e-05/1.341e-05, allocations: 7.938 kB / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2158, allocations: 106.3 MB / 0.8881 GB, free: 12.2 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7087/0.9246, allocations: 131.7 MB / 1.017 GB, free: 6.691 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.9249, allocations: 65.06 kB / 1.017 GB, free: 6.66 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003441/0.9283, allocations: 0.5725 MB / 1.017 GB, free: 6.172 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.804e-06/0.9284, allocations: 0 / 1.017 GB, free: 6.172 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000574/0.929, allocations: 361.4 kB / 1.018 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.929, allocations: 12.03 kB / 1.018 GB, free: 5.766 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.246e-05/0.9291, allocations: 3.906 kB / 1.018 GB, free: 5.762 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.9292, allocations: 167 kB / 1.018 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.9293, allocations: 3.312 kB / 1.018 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.9293, allocations: 11.92 kB / 1.018 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001084/0.9294, allocations: 11.19 kB / 1.018 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.9295, allocations: 53.06 kB / 1.018 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.9296, allocations: 0 / 1.018 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.9296, allocations: 0 / 1.018 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.9296, allocations: 0 / 1.018 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003995/0.93, allocations: 259 kB / 1.018 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.9301, allocations: 45.81 kB / 1.018 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.399e-05/0.9302, allocations: 11.67 kB / 1.018 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.9302, allocations: 4 kB / 1.018 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001068/0.9304, allocations: 58.52 kB / 1.018 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.823e-06/0.9304, allocations: 10.56 kB / 1.018 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002137/0.9306, allocations: 63.28 kB / 1.018 GB, free: 5.023 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.9307, allocations: 51.41 kB / 1.018 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.418e-05/0.9307, allocations: 96.25 kB / 1.018 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.9308, allocations: 29.64 kB / 1.018 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.163e-05/0.9308, allocations: 80.14 kB / 1.019 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.9309, allocations: 15.8 kB / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-06/0.9309, allocations: 0 / 1.019 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.931, allocations: 321.8 kB / 1.019 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.112e-05/0.9311, allocations: 11.88 kB / 1.019 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.867e-05/0.9312, allocations: 39.23 kB / 1.019 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.86e-05/0.9312, allocations: 10.81 kB / 1.019 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9312, allocations: 0 / 1.019 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000195/0.9314, allocations: 73.03 kB / 1.019 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.9315, allocations: 10.19 kB / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.9315, allocations: 0 / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.9315, allocations: 0 / 1.019 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.9317, allocations: 15.98 kB / 1.019 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.9317, allocations: 7.938 kB / 1.019 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.9318, allocations: 19.98 kB / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.9319, allocations: 0 / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.96e-05/0.932, allocations: 107.4 kB / 1.019 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.932, allocations: 7.906 kB / 1.019 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.9322, allocations: 67.61 kB / 1.019 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.9322, allocations: 10.56 kB / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9322, allocations: 0 / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.9322, allocations: 0 / 1.019 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003667/0.9326, allocations: 304.2 kB / 1.02 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.9326, allocations: 0 / 1.02 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.9328, allocations: 15.98 kB / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.9328, allocations: 0 / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.9328, allocations: 0 / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.9328, allocations: 0 / 1.02 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.9328, allocations: 4 kB / 1.02 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001944/0.933, allocations: 169.5 kB / 1.02 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.9331, allocations: 81.02 kB / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.9331, allocations: 0.875 kB / 1.02 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.9333, allocations: 11.98 kB / 1.02 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.9334, allocations: 8 kB / 1.02 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.9334, allocations: 0 / 1.02 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.495e-05/0.9335, allocations: 87.83 kB / 1.02 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003349/0.9338, allocations: 12 kB / 1.02 GB, free: 3.324 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001402/0.934, allocations: 95.19 kB / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001652/0.9341, allocations: 38.5 kB / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.9342, allocations: 192 / 1.02 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.91e-05/0.9342, allocations: 19.06 kB / 1.02 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.9345, allocations: 7.984 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.9349, allocations: 93.03 kB / 1.02 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.9353, allocations: 0.699 MB / 1.021 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of SimCode: time 7.22e-07/0.9353, allocations: 0 / 1.021 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of Templates: time 0.003512/0.9388, allocations: 0.6121 MB / 1.021 GB, free: 1.742 MB / 0.6355 GB