Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.207/2.207, allocations: 248.6 MB / 255.9 MB, free: 380 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001577/0.001577, allocations: 184.4 kB / 315.1 MB, free: 7.801 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.243/2.243, allocations: 205.1 MB / 0.5658 GB, free: 25.42 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001416/0.001416, allocations: 90.33 kB / 0.67 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3164/0.3178, allocations: 112.4 MB / 0.7797 GB, free: 2.48 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5562/0.8741, allocations: 106.2 MB / 0.8835 GB, free: 77.3 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2413/1.116, allocations: 130.7 MB / 1.011 GB, free: 10.44 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003766/1.116, allocations: 71.95 kB / 1.011 GB, free: 10.37 MB / 0.6667 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.006402/1.122, allocations: 0.9265 MB / 1.012 GB, free: 9.402 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/1.122, allocations: 8 kB / 1.012 GB, free: 9.395 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/1.123, allocations: 7.906 kB / 1.012 GB, free: 9.387 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/1.123, allocations: 163.1 kB / 1.012 GB, free: 9.188 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/1.123, allocations: 4 kB / 1.012 GB, free: 9.184 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/1.123, allocations: 0 / 1.012 GB, free: 9.184 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001666/1.123, allocations: 19.98 kB / 1.012 GB, free: 9.164 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001776/1.123, allocations: 49.59 kB / 1.012 GB, free: 9.109 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/1.123, allocations: 3.938 kB / 1.012 GB, free: 9.105 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/1.123, allocations: 4 kB / 1.012 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/1.123, allocations: 0 / 1.012 GB, free: 9.102 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/1.124, allocations: 257.2 kB / 1.013 GB, free: 8.812 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/1.124, allocations: 38.58 kB / 1.013 GB, free: 8.766 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.559e-05/1.124, allocations: 16.98 kB / 1.013 GB, free: 8.746 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/1.124, allocations: 0 / 1.013 GB, free: 8.746 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/1.125, allocations: 63.39 kB / 1.013 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=6): time 3.567e-06/1.125, allocations: 0 / 1.013 GB, free: 8.672 MB / 0.6667 GB Notification: Performance of matching and sorting (n=6): time 0.0003331/1.125, allocations: 65.55 kB / 1.013 GB, free: 8.602 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/1.125, allocations: 55.39 kB / 1.013 GB, free: 8.535 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/1.125, allocations: 93 kB / 1.013 GB, free: 8.438 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/1.125, allocations: 29.7 kB / 1.013 GB, free: 8.402 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 5.76e-05/1.125, allocations: 80.14 kB / 1.013 GB, free: 8.32 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 4.173e-05/1.125, allocations: 15.8 kB / 1.013 GB, free: 8.305 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-06/1.125, allocations: 4 kB / 1.013 GB, free: 8.301 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001564/1.126, allocations: 310.8 kB / 1.013 GB, free: 7.988 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.111e-05/1.126, allocations: 12 kB / 1.013 GB, free: 7.977 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/1.126, allocations: 39.44 kB / 1.013 GB, free: 7.926 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.79e-05/1.126, allocations: 11.98 kB / 1.013 GB, free: 7.914 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/1.126, allocations: 4 kB / 1.013 GB, free: 7.91 MB / 0.6667 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000286/1.126, allocations: 69.62 kB / 1.013 GB, free: 7.836 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/1.126, allocations: 11.94 kB / 1.013 GB, free: 7.824 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.126, allocations: 320 / 1.013 GB, free: 7.824 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/1.126, allocations: 7.938 kB / 1.013 GB, free: 7.816 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/1.127, allocations: 15.98 kB / 1.013 GB, free: 7.801 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/1.127, allocations: 4 kB / 1.013 GB, free: 7.797 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/1.127, allocations: 19.89 kB / 1.013 GB, free: 7.777 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/1.127, allocations: 4 kB / 1.013 GB, free: 7.773 MB / 0.6667 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 0.0001363/1.127, allocations: 105 kB / 1.014 GB, free: 7.664 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.999e-05/1.127, allocations: 3.906 kB / 1.014 GB, free: 7.66 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/1.127, allocations: 73.98 kB / 1.014 GB, free: 7.582 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/1.127, allocations: 0 / 1.014 GB, free: 7.582 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.127, allocations: 0 / 1.014 GB, free: 7.582 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/1.128, allocations: 0 / 1.014 GB, free: 7.582 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000591/1.128, allocations: 303.1 kB / 1.014 GB, free: 7.242 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/1.128, allocations: 3.938 kB / 1.014 GB, free: 7.238 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/1.128, allocations: 15.97 kB / 1.014 GB, free: 7.223 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/1.128, allocations: 3.984 kB / 1.014 GB, free: 7.219 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/1.128, allocations: 0 / 1.014 GB, free: 7.219 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/1.128, allocations: 4 kB / 1.014 GB, free: 7.215 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.128, allocations: 0 / 1.014 GB, free: 7.215 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003403/1.129, allocations: 162 kB / 1.014 GB, free: 7.043 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004614/1.129, allocations: 0.5311 MB / 1.015 GB, free: 6.492 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.974e-05/1.129, allocations: 81.02 kB / 1.015 GB, free: 6.395 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/1.13, allocations: 8.188 kB / 1.015 GB, free: 6.387 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/1.13, allocations: 19.98 kB / 1.015 GB, free: 6.367 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/1.13, allocations: 0 / 1.015 GB, free: 6.367 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.57e-05/1.13, allocations: 7.984 kB / 1.015 GB, free: 6.359 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7.674e-05/1.13, allocations: 83.28 kB / 1.015 GB, free: 6.277 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001915/1.132, allocations: 8 kB / 1.015 GB, free: 6.27 MB / 0.6667 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.0002166/1.132, allocations: 99.25 kB / 1.015 GB, free: 6.164 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002617/1.133, allocations: 31.94 kB / 1.015 GB, free: 6.133 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.133, allocations: 4 kB / 1.015 GB, free: 6.129 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/1.133, allocations: 23.98 kB / 1.015 GB, free: 6.105 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/1.133, allocations: 6.469 kB / 1.015 GB, free: 6.102 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/1.134, allocations: 87.61 kB / 1.015 GB, free: 5.992 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004789/1.134, allocations: 0.6921 MB / 1.016 GB, free: 5.273 MB / 0.6667 GB Notification: Performance of SimCode: time 1.623e-06/1.134, allocations: 11.94 kB / 1.016 GB, free: 5.262 MB / 0.6667 GB