Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [: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.0.1-maint.8.0.x/package.mo): time 1.316/1.316, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009537/0.0009538, allocations: 181.3 kB / 361.1 MB, free: 7.07 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.044/1.044, allocations: 205.1 MB / 0.6195 GB, free: 10.27 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.0009594/0.0009596, allocations: 91.05 kB / 0.7326 GB, free: 44.2 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.313e-06/7.344e-06, allocations: 4 kB / 0.8511 GB, free: 2.945 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4252/0.4252, allocations: 115.3 MB / 0.9637 GB, free: 77.97 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.5554, allocations: 137.1 MB / 1.098 GB, free: 2.949 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.5557, allocations: 67.95 kB / 1.098 GB, free: 2.883 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.002759/0.5584, allocations: 0.7241 MB / 1.098 GB, free: 2.184 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.403e-06/0.5585, allocations: 7.5 kB / 1.098 GB, free: 2.18 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003407/0.5588, allocations: 350.3 kB / 1.099 GB, free: 1.793 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.5588, allocations: 10.61 kB / 1.099 GB, free: 1.785 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.5589, allocations: 5.375 kB / 1.099 GB, free: 1.781 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.818e-05/0.559, allocations: 179.6 kB / 1.099 GB, free: 1.566 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.559, allocations: 0 / 1.099 GB, free: 1.566 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.559, allocations: 5.984 kB / 1.099 GB, free: 1.562 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.329e-05/0.5591, allocations: 17.38 kB / 1.099 GB, free: 1.547 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.674e-05/0.5592, allocations: 41.69 kB / 1.099 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.5592, allocations: 0 / 1.099 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.5592, allocations: 0.6562 kB / 1.099 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.5592, allocations: 0 / 1.099 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002797/0.5595, allocations: 251.3 kB / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.039e-05/0.5596, allocations: 27.11 kB / 1.099 GB, free: 1.184 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.653e-05/0.5596, allocations: 17.36 kB / 1.099 GB, free: 1.164 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.5596, allocations: 0.5 kB / 1.099 GB, free: 1.164 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.264e-05/0.5597, allocations: 59.06 kB / 1.099 GB, free: 1.098 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.5597, allocations: 0 / 1.099 GB, free: 1.098 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001301/0.5598, allocations: 58.14 kB / 1.099 GB, free: 1.035 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.5599, allocations: 54.78 kB / 1.099 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.986e-05/0.5599, allocations: 101 kB / 1.099 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.5599, allocations: 29.64 kB / 1.1 GB, free: 0.832 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.56, allocations: 88.05 kB / 1.1 GB, free: 0.7422 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.56, allocations: 11.84 kB / 1.1 GB, free: 0.7305 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-06/0.56, allocations: 0 / 1.1 GB, free: 0.7305 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.25e-05/0.5601, allocations: 325 kB / 1.1 GB, free: 416 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.611e-05/0.5601, allocations: 12 kB / 1.1 GB, free: 404 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.682e-05/0.5602, allocations: 34.38 kB / 1.1 GB, free: 360 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001314/0.5603, allocations: 24.5 kB / 1.1 GB, free: 336 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.5603, allocations: 0 / 1.1 GB, free: 336 kB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001855/0.5605, allocations: 75.77 kB / 1.1 GB, free: 256 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.078e-06/0.5605, allocations: 4 kB / 1.1 GB, free: 252 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.5605, allocations: 4 kB / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.948e-06/0.5606, allocations: 0.7812 kB / 1.1 GB, free: 248 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.5607, allocations: 25.14 kB / 1.1 GB, free: 224 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5607, allocations: 6.156 kB / 1.1 GB, free: 220 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.724e-05/0.5608, allocations: 16.11 kB / 1.1 GB, free: 204 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.5608, allocations: 0 / 1.1 GB, free: 204 kB / 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: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 6.089e-05/0.5609, allocations: 107.5 kB / 1.1 GB, free: 92 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.5609, allocations: 5.312 kB / 1.1 GB, free: 88 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.561, allocations: 69.67 kB / 1.1 GB, free: 12 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.561, allocations: 0 / 1.1 GB, free: 12 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.561, allocations: 9.375 kB / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.561, allocations: 0 / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.5613, allocations: 283.1 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5613, allocations: 0 / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.812e-05/0.5614, allocations: 12 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.5614, allocations: 3.984 kB / 1.101 GB, free: 15.67 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.5614, allocations: 8 kB / 1.101 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5614, allocations: 2.125 kB / 1.101 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5614, allocations: 3.938 kB / 1.101 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001098/0.5615, allocations: 147.5 kB / 1.101 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.047e-05/0.5616, allocations: 85.02 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.5616, allocations: 0 / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.5617, allocations: 18.14 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.835e-05/0.5617, allocations: 1.312 kB / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.5617, allocations: 0 / 1.101 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.199e-05/0.5618, allocations: 97.94 kB / 1.101 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002459/0.562, allocations: 19.84 kB / 1.101 GB, free: 15.27 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001314/0.5622, allocations: 107 kB / 1.101 GB, free: 15.15 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.35e-05/0.5623, allocations: 31.92 kB / 1.101 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5623, allocations: 8.25 kB / 1.101 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.373e-05/0.5623, allocations: 12 kB / 1.101 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.5625, allocations: 5.891 kB / 1.101 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000208/0.5627, allocations: 86.39 kB / 1.101 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.5629, allocations: 0.6919 MB / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.5629, allocations: 0 / 1.102 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of Templates: time 0.002323/0.5652, allocations: 0.709 MB / 1.103 GB, free: 13.61 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)