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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [: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.211/2.211, allocations: 284.9 MB / 292.2 MB, free: 9.844 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.00162/0.001619, allocations: 183 kB / 360.4 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.1 MB / 0.6188 GB, free: 3.297 MB / 442.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 92.83 kB / 0.7318 GB, free: 1.719 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 1.267e-05/1.279e-05, allocations: 1 kB / 0.8503 GB, free: 150.2 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1897, allocations: 115.2 MB / 0.9628 GB, free: 56.97 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6073/0.7971, allocations: 137 MB / 1.097 GB, free: 44.45 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.7974, allocations: 69.39 kB / 1.097 GB, free: 44.45 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.004406/0.8018, allocations: 0.793 MB / 1.097 GB, free: 44.44 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.8018, allocations: 4 kB / 1.097 GB, free: 44.43 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005157/0.8024, allocations: 371.7 kB / 1.098 GB, free: 44.07 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.8024, allocations: 8.875 kB / 1.098 GB, free: 44.07 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.805e-05/0.8025, allocations: 7.781 kB / 1.098 GB, free: 44.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.733e-05/0.8026, allocations: 163 kB / 1.098 GB, free: 43.87 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.8026, allocations: 7.672 kB / 1.098 GB, free: 43.87 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.8026, allocations: 0 / 1.098 GB, free: 43.87 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001091/0.8027, allocations: 18.81 kB / 1.098 GB, free: 43.87 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.8029, allocations: 48.39 kB / 1.098 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8029, allocations: 3.844 kB / 1.098 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.8029, allocations: 0.8438 kB / 1.098 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.8029, allocations: 4 kB / 1.098 GB, free: 43.84 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004879/0.8034, allocations: 272.6 kB / 1.098 GB, free: 43.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.8035, allocations: 45.44 kB / 1.098 GB, free: 43.57 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.982e-05/0.8036, allocations: 18.8 kB / 1.098 GB, free: 43.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.8036, allocations: 0 / 1.098 GB, free: 43.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.575e-05/0.8037, allocations: 63.88 kB / 1.098 GB, free: 43.52 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.714e-06/0.8037, allocations: 0 / 1.098 GB, free: 43.52 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0002015/0.804, allocations: 66.78 kB / 1.098 GB, free: 43.48 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.804, allocations: 63.22 kB / 1.099 GB, free: 43.41 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.859e-05/0.8041, allocations: 97.64 kB / 1.099 GB, free: 43.32 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.8041, allocations: 29.58 kB / 1.099 GB, free: 43.29 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.8041, allocations: 84.05 kB / 1.099 GB, free: 43.2 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.8042, allocations: 27.03 kB / 1.099 GB, free: 43.19 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-06/0.8042, allocations: 0 / 1.099 GB, free: 43.19 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.396e-05/0.8042, allocations: 314.4 kB / 1.099 GB, free: 42.88 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.627e-05/0.8043, allocations: 15.19 kB / 1.099 GB, free: 42.88 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.353e-05/0.8044, allocations: 50.84 kB / 1.099 GB, free: 42.83 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.8046, allocations: 22.8 kB / 1.099 GB, free: 42.83 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.8046, allocations: 3.875 kB / 1.099 GB, free: 42.83 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002908/0.8049, allocations: 94.31 kB / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.8049, allocations: 7.688 kB / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.8049, allocations: 3.875 kB / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.8049, allocations: 0 / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.8051, allocations: 22.55 kB / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.8052, allocations: 4.578 kB / 1.099 GB, free: 42.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000158/0.8053, allocations: 19.05 kB / 1.099 GB, free: 42.78 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.8054, allocations: 4.812 kB / 1.099 GB, free: 42.78 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.275e-05/0.8054, allocations: 108.2 kB / 1.099 GB, free: 42.67 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.726e-05/0.8055, allocations: 7.781 kB / 1.099 GB, free: 42.66 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.8056, allocations: 70.36 kB / 1.099 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.8057, allocations: 0 / 1.099 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8057, allocations: 0 / 1.099 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.8057, allocations: 3.422 kB / 1.099 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.806, allocations: 310.2 kB / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.806, allocations: 0 / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.8061, allocations: 14.92 kB / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.8061, allocations: 0.6875 kB / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.8062, allocations: 7.688 kB / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.8062, allocations: 0 / 1.1 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.8062, allocations: 4 kB / 1.1 GB, free: 42.35 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000149/0.8063, allocations: 162.7 kB / 1.1 GB, free: 42.22 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.75e-05/0.8064, allocations: 90.02 kB / 1.1 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.8064, allocations: 0 / 1.1 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.8066, allocations: 10.92 kB / 1.1 GB, free: 42.12 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.8067, allocations: 11.25 kB / 1.1 GB, free: 42.11 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.8067, allocations: 192 / 1.1 GB, free: 42.11 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.943e-05/0.8067, allocations: 85.03 kB / 1.1 GB, free: 42.04 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003343/0.8071, allocations: 27.03 kB / 1.1 GB, free: 42.03 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001529/0.8072, allocations: 109.4 kB / 1.1 GB, free: 41.93 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001513/0.8074, allocations: 44.56 kB / 1.1 GB, free: 41.93 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.8074, allocations: 0 / 1.1 GB, free: 41.93 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.287e-05/0.8075, allocations: 23.19 kB / 1.1 GB, free: 41.92 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.8077, allocations: 7.5 kB / 1.1 GB, free: 41.92 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002798/0.808, allocations: 76.2 kB / 1.1 GB, free: 41.86 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.8083, allocations: 0.7012 MB / 1.101 GB, free: 57.15 MB / 0.7292 GB Notification: Performance of SimCode: time 6.31e-07/0.8084, allocations: 0 / 1.101 GB, free: 57.15 MB / 0.7292 GB Notification: Performance of Templates: time 0.003501/0.8119, allocations: 0.784 MB / 1.102 GB, free: 57.09 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)