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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.116/2.116, allocations: 284.9 MB / 292.2 MB, free: 10.72 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.001526/0.001526, allocations: 189.2 kB / 360.4 MB, free: 7.531 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.623/1.623, allocations: 205.1 MB / 0.6188 GB, free: 12.46 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.001246/0.001245, allocations: 83.78 kB / 0.7318 GB, free: 45 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.965e-06, allocations: 0 / 0.8503 GB, free: 3.859 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5627/0.5627, allocations: 115.2 MB / 0.9628 GB, free: 78.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.222/0.7848, allocations: 137.1 MB / 1.097 GB, free: 3.672 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.7851, allocations: 69.36 kB / 1.097 GB, free: 3.605 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.004676/0.7898, allocations: 0.8522 MB / 1.098 GB, free: 2.785 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.672e-06/0.7898, allocations: 0 / 1.098 GB, free: 2.785 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005886/0.7904, allocations: 374.8 kB / 1.098 GB, free: 2.379 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.7905, allocations: 8.531 kB / 1.098 GB, free: 2.371 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/0.7905, allocations: 12.39 kB / 1.098 GB, free: 2.359 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.7907, allocations: 175.4 kB / 1.098 GB, free: 2.152 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.7907, allocations: 0 / 1.098 GB, free: 2.152 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.7907, allocations: 5.453 kB / 1.098 GB, free: 2.148 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/0.7909, allocations: 28 kB / 1.098 GB, free: 2.121 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.791, allocations: 72.97 kB / 1.098 GB, free: 2.051 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.7911, allocations: 0 / 1.098 GB, free: 2.051 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.7911, allocations: 0 / 1.098 GB, free: 2.051 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.7911, allocations: 0.9844 kB / 1.098 GB, free: 2.051 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.7917, allocations: 296.5 kB / 1.099 GB, free: 1.727 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.7918, allocations: 63.11 kB / 1.099 GB, free: 1.656 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.946e-05/0.7919, allocations: 36.84 kB / 1.099 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.792, allocations: 0 / 1.099 GB, free: 1.617 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001373/0.7921, allocations: 75.52 kB / 1.099 GB, free: 1.531 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.7921, allocations: 0 / 1.099 GB, free: 1.531 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0002545/0.7924, allocations: 85.59 kB / 1.099 GB, free: 1.441 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.7924, allocations: 55.41 kB / 1.099 GB, free: 1.375 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.562e-05/0.7925, allocations: 101 kB / 1.099 GB, free: 1.27 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.7926, allocations: 29.7 kB / 1.099 GB, free: 1.234 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/0.7926, allocations: 88.28 kB / 1.099 GB, free: 1.141 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.7927, allocations: 31.58 kB / 1.099 GB, free: 1.109 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.877e-06/0.7927, allocations: 0 / 1.099 GB, free: 1.109 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.7928, allocations: 318.8 kB / 1.099 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.372e-05/0.7929, allocations: 21.97 kB / 1.099 GB, free: 0.7695 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.556e-05/0.793, allocations: 48.64 kB / 1.099 GB, free: 0.7148 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.7932, allocations: 39.97 kB / 1.099 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7933, allocations: 0 / 1.099 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003735/0.7936, allocations: 117.5 kB / 1.1 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.7937, allocations: 4 kB / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7937, allocations: 0 / 1.1 GB, free: 0.5508 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.7937, allocations: 5.547 kB / 1.1 GB, free: 0.5469 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.794, allocations: 32.03 kB / 1.1 GB, free: 0.5156 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.794, allocations: 0 / 1.1 GB, free: 0.5156 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.7941, allocations: 11.91 kB / 1.1 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.7942, allocations: 6 kB / 1.1 GB, free: 0.5 MB / 0.698 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 9.981e-05/0.7943, allocations: 126 kB / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.7943, allocations: 7.906 kB / 1.1 GB, free: 372 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002853/0.7946, allocations: 93.98 kB / 1.1 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.7946, allocations: 2.156 kB / 1.1 GB, free: 272 kB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.7946, allocations: 4 kB / 1.1 GB, free: 268 kB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.7946, allocations: 0 / 1.1 GB, free: 268 kB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/0.7951, allocations: 331.7 kB / 1.1 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.7951, allocations: 3.984 kB / 1.1 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.7953, allocations: 16 kB / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.7953, allocations: 0 / 1.1 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.7953, allocations: 3.984 kB / 1.1 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.7953, allocations: 7.906 kB / 1.1 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7953, allocations: 3.672 kB / 1.1 GB, free: 15.86 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00025/0.7956, allocations: 192.1 kB / 1.1 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.7956, allocations: 81.11 kB / 1.1 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.7957, allocations: 6.344 kB / 1.1 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.7959, allocations: 15.98 kB / 1.1 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.7959, allocations: 3.984 kB / 1.1 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.796, allocations: 4.656 kB / 1.1 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.706e-05/0.796, allocations: 83.28 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003435/0.7964, allocations: 27.94 kB / 1.101 GB, free: 15.43 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.0002013/0.7966, allocations: 115.1 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.7968, allocations: 67.94 kB / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7969, allocations: 0 / 1.101 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.797, allocations: 31.98 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.7972, allocations: 8 kB / 1.101 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003918/0.7976, allocations: 105.7 kB / 1.101 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.798, allocations: 0.6997 MB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of SimCode: time 6.91e-07/0.798, allocations: 4 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of Templates: time 0.004195/0.8022, allocations: 0.9864 MB / 1.103 GB, free: 13.41 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)