Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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 8.0.0/package.mo): time 2.144/2.144, allocations: 284.9 MB / 292.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001603/0.001603, allocations: 189.2 kB / 360.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.1 MB / 0.6188 GB, free: 13.21 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001193/0.001192, allocations: 97.47 kB / 0.7318 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.446e-06/8.536e-06, allocations: 0 / 0.8503 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5343/0.5343, allocations: 115.2 MB / 0.9628 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.7358, allocations: 137 MB / 1.097 GB, free: 3.871 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.7361, allocations: 64.53 kB / 1.097 GB, free: 3.809 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004707/0.7408, allocations: 0.7809 MB / 1.097 GB, free: 3.059 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.7408, allocations: 0.5625 kB / 1.097 GB, free: 3.059 MB / 0.698 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.0006393/0.7415, allocations: 366.4 kB / 1.098 GB, free: 2.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.7416, allocations: 8.031 kB / 1.098 GB, free: 2.652 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.697e-05/0.7416, allocations: 6.688 kB / 1.098 GB, free: 2.648 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.7418, allocations: 178.9 kB / 1.098 GB, free: 2.434 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.7418, allocations: 0.5312 kB / 1.098 GB, free: 2.434 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.7418, allocations: 4.656 kB / 1.098 GB, free: 2.43 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001083/0.7419, allocations: 12 kB / 1.098 GB, free: 2.418 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.7421, allocations: 46.92 kB / 1.098 GB, free: 2.367 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.7421, allocations: 0.7188 kB / 1.098 GB, free: 2.367 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.7421, allocations: 0 / 1.098 GB, free: 2.367 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.7421, allocations: 0.875 kB / 1.098 GB, free: 2.367 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004183/0.7425, allocations: 264.6 kB / 1.098 GB, free: 2.074 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.7427, allocations: 35.78 kB / 1.098 GB, free: 2.031 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.631e-05/0.7427, allocations: 18.73 kB / 1.098 GB, free: 2.012 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.7428, allocations: 1 kB / 1.098 GB, free: 2.012 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001126/0.7429, allocations: 65.25 kB / 1.098 GB, free: 1.938 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.784e-06/0.7429, allocations: 0.5 kB / 1.098 GB, free: 1.938 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.000221/0.7431, allocations: 61.62 kB / 1.098 GB, free: 1.871 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.7432, allocations: 55.41 kB / 1.098 GB, free: 1.805 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.947e-05/0.7433, allocations: 102 kB / 1.099 GB, free: 1.699 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.7433, allocations: 29.64 kB / 1.099 GB, free: 1.664 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.767e-05/0.7434, allocations: 84.05 kB / 1.099 GB, free: 1.578 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.7434, allocations: 19.75 kB / 1.099 GB, free: 1.559 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.7434, allocations: 0 / 1.099 GB, free: 1.559 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.7436, allocations: 314.8 kB / 1.099 GB, free: 1.242 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.59e-05/0.7436, allocations: 12 kB / 1.099 GB, free: 1.23 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.299e-05/0.7437, allocations: 40.3 kB / 1.099 GB, free: 1.18 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.7439, allocations: 23.97 kB / 1.099 GB, free: 1.156 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.744, allocations: 0 / 1.099 GB, free: 1.156 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003108/0.7443, allocations: 89.44 kB / 1.099 GB, free: 1.062 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.7443, allocations: 8.094 kB / 1.099 GB, free: 1.055 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.7443, allocations: 4 kB / 1.099 GB, free: 1.051 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.7444, allocations: 0 / 1.099 GB, free: 1.051 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.7445, allocations: 15.98 kB / 1.099 GB, free: 1.035 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.7446, allocations: 7.75 kB / 1.099 GB, free: 1.031 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.7447, allocations: 11.98 kB / 1.099 GB, free: 1.02 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.7448, allocations: 5.875 kB / 1.099 GB, free: 1.016 MB / 0.698 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 9.442e-05/0.7449, allocations: 117.1 kB / 1.099 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.7449, allocations: 3.906 kB / 1.099 GB, free: 0.8945 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001904/0.7451, allocations: 69.98 kB / 1.099 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.7451, allocations: 0 / 1.099 GB, free: 0.8242 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.7451, allocations: 4 kB / 1.099 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.7451, allocations: 0 / 1.099 GB, free: 0.8203 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.7455, allocations: 297.5 kB / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.7456, allocations: 0 / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.7457, allocations: 15.92 kB / 1.1 GB, free: 484 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.7457, allocations: 2 kB / 1.1 GB, free: 484 kB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.7457, allocations: 7.906 kB / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.7457, allocations: 0 / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.7457, allocations: 0 / 1.1 GB, free: 476 kB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002334/0.746, allocations: 159.5 kB / 1.1 GB, free: 300 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.7461, allocations: 81.11 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.7461, allocations: 4.594 kB / 1.1 GB, free: 196 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.7463, allocations: 8 kB / 1.1 GB, free: 188 kB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.7463, allocations: 15.89 kB / 1.1 GB, free: 172 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.7464, allocations: 0 / 1.1 GB, free: 172 kB / 0.698 GB Notification: Performance of sort global known variables: time 5.59e-05/0.7464, allocations: 89.16 kB / 1.1 GB, free: 84 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003452/0.7468, allocations: 19.98 kB / 1.1 GB, free: 64 kB / 0.698 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.0002162/0.747, allocations: 111.1 kB / 1.1 GB, free: 15.94 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001695/0.7472, allocations: 36 kB / 1.1 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.7472, allocations: 0 / 1.1 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.713e-05/0.7473, allocations: 24.11 kB / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.7476, allocations: 8 kB / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003428/0.7479, allocations: 84.64 kB / 1.1 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.7483, allocations: 0.6919 MB / 1.101 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of SimCode: time 9.02e-07/0.7483, allocations: 0 / 1.101 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of Templates: time 0.003871/0.7522, allocations: 0.7517 MB / 1.102 GB, free: 14.34 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)