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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_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.0.1-maint.8.0.x/package.mo): time 1.312/1.312, allocations: 285.5 MB / 292.8 MB, free: 10.35 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.0009673/0.0009673, allocations: 177.3 kB / 361.1 MB, free: 7.023 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.042/1.042, allocations: 205.1 MB / 0.6195 GB, free: 10.21 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.0007943/0.0007944, allocations: 82.94 kB / 0.7325 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.091e-06/6.111e-06, allocations: 0 / 0.8511 GB, free: 2.895 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4365/0.4366, allocations: 115.3 MB / 0.9637 GB, free: 78.2 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.5746, allocations: 137.2 MB / 1.098 GB, free: 2.754 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001574/0.5748, allocations: 75.03 kB / 1.098 GB, free: 2.684 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.003179/0.578, allocations: 0.7966 MB / 1.098 GB, free: 1.918 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.647e-06/0.5781, allocations: 4 kB / 1.098 GB, free: 1.914 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004549/0.5785, allocations: 370.6 kB / 1.099 GB, free: 1.512 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.5786, allocations: 8.031 kB / 1.099 GB, free: 1.504 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.731e-05/0.5786, allocations: 9.953 kB / 1.099 GB, free: 1.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.5787, allocations: 168.2 kB / 1.099 GB, free: 1.297 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.5788, allocations: 0 / 1.099 GB, free: 1.297 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.5788, allocations: 4 kB / 1.099 GB, free: 1.293 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.658e-05/0.5789, allocations: 19.98 kB / 1.099 GB, free: 1.273 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/0.579, allocations: 49.62 kB / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.579, allocations: 0.5156 kB / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.579, allocations: 0 / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.579, allocations: 0 / 1.099 GB, free: 1.219 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004321/0.5795, allocations: 276.9 kB / 1.099 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 8.694e-05/0.5796, allocations: 40.55 kB / 1.099 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.977e-05/0.5796, allocations: 16.98 kB / 1.099 GB, free: 0.8477 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.5797, allocations: 4.406 kB / 1.099 GB, free: 0.8438 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.053e-05/0.5798, allocations: 74.7 kB / 1.099 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.5798, allocations: 0 / 1.099 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0001797/0.5799, allocations: 58.2 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.58, allocations: 51.41 kB / 1.1 GB, free: 0.6367 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.63e-05/0.5801, allocations: 103.4 kB / 1.1 GB, free: 0.5312 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.5801, allocations: 26.3 kB / 1.1 GB, free: 0.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.544e-05/0.5801, allocations: 84.67 kB / 1.1 GB, free: 424 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.5802, allocations: 24.39 kB / 1.1 GB, free: 400 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.5802, allocations: 0 / 1.1 GB, free: 400 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.5803, allocations: 319.4 kB / 1.1 GB, free: 72 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.142e-05/0.5803, allocations: 8.5 kB / 1.1 GB, free: 64 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.049e-05/0.5804, allocations: 55.09 kB / 1.1 GB, free: 16 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.5805, allocations: 29.94 kB / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5806, allocations: 0.6562 kB / 1.1 GB, free: 15.97 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000218/0.5808, allocations: 94.44 kB / 1.1 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.5808, allocations: 4 kB / 1.1 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.5808, allocations: 0 / 1.1 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.5808, allocations: 4 kB / 1.1 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.581, allocations: 27.92 kB / 1.1 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.581, allocations: 3.906 kB / 1.1 GB, free: 15.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.934e-05/0.5811, allocations: 16.11 kB / 1.1 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.5811, allocations: 4 kB / 1.1 GB, free: 15.81 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.086e-05/0.5812, allocations: 108.1 kB / 1.1 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.5812, allocations: 3.906 kB / 1.1 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.5813, allocations: 78.83 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.5814, allocations: 2.531 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.5814, allocations: 4 kB / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.5814, allocations: 0 / 1.101 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.5816, allocations: 299.4 kB / 1.101 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5817, allocations: 0 / 1.101 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.454e-05/0.5818, allocations: 19.92 kB / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.5818, allocations: 0 / 1.101 GB, free: 15.27 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.5818, allocations: 4 kB / 1.101 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.5818, allocations: 4 kB / 1.101 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.5818, allocations: 4.609 kB / 1.101 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001471/0.582, allocations: 159.5 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.582, allocations: 88.95 kB / 1.101 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.582, allocations: 0 / 1.101 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.5821, allocations: 15.98 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.5822, allocations: 11.98 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.5822, allocations: 1.75 kB / 1.101 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.545e-05/0.5823, allocations: 83.19 kB / 1.101 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002738/0.5825, allocations: 23.94 kB / 1.101 GB, free: 14.84 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.0001428/0.5827, allocations: 115.7 kB / 1.101 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001077/0.5828, allocations: 36 kB / 1.101 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.5828, allocations: 4.25 kB / 1.101 GB, free: 14.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.629e-05/0.5829, allocations: 23.94 kB / 1.101 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.5831, allocations: 8.641 kB / 1.101 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.5833, allocations: 72.59 kB / 1.101 GB, free: 14.55 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.5836, allocations: 0.7036 MB / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.5836, allocations: 0 / 1.102 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of Templates: time 0.002582/0.5862, allocations: 0.7993 MB / 1.103 GB, free: 13.07 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)