Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.341/1.341, allocations: 289.8 MB / 297.1 MB, free: 6.645 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.001047/0.001048, allocations: 177.3 kB / 366.3 MB, free: 2.004 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.082/1.082, allocations: 205.2 MB / 0.6256 GB, free: 5.848 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.000839/0.000839, allocations: 85.2 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.933e-06, allocations: 0 / 0.859 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4679/0.4679, allocations: 116.3 MB / 0.9726 GB, free: 68.16 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1377/0.6057, allocations: 138.6 MB / 1.108 GB, free: 9.906 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.6059, allocations: 71.95 kB / 1.108 GB, free: 9.836 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.00589/0.6118, allocations: 1.957 MB / 1.11 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.6118, allocations: 4 kB / 1.11 GB, free: 7.895 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000402/0.6122, allocations: 396 kB / 1.11 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.6122, allocations: 12.59 kB / 1.11 GB, free: 7.445 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.6123, allocations: 19.83 kB / 1.11 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.6124, allocations: 177.1 kB / 1.111 GB, free: 7.215 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.6124, allocations: 4 kB / 1.111 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.6125, allocations: 4 kB / 1.111 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.718e-05/0.6125, allocations: 20 kB / 1.111 GB, free: 7.188 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.612e-05/0.6126, allocations: 65.02 kB / 1.111 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.6126, allocations: 0 / 1.111 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.6127, allocations: 0 / 1.111 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.6127, allocations: 4 kB / 1.111 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003915/0.6131, allocations: 313.2 kB / 1.111 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.45e-05/0.6131, allocations: 38.58 kB / 1.111 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.415e-05/0.6132, allocations: 25.77 kB / 1.111 GB, free: 6.699 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.6132, allocations: 0 / 1.111 GB, free: 6.699 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.195e-05/0.6133, allocations: 75.33 kB / 1.111 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.6133, allocations: 0 / 1.111 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0001804/0.6135, allocations: 77.58 kB / 1.111 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.6135, allocations: 55.41 kB / 1.111 GB, free: 6.465 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.007e-05/0.6136, allocations: 105 kB / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.6136, allocations: 29.7 kB / 1.111 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/0.6137, allocations: 92.92 kB / 1.111 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.6137, allocations: 19.8 kB / 1.111 GB, free: 6.207 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.395e-05/0.6137, allocations: 4 kB / 1.111 GB, free: 6.203 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.948e-05/0.6138, allocations: 322.8 kB / 1.112 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.139e-05/0.6139, allocations: 35.98 kB / 1.112 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.817e-05/0.614, allocations: 77.08 kB / 1.112 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.6142, allocations: 47.97 kB / 1.112 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6142, allocations: 0 / 1.112 GB, free: 5.703 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00033/0.6145, allocations: 149.4 kB / 1.112 GB, free: 5.551 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.6146, allocations: 4 kB / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.6146, allocations: 4.562 kB / 1.112 GB, free: 5.543 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.6146, allocations: 4.156 kB / 1.112 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.6147, allocations: 19.98 kB / 1.112 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.6147, allocations: 2.891 kB / 1.112 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002188/0.6149, allocations: 55.86 kB / 1.112 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.615, allocations: 12 kB / 1.112 GB, free: 5.453 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 6.992e-05/0.6151, allocations: 125.8 kB / 1.112 GB, free: 5.324 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.6151, allocations: 7.938 kB / 1.112 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.6152, allocations: 78.05 kB / 1.112 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6152, allocations: 0 / 1.112 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.6152, allocations: 0 / 1.112 GB, free: 5.23 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.6152, allocations: 4 kB / 1.112 GB, free: 5.227 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.6155, allocations: 311 kB / 1.113 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6155, allocations: 0 / 1.113 GB, free: 4.879 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.6156, allocations: 19.98 kB / 1.113 GB, free: 4.859 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.6156, allocations: 3.938 kB / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.6156, allocations: 0.75 kB / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6156, allocations: 0 / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.6156, allocations: 0 / 1.113 GB, free: 4.855 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001385/0.6157, allocations: 179.4 kB / 1.113 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.6158, allocations: 85.02 kB / 1.113 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.6158, allocations: 0 / 1.113 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.6159, allocations: 15.89 kB / 1.113 GB, free: 4.547 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.6159, allocations: 11.92 kB / 1.113 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.6159, allocations: 1.125 kB / 1.113 GB, free: 4.535 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.467e-05/0.616, allocations: 89.58 kB / 1.113 GB, free: 4.449 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002394/0.6162, allocations: 35.98 kB / 1.113 GB, free: 4.414 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,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.0001172/0.6164, allocations: 103.2 kB / 1.113 GB, free: 4.305 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001913/0.6166, allocations: 109.6 kB / 1.113 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.6166, allocations: 0 / 1.113 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.6166, allocations: 24 kB / 1.113 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.6168, allocations: 13.02 kB / 1.113 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002466/0.6171, allocations: 107.7 kB / 1.113 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.6173, allocations: 0.7114 MB / 1.114 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of SimCode: time 2.81e-07/0.6173, allocations: 0 / 1.114 GB, free: 3.289 MB / 0.7136 GB Notification: Performance of Templates: time 0.003009/0.6204, allocations: 1.274 MB / 1.115 GB, free: 2.055 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)