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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.14/2.14, allocations: 284.9 MB / 292.2 MB, free: 10.75 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.001577/0.001577, allocations: 189.2 kB / 360.4 MB, free: 7.492 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.562/1.562, allocations: 205.1 MB / 0.6188 GB, free: 12.43 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.001224/0.001224, allocations: 85.88 kB / 0.7318 GB, free: 45 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.796e-05/1.807e-05, allocations: 4 kB / 0.8502 GB, free: 3.859 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.552/0.5521, allocations: 115.2 MB / 0.9628 GB, free: 78.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2298/0.7819, allocations: 137 MB / 1.097 GB, free: 3.848 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.7822, allocations: 71.95 kB / 1.097 GB, free: 3.777 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004253/0.7865, allocations: 0.7265 MB / 1.097 GB, free: 3.078 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.7865, allocations: 3.188 kB / 1.097 GB, free: 3.078 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.0005136/0.7871, allocations: 361 kB / 1.098 GB, free: 2.684 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.7871, allocations: 8.625 kB / 1.098 GB, free: 2.676 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.7872, allocations: 2.078 kB / 1.098 GB, free: 2.676 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.7873, allocations: 173.2 kB / 1.098 GB, free: 2.469 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.7873, allocations: 0.875 kB / 1.098 GB, free: 2.469 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.7874, allocations: 4 kB / 1.098 GB, free: 2.465 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.02e-05/0.7875, allocations: 12 kB / 1.098 GB, free: 2.453 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.7876, allocations: 47.22 kB / 1.098 GB, free: 2.402 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.7876, allocations: 4.812 kB / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.7876, allocations: 0 / 1.098 GB, free: 2.398 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.7876, allocations: 4 kB / 1.098 GB, free: 2.395 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003825/0.788, allocations: 243.5 kB / 1.098 GB, free: 2.121 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.457e-05/0.7881, allocations: 35.89 kB / 1.098 GB, free: 2.078 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.645e-05/0.7882, allocations: 13.36 kB / 1.098 GB, free: 2.062 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.7882, allocations: 0.75 kB / 1.098 GB, free: 2.062 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.813e-05/0.7883, allocations: 61.81 kB / 1.098 GB, free: 1.992 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.844e-06/0.7884, allocations: 0.6875 kB / 1.098 GB, free: 1.992 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001892/0.7886, allocations: 50.52 kB / 1.098 GB, free: 1.938 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.7886, allocations: 59.39 kB / 1.098 GB, free: 1.867 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.159e-05/0.7887, allocations: 93.5 kB / 1.098 GB, free: 1.77 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.7887, allocations: 29.7 kB / 1.098 GB, free: 1.734 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.483e-05/0.7888, allocations: 95.98 kB / 1.099 GB, free: 1.637 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.7888, allocations: 11.83 kB / 1.099 GB, free: 1.625 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-06/0.7889, allocations: 0 / 1.099 GB, free: 1.625 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.789, allocations: 322.8 kB / 1.099 GB, free: 1.301 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.018e-05/0.789, allocations: 8 kB / 1.099 GB, free: 1.293 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.609e-05/0.7891, allocations: 35.11 kB / 1.099 GB, free: 1.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.7893, allocations: 31.91 kB / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.7893, allocations: 0 / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003006/0.7897, allocations: 81.59 kB / 1.099 GB, free: 1.133 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.7897, allocations: 4 kB / 1.099 GB, free: 1.129 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7897, allocations: 1.688 kB / 1.099 GB, free: 1.129 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.7897, allocations: 8.125 kB / 1.099 GB, free: 1.121 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.7899, allocations: 23.64 kB / 1.099 GB, free: 1.102 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.7899, allocations: 0 / 1.099 GB, free: 1.102 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.7901, allocations: 11.98 kB / 1.099 GB, free: 1.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.7901, allocations: 4 kB / 1.099 GB, free: 1.086 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: 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 8.35e-05/0.7902, allocations: 113 kB / 1.099 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.7902, allocations: 7.906 kB / 1.099 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.7904, allocations: 61.69 kB / 1.099 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.7904, allocations: 0 / 1.099 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.7904, allocations: 1.938 kB / 1.099 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.7904, allocations: 0 / 1.099 GB, free: 0.8984 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.7908, allocations: 291 kB / 1.1 GB, free: 0.5703 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.7908, allocations: 0 / 1.1 GB, free: 0.5703 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.7909, allocations: 19.98 kB / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.7909, allocations: 0 / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.148e-06/0.7909, allocations: 0 / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.791, allocations: 0 / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.791, allocations: 0 / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001731/0.7912, allocations: 161.1 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.7912, allocations: 81.02 kB / 1.1 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.7912, allocations: 3.984 kB / 1.1 GB, free: 284 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.7914, allocations: 8 kB / 1.1 GB, free: 276 kB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.7915, allocations: 4.969 kB / 1.1 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.7915, allocations: 4 kB / 1.1 GB, free: 268 kB / 0.698 GB Notification: Performance of sort global known variables: time 5.434e-05/0.7916, allocations: 83.28 kB / 1.1 GB, free: 184 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003284/0.7919, allocations: 31.78 kB / 1.1 GB, free: 152 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: 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.0001672/0.7921, allocations: 111.2 kB / 1.1 GB, free: 32 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0001327/0.7922, allocations: 28 kB / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7922, allocations: 0 / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.7924, allocations: 15.98 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002277/0.7926, allocations: 4 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002909/0.7929, allocations: 80.78 kB / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.7932, allocations: 0.6958 MB / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of SimCode: time 6.91e-07/0.7932, allocations: 0 / 1.101 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of Templates: time 0.003613/0.7969, allocations: 0.7045 MB / 1.102 GB, free: 14.49 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)