Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.019/2.019, allocations: 248.6 MB / 255.9 MB, free: 7.129 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.001703/0.001703, allocations: 193.2 kB / 315.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.837/1.837, allocations: 205.1 MB / 0.5658 GB, free: 420 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.001242/0.001242, allocations: 94.09 kB / 0.67 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4837/0.485, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.7024, allocations: 106.2 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7111/1.414, allocations: 131.7 MB / 1.012 GB, free: 8.621 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/1.414, allocations: 69.77 kB / 1.012 GB, free: 8.582 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.004302/1.418, allocations: 0.9268 MB / 1.013 GB, free: 7.707 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/1.418, allocations: 8 kB / 1.013 GB, free: 7.699 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/1.418, allocations: 9.094 kB / 1.013 GB, free: 7.691 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/1.419, allocations: 167 kB / 1.013 GB, free: 7.488 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/1.419, allocations: 3.938 kB / 1.013 GB, free: 7.484 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/1.419, allocations: 4 kB / 1.013 GB, free: 7.48 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001126/1.419, allocations: 14.62 kB / 1.013 GB, free: 7.473 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/1.419, allocations: 57.83 kB / 1.013 GB, free: 7.414 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/1.419, allocations: 4 kB / 1.013 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/1.419, allocations: 4 kB / 1.013 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/1.419, allocations: 0 / 1.013 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004397/1.419, allocations: 247.7 kB / 1.014 GB, free: 7.141 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/1.42, allocations: 42.19 kB / 1.014 GB, free: 7.098 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.724e-05/1.42, allocations: 21.3 kB / 1.014 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/1.42, allocations: 0 / 1.014 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/1.42, allocations: 62.27 kB / 1.014 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.803e-06/1.42, allocations: 0 / 1.014 GB, free: 7.012 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002255/1.42, allocations: 63.55 kB / 1.014 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/1.42, allocations: 59.33 kB / 1.014 GB, free: 6.883 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.463e-05/1.42, allocations: 103.4 kB / 1.014 GB, free: 6.781 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/1.42, allocations: 25.7 kB / 1.014 GB, free: 6.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/1.42, allocations: 87.64 kB / 1.014 GB, free: 6.664 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.142e-05/1.42, allocations: 15.8 kB / 1.014 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-06/1.42, allocations: 0 / 1.014 GB, free: 6.648 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000131/1.421, allocations: 314.1 kB / 1.014 GB, free: 6.336 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.548e-05/1.421, allocations: 11.88 kB / 1.014 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.372e-05/1.421, allocations: 43.28 kB / 1.014 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.957e-05/1.421, allocations: 19.94 kB / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.421, allocations: 0 / 1.014 GB, free: 6.262 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001949/1.421, allocations: 79.47 kB / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/1.421, allocations: 4 kB / 1.014 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.421, allocations: 4 kB / 1.014 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/1.421, allocations: 4.156 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/1.421, allocations: 15.98 kB / 1.014 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/1.421, allocations: 4 kB / 1.014 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001343/1.421, allocations: 19.83 kB / 1.014 GB, free: 6.137 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/1.421, allocations: 0 / 1.014 GB, free: 6.137 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.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.896e-05/1.422, allocations: 115.7 kB / 1.015 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/1.422, allocations: 7.906 kB / 1.015 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/1.422, allocations: 64.05 kB / 1.015 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/1.422, allocations: 4 kB / 1.015 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.422, allocations: 0 / 1.015 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/1.422, allocations: 0 / 1.015 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/1.422, allocations: 300.1 kB / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.422, allocations: 192 / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/1.422, allocations: 15.98 kB / 1.015 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/1.422, allocations: 3.938 kB / 1.015 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/1.422, allocations: 7.562 kB / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/1.422, allocations: 0 / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.423, allocations: 0 / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002809/1.423, allocations: 163.7 kB / 1.015 GB, free: 5.438 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000323/1.423, allocations: 0.5294 MB / 1.016 GB, free: 4.898 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.575e-05/1.423, allocations: 81.02 kB / 1.016 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/1.423, allocations: 0 / 1.016 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/1.423, allocations: 19.98 kB / 1.016 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.243e-05/1.424, allocations: 7.422 kB / 1.016 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/1.424, allocations: 4 kB / 1.016 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.838e-05/1.424, allocations: 83.09 kB / 1.016 GB, free: 4.691 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001136/1.425, allocations: 11.91 kB / 1.016 GB, free: 4.68 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001753/1.425, allocations: 95.25 kB / 1.016 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000192/1.425, allocations: 42.55 kB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.425, allocations: 4.125 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.089e-05/1.425, allocations: 15.88 kB / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/1.426, allocations: 6.062 kB / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/1.426, allocations: 90.36 kB / 1.016 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/1.426, allocations: 0.6958 MB / 1.017 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of SimCode: time 8.31e-07/1.426, allocations: 0 / 1.017 GB, free: 3.699 MB / 0.6355 GB