Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.353/2.353, allocations: 248.6 MB / 255.9 MB, free: 7.125 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001608/0.001607, allocations: 186.8 kB / 315.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.1 MB / 0.5658 GB, free: 388 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001795/0.001795, allocations: 94.77 kB / 0.67 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5914/0.5933, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.8391, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6768/1.516, allocations: 131.7 MB / 1.012 GB, free: 8.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/1.516, allocations: 68.58 kB / 1.012 GB, free: 8.473 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.004483/1.521, allocations: 0.9518 MB / 1.013 GB, free: 7.574 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/1.521, allocations: 12 kB / 1.013 GB, free: 7.562 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.059e-05/1.521, allocations: 3.906 kB / 1.013 GB, free: 7.559 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/1.521, allocations: 171 kB / 1.013 GB, free: 7.352 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/1.521, allocations: 3.938 kB / 1.013 GB, free: 7.348 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/1.521, allocations: 8 kB / 1.013 GB, free: 7.34 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001189/1.521, allocations: 15.25 kB / 1.013 GB, free: 7.332 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/1.521, allocations: 52.91 kB / 1.013 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/1.521, allocations: 0 / 1.013 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/1.522, allocations: 0 / 1.013 GB, free: 7.281 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/1.522, allocations: 4 kB / 1.013 GB, free: 7.277 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006095/1.522, allocations: 275.4 kB / 1.014 GB, free: 6.984 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/1.522, allocations: 41.08 kB / 1.014 GB, free: 6.941 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.94e-05/1.522, allocations: 18.92 kB / 1.014 GB, free: 6.926 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/1.522, allocations: 0 / 1.014 GB, free: 6.926 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/1.523, allocations: 62.41 kB / 1.014 GB, free: 6.859 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/1.523, allocations: 0 / 1.014 GB, free: 6.859 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002342/1.523, allocations: 60.09 kB / 1.014 GB, free: 6.801 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/1.523, allocations: 55.39 kB / 1.014 GB, free: 6.734 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/1.523, allocations: 99.38 kB / 1.014 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/1.523, allocations: 25.7 kB / 1.014 GB, free: 6.605 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/1.523, allocations: 83.39 kB / 1.014 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/1.523, allocations: 30.7 kB / 1.014 GB, free: 6.496 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/1.523, allocations: 0 / 1.014 GB, free: 6.496 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001352/1.523, allocations: 317.9 kB / 1.014 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.476e-05/1.523, allocations: 7.688 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.705e-05/1.523, allocations: 47.53 kB / 1.014 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.958e-05/1.523, allocations: 15.59 kB / 1.014 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.523, allocations: 0 / 1.014 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000255/1.524, allocations: 87.95 kB / 1.015 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/1.524, allocations: 4 kB / 1.015 GB, free: 6.023 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/1.524, allocations: 4 kB / 1.015 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/1.524, allocations: 48 / 1.015 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/1.524, allocations: 32.03 kB / 1.015 GB, free: 5.992 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/1.524, allocations: 4 kB / 1.015 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/1.524, allocations: 11.94 kB / 1.015 GB, free: 5.977 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/1.524, allocations: 192 / 1.015 GB, free: 5.977 MB / 0.6355 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 0.0001122/1.524, allocations: 121.2 kB / 1.015 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/1.524, allocations: 7.938 kB / 1.015 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/1.525, allocations: 71.56 kB / 1.015 GB, free: 5.777 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/1.525, allocations: 3.906 kB / 1.015 GB, free: 5.773 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/1.525, allocations: 3.984 kB / 1.015 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/1.525, allocations: 0 / 1.015 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/1.525, allocations: 307.4 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/1.525, allocations: 0 / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/1.525, allocations: 19.98 kB / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/1.525, allocations: 0 / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/1.525, allocations: 0 / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/1.525, allocations: 4 kB / 1.015 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.525, allocations: 0.7812 kB / 1.015 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002088/1.526, allocations: 164.1 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004013/1.526, allocations: 0.5335 MB / 1.016 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.416e-05/1.526, allocations: 84.89 kB / 1.016 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/1.526, allocations: 4 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/1.526, allocations: 11.98 kB / 1.016 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/1.526, allocations: 3.984 kB / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/1.526, allocations: 8 kB / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.009e-05/1.526, allocations: 83.16 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001368/1.528, allocations: 8 kB / 1.016 GB, free: 4.504 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: 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.0001806/1.528, allocations: 99.23 kB / 1.016 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001988/1.528, allocations: 45.86 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.528, allocations: 0 / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.577e-05/1.528, allocations: 15.81 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/1.529, allocations: 12.16 kB / 1.016 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000381/1.529, allocations: 90.36 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/1.529, allocations: 0.7033 MB / 1.017 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of SimCode: time 1.072e-06/1.529, allocations: 0 / 1.017 GB, free: 3.508 MB / 0.6355 GB