Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.331/1.331, allocations: 289.8 MB / 297.1 MB, free: 6.613 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.0009324/0.0009324, allocations: 183.5 kB / 366.3 MB, free: 1.926 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.024/1.024, allocations: 205.1 MB / 0.6256 GB, free: 5.785 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.0007846/0.0007846, allocations: 101.1 kB / 0.7396 GB, free: 39.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.235e-06/8.266e-06, allocations: 4 kB / 0.859 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4527/0.4527, allocations: 116.3 MB / 0.9726 GB, free: 68.41 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.5933, allocations: 138.1 MB / 1.107 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.5936, allocations: 67.95 kB / 1.108 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.002923/0.5965, allocations: 0.7989 MB / 1.108 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.5965, allocations: 4 kB / 1.108 GB, free: 9.441 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.0004299/0.597, allocations: 366.2 kB / 1.109 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.597, allocations: 8.031 kB / 1.109 GB, free: 9.031 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.597, allocations: 4 kB / 1.109 GB, free: 9.027 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.5972, allocations: 175.8 kB / 1.109 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.5972, allocations: 0 / 1.109 GB, free: 8.816 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.5972, allocations: 8 kB / 1.109 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.507e-05/0.5973, allocations: 12 kB / 1.109 GB, free: 8.797 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.232e-05/0.5974, allocations: 50.92 kB / 1.109 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.5974, allocations: 0 / 1.109 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.5974, allocations: 8 kB / 1.109 GB, free: 8.734 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.5974, allocations: 4 kB / 1.109 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003882/0.5978, allocations: 273.9 kB / 1.109 GB, free: 8.426 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.213e-05/0.5979, allocations: 38.58 kB / 1.109 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.304e-05/0.5979, allocations: 16.98 kB / 1.109 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.598, allocations: 7.906 kB / 1.109 GB, free: 8.352 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.3e-05/0.598, allocations: 59.39 kB / 1.109 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.598, allocations: 0 / 1.109 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001526/0.5982, allocations: 65.7 kB / 1.109 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.5982, allocations: 56.89 kB / 1.109 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.646e-05/0.5983, allocations: 101.4 kB / 1.11 GB, free: 8.039 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.5983, allocations: 29.64 kB / 1.11 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.314e-05/0.5984, allocations: 88.12 kB / 1.11 GB, free: 7.914 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.5984, allocations: 15.75 kB / 1.11 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.5984, allocations: 0 / 1.11 GB, free: 7.898 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.5985, allocations: 322.8 kB / 1.11 GB, free: 7.574 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.769e-05/0.5985, allocations: 12 kB / 1.11 GB, free: 7.562 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.5986, allocations: 44.3 kB / 1.11 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.5987, allocations: 31.95 kB / 1.11 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5987, allocations: 3.938 kB / 1.11 GB, free: 7.469 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002037/0.599, allocations: 98.34 kB / 1.11 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.599, allocations: 4 kB / 1.11 GB, free: 7.363 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.599, allocations: 0.625 kB / 1.11 GB, free: 7.363 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.599, allocations: 4 kB / 1.11 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5991, allocations: 19.98 kB / 1.11 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.5991, allocations: 5.391 kB / 1.11 GB, free: 7.336 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.543e-05/0.5992, allocations: 16.11 kB / 1.11 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.5992, allocations: 5.062 kB / 1.11 GB, free: 7.316 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 7.071e-05/0.5993, allocations: 115.4 kB / 1.11 GB, free: 7.199 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.151e-05/0.5993, allocations: 5.312 kB / 1.11 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.5995, allocations: 70.05 kB / 1.11 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5995, allocations: 0 / 1.11 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.5995, allocations: 4 kB / 1.11 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5995, allocations: 0 / 1.11 GB, free: 7.113 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.5997, allocations: 307 kB / 1.111 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5997, allocations: 0 / 1.111 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-05/0.5998, allocations: 12.5 kB / 1.111 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.5998, allocations: 0 / 1.111 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.5998, allocations: 3.984 kB / 1.111 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.5999, allocations: 4 kB / 1.111 GB, free: 6.75 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5999, allocations: 4.594 kB / 1.111 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001244/0.6, allocations: 162.2 kB / 1.111 GB, free: 6.574 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.783e-05/0.6, allocations: 88.95 kB / 1.111 GB, free: 6.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.6001, allocations: 0 / 1.111 GB, free: 6.469 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.6002, allocations: 17.58 kB / 1.111 GB, free: 6.453 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.453e-05/0.6002, allocations: 8.672 kB / 1.111 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.6002, allocations: 0 / 1.111 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.357e-05/0.6003, allocations: 91.75 kB / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002227/0.6005, allocations: 20 kB / 1.111 GB, free: 6.336 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.0001415/0.6007, allocations: 103.2 kB / 1.111 GB, free: 6.227 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.6008, allocations: 47.92 kB / 1.111 GB, free: 6.18 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.6008, allocations: 4.25 kB / 1.111 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.937e-05/0.6008, allocations: 16 kB / 1.111 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/0.601, allocations: 11.98 kB / 1.111 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002215/0.6012, allocations: 79.72 kB / 1.111 GB, free: 6.051 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.6015, allocations: 0.6997 MB / 1.112 GB, free: 5.324 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/0.6015, allocations: 1.5 kB / 1.112 GB, free: 5.324 MB / 0.7136 GB Notification: Performance of Templates: time 0.002435/0.6039, allocations: 0.7851 MB / 1.113 GB, free: 4.555 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)