Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json 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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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 7.0.1/package.mo): time 2.341/2.341, allocations: 253.1 MB / 260.4 MB, free: 7.547 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001732/0.001732, allocations: 181.2 kB / 319.6 MB, free: 3.305 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.176/2.176, allocations: 205.4 MB / 0.5704 GB, free: 15.05 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001306/0.001305, allocations: 100.8 kB / 0.6746 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.039e-05/1.062e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2034, allocations: 106.2 MB / 0.888 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7619/0.9653, allocations: 131.8 MB / 1.017 GB, free: 6.492 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003827/0.9658, allocations: 77.69 kB / 1.017 GB, free: 6.449 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.005235/0.9711, allocations: 0.6519 MB / 1.018 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.116e-05/0.9711, allocations: 4 kB / 1.018 GB, free: 5.891 MB / 0.6355 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.0008721/0.972, allocations: 369.2 kB / 1.018 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.669e-05/0.9721, allocations: 8.031 kB / 1.018 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.587e-05/0.9722, allocations: 7.906 kB / 1.018 GB, free: 5.473 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.9724, allocations: 174.9 kB / 1.018 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.9725, allocations: 3.062 kB / 1.018 GB, free: 5.262 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.9725, allocations: 4 kB / 1.018 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001896/0.9728, allocations: 25.12 kB / 1.018 GB, free: 5.242 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.973, allocations: 67.86 kB / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.973, allocations: 0 / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.973, allocations: 4 kB / 1.018 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.9731, allocations: 0 / 1.018 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009406/0.974, allocations: 290.5 kB / 1.018 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.9743, allocations: 63.38 kB / 1.018 GB, free: 4.82 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.9744, allocations: 30.11 kB / 1.019 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.9745, allocations: 0 / 1.019 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002435/0.9748, allocations: 83.92 kB / 1.019 GB, free: 4.719 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.506e-06/0.9748, allocations: 0 / 1.019 GB, free: 4.719 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0004191/0.9752, allocations: 80.28 kB / 1.019 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.9753, allocations: 63.38 kB / 1.019 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.9754, allocations: 103.3 kB / 1.019 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.9755, allocations: 33.64 kB / 1.019 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.081e-05/0.9756, allocations: 87.61 kB / 1.019 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.9757, allocations: 18.47 kB / 1.019 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.9757, allocations: 0 / 1.019 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001974/0.9759, allocations: 318.5 kB / 1.019 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.976, allocations: 25.75 kB / 1.019 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.9762, allocations: 53.39 kB / 1.019 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.9763, allocations: 32.73 kB / 1.019 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.9763, allocations: 0 / 1.019 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000398/0.9767, allocations: 106.2 kB / 1.019 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.9768, allocations: 4 kB / 1.019 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.9768, allocations: 4.094 kB / 1.019 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.014e-05/0.9769, allocations: 4 kB / 1.019 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.9772, allocations: 23.92 kB / 1.02 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-05/0.9772, allocations: 7.906 kB / 1.02 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.9774, allocations: 11.98 kB / 1.02 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.9775, allocations: 11.62 kB / 1.02 GB, free: 3.762 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 0.0001594/0.9776, allocations: 105 kB / 1.02 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.9777, allocations: 3.906 kB / 1.02 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.9781, allocations: 98.36 kB / 1.02 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.9781, allocations: 3.906 kB / 1.02 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.9782, allocations: 3.938 kB / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.9782, allocations: 3.984 kB / 1.02 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007105/0.9789, allocations: 332 kB / 1.02 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.9789, allocations: 0.875 kB / 1.02 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.9792, allocations: 18.67 kB / 1.02 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.9792, allocations: 4 kB / 1.02 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.9792, allocations: 0 / 1.02 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.9792, allocations: 0 / 1.02 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.924e-06/0.9792, allocations: 3.984 kB / 1.02 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003797/0.9796, allocations: 186.7 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.48e-05/0.9797, allocations: 89.05 kB / 1.02 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.9798, allocations: 7.875 kB / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.9801, allocations: 11.98 kB / 1.02 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.226e-05/0.9802, allocations: 10.8 kB / 1.02 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.9802, allocations: 4 kB / 1.02 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.93e-05/0.9803, allocations: 91.03 kB / 1.02 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000549/0.9809, allocations: 15.98 kB / 1.02 GB, free: 2.766 MB / 0.6355 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.0002821/0.9812, allocations: 97.44 kB / 1.021 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003298/0.9815, allocations: 65.56 kB / 1.021 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.9815, allocations: 0 / 1.021 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.9817, allocations: 34.5 kB / 1.021 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.9821, allocations: 16.08 kB / 1.021 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006202/0.9828, allocations: 105.6 kB / 1.021 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.9833, allocations: 0.7036 MB / 1.021 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of SimCode: time 1.874e-06/0.9833, allocations: 0 / 1.021 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of Templates: time 0.005687/0.989, allocations: 0.8466 MB / 1.022 GB, free: 0.9062 MB / 0.6355 GB