Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") [: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.339/1.339, allocations: 289.8 MB / 297.1 MB, free: 6.707 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.001007/0.001007, allocations: 181.3 kB / 366.3 MB, free: 2.004 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.2 MB / 0.6256 GB, free: 5.832 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.0007737/0.0007737, allocations: 89.47 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/7.745e-06, allocations: 4 kB / 0.859 GB, free: 13.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4572/0.4573, allocations: 116.3 MB / 0.9726 GB, free: 68.17 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.6037, allocations: 138.2 MB / 1.108 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.604, allocations: 75.89 kB / 1.108 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.003114/0.6072, allocations: 0.8653 MB / 1.108 GB, free: 9.359 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.331e-06/0.6072, allocations: 0 / 1.108 GB, free: 9.359 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004263/0.6076, allocations: 374.3 kB / 1.109 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.6077, allocations: 8.031 kB / 1.109 GB, free: 8.941 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.6077, allocations: 7.906 kB / 1.109 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.6078, allocations: 173 kB / 1.109 GB, free: 8.727 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.6078, allocations: 4 kB / 1.109 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.6079, allocations: 4 kB / 1.109 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.839e-05/0.608, allocations: 28 kB / 1.109 GB, free: 8.691 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.649e-05/0.6081, allocations: 61.58 kB / 1.109 GB, free: 8.625 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.6081, allocations: 4 kB / 1.109 GB, free: 8.621 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.6081, allocations: 0 / 1.109 GB, free: 8.621 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.6081, allocations: 4 kB / 1.109 GB, free: 8.617 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004308/0.6085, allocations: 305.2 kB / 1.109 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.896e-05/0.6087, allocations: 62.56 kB / 1.109 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.651e-05/0.6087, allocations: 28.86 kB / 1.109 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.6087, allocations: 0 / 1.109 GB, free: 8.18 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.675e-05/0.6088, allocations: 75.52 kB / 1.11 GB, free: 8.094 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.6088, allocations: 4 kB / 1.11 GB, free: 8.09 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0001818/0.609, allocations: 87.09 kB / 1.11 GB, free: 8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.609, allocations: 51.41 kB / 1.11 GB, free: 7.938 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.352e-05/0.6091, allocations: 101 kB / 1.11 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.6091, allocations: 29.7 kB / 1.11 GB, free: 7.797 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.268e-05/0.6092, allocations: 88.28 kB / 1.11 GB, free: 7.703 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.6092, allocations: 27.64 kB / 1.11 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.6092, allocations: 0 / 1.11 GB, free: 7.676 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.6093, allocations: 318.8 kB / 1.11 GB, free: 7.355 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.42e-05/0.6094, allocations: 31.94 kB / 1.11 GB, free: 7.324 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.664e-05/0.6094, allocations: 42.58 kB / 1.11 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.6096, allocations: 35.03 kB / 1.11 GB, free: 7.242 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.6096, allocations: 4 kB / 1.11 GB, free: 7.238 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002321/0.6098, allocations: 113.5 kB / 1.11 GB, free: 7.121 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.6099, allocations: 17.45 kB / 1.11 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.6099, allocations: 0 / 1.11 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.6099, allocations: 0 / 1.11 GB, free: 7.105 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.61, allocations: 27.98 kB / 1.111 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-06/0.61, allocations: 0 / 1.111 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.026e-05/0.6101, allocations: 15.91 kB / 1.111 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.6101, allocations: 7.984 kB / 1.111 GB, free: 7.055 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.409e-05/0.6102, allocations: 112.9 kB / 1.111 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.6102, allocations: 11.89 kB / 1.111 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.6104, allocations: 95.95 kB / 1.111 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.6104, allocations: 0 / 1.111 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.6104, allocations: 0 / 1.111 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.6104, allocations: 0 / 1.111 GB, free: 6.828 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.6107, allocations: 343 kB / 1.111 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6107, allocations: 0 / 1.111 GB, free: 6.449 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.085e-05/0.6108, allocations: 15.98 kB / 1.111 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.6108, allocations: 0 / 1.111 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.6108, allocations: 256 / 1.111 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.6108, allocations: 7.906 kB / 1.111 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.6108, allocations: 0 / 1.111 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001531/0.611, allocations: 194.7 kB / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.611, allocations: 81.11 kB / 1.111 GB, free: 6.125 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.6111, allocations: 3.906 kB / 1.111 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.6112, allocations: 11.98 kB / 1.111 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.6112, allocations: 7.984 kB / 1.111 GB, free: 6.102 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-06/0.6112, allocations: 8.938 kB / 1.111 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.982e-05/0.6113, allocations: 83.28 kB / 1.111 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002292/0.6115, allocations: 27.92 kB / 1.111 GB, free: 5.984 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001522/0.6117, allocations: 119.1 kB / 1.112 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001352/0.6118, allocations: 63.92 kB / 1.112 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.6118, allocations: 4 kB / 1.112 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.895e-05/0.6119, allocations: 32.56 kB / 1.112 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.6121, allocations: 9.062 kB / 1.112 GB, free: 5.754 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002525/0.6123, allocations: 99.56 kB / 1.112 GB, free: 5.637 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.6126, allocations: 0.7036 MB / 1.112 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.6126, allocations: 0 / 1.112 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of Templates: time 0.002734/0.6153, allocations: 0.9896 MB / 1.113 GB, free: 3.953 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)