Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.377/1.377, allocations: 289.8 MB / 297.1 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009694/0.0009696, allocations: 177.4 kB / 366.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.071/1.071, allocations: 205.1 MB / 0.6256 GB, free: 5.84 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007921/0.0007922, allocations: 85.12 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.886e-06/8.966e-06, allocations: 4 kB / 0.859 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4067, allocations: 116.3 MB / 0.9726 GB, free: 68.68 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1311/0.5379, allocations: 138.1 MB / 1.107 GB, free: 10.36 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001851/0.5382, allocations: 73.55 kB / 1.108 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.002814/0.541, allocations: 0.779 MB / 1.108 GB, free: 9.531 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.541, allocations: 4 kB / 1.108 GB, free: 9.527 MB / 0.7136 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.0004182/0.5414, allocations: 366.3 kB / 1.109 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.5415, allocations: 8.031 kB / 1.109 GB, free: 9.117 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.906e-05/0.5415, allocations: 4 kB / 1.109 GB, free: 9.113 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.5416, allocations: 178.9 kB / 1.109 GB, free: 8.898 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.5416, allocations: 8 kB / 1.109 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.5417, allocations: 0 / 1.109 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.842e-05/0.5417, allocations: 16 kB / 1.109 GB, free: 8.875 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.746e-05/0.5418, allocations: 41.69 kB / 1.109 GB, free: 8.828 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.5418, allocations: 3.984 kB / 1.109 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.5419, allocations: 4 kB / 1.109 GB, free: 8.82 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.5419, allocations: 0 / 1.109 GB, free: 8.82 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002998/0.5422, allocations: 249.4 kB / 1.109 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.451e-05/0.5422, allocations: 42.52 kB / 1.109 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.081e-05/0.5423, allocations: 16.98 kB / 1.109 GB, free: 8.469 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.5423, allocations: 1.594 kB / 1.109 GB, free: 8.469 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.529e-05/0.5424, allocations: 67.3 kB / 1.109 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.5424, allocations: 0 / 1.109 GB, free: 8.391 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001506/0.5426, allocations: 61.69 kB / 1.109 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.5426, allocations: 51.41 kB / 1.109 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.686e-05/0.5427, allocations: 97.08 kB / 1.109 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.5427, allocations: 25.7 kB / 1.109 GB, free: 8.129 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.884e-05/0.5427, allocations: 91.92 kB / 1.11 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.5427, allocations: 27.72 kB / 1.11 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.5428, allocations: 0 / 1.11 GB, free: 8.008 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.619e-05/0.5428, allocations: 310.8 kB / 1.11 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.543e-05/0.5429, allocations: 16 kB / 1.11 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.95e-05/0.5429, allocations: 41.84 kB / 1.11 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.5431, allocations: 23.97 kB / 1.11 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.5431, allocations: 0 / 1.11 GB, free: 7.605 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001846/0.5433, allocations: 89.5 kB / 1.11 GB, free: 7.512 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.5433, allocations: 4 kB / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.5433, allocations: 1.219 kB / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.5433, allocations: 4 kB / 1.11 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.5434, allocations: 19.92 kB / 1.11 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.5434, allocations: 0 / 1.11 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.5435, allocations: 16.08 kB / 1.11 GB, free: 7.469 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.5435, allocations: 4 kB / 1.11 GB, free: 7.465 MB / 0.7136 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 5.676e-05/0.5436, allocations: 109 kB / 1.11 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.169e-05/0.5436, allocations: 3.906 kB / 1.11 GB, free: 7.348 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.5437, allocations: 66.05 kB / 1.11 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.5437, allocations: 0 / 1.11 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.5437, allocations: 0 / 1.11 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.5438, allocations: 0 / 1.11 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.544, allocations: 309.9 kB / 1.111 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.544, allocations: 0.9375 kB / 1.111 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.5441, allocations: 11.98 kB / 1.111 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.5441, allocations: 0 / 1.111 GB, free: 6.918 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.5441, allocations: 3.906 kB / 1.111 GB, free: 6.914 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5441, allocations: 4 kB / 1.111 GB, free: 6.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5441, allocations: 4 kB / 1.111 GB, free: 6.906 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001164/0.5442, allocations: 163.4 kB / 1.111 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.5443, allocations: 81.11 kB / 1.111 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.5443, allocations: 0 / 1.111 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.5444, allocations: 11.98 kB / 1.111 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.5444, allocations: 12.75 kB / 1.111 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.5444, allocations: 0 / 1.111 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.921e-05/0.5445, allocations: 87.27 kB / 1.111 GB, free: 6.523 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002147/0.5447, allocations: 15.94 kB / 1.111 GB, free: 6.508 MB / 0.7136 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.0001242/0.5448, allocations: 107.2 kB / 1.111 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001001/0.5449, allocations: 44.77 kB / 1.111 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.5449, allocations: 0 / 1.111 GB, free: 6.352 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.626e-05/0.545, allocations: 20.19 kB / 1.111 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.5452, allocations: 4 kB / 1.111 GB, free: 6.328 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002233/0.5454, allocations: 84.83 kB / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.5457, allocations: 0.6958 MB / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of SimCode: time 2.5e-07/0.5457, allocations: 0 / 1.112 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of Templates: time 0.002312/0.548, allocations: 0.756 MB / 1.113 GB, free: 4.777 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)