Running: ./testmodel.py --libraries=/home/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 (/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.FirstOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",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.179/2.179, allocations: 248.6 MB / 255.9 MB, free: 7.18 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.001634/0.001634, allocations: 181.2 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.131/2.131, allocations: 205.1 MB / 0.5658 GB, free: 316 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.001905/0.001905, allocations: 87.34 kB / 0.67 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5134/0.5154, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.7534, allocations: 106.2 MB / 0.8835 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7533/1.507, allocations: 131.9 MB / 1.012 GB, free: 8.348 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/1.507, allocations: 67.47 kB / 1.012 GB, free: 8.312 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.004733/1.512, allocations: 1.017 MB / 1.013 GB, free: 7.355 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/1.512, allocations: 8 kB / 1.013 GB, free: 7.348 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/1.512, allocations: 7.906 kB / 1.013 GB, free: 7.34 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/1.512, allocations: 175.7 kB / 1.013 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/1.512, allocations: 4 kB / 1.013 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/1.512, allocations: 4 kB / 1.014 GB, free: 7.121 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001518/1.512, allocations: 25.69 kB / 1.014 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/1.513, allocations: 59.92 kB / 1.014 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/1.513, allocations: 7.984 kB / 1.014 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/1.513, allocations: 6.562 kB / 1.014 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/1.513, allocations: 0 / 1.014 GB, free: 7.043 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/1.514, allocations: 298.6 kB / 1.014 GB, free: 6.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/1.514, allocations: 58.77 kB / 1.014 GB, free: 6.68 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/1.514, allocations: 30.86 kB / 1.014 GB, free: 6.656 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/1.514, allocations: 4 kB / 1.014 GB, free: 6.652 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/1.515, allocations: 80.48 kB / 1.014 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 4.689e-06/1.515, allocations: 0 / 1.014 GB, free: 6.574 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0004105/1.515, allocations: 79.44 kB / 1.014 GB, free: 6.504 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/1.515, allocations: 55.39 kB / 1.014 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/1.515, allocations: 109.3 kB / 1.014 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/1.515, allocations: 25.7 kB / 1.014 GB, free: 6.301 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.115e-05/1.515, allocations: 96.3 kB / 1.014 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/1.515, allocations: 26.45 kB / 1.014 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/1.515, allocations: 0 / 1.014 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001773/1.516, allocations: 317.6 kB / 1.015 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/1.516, allocations: 22.12 kB / 1.015 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/1.516, allocations: 49.69 kB / 1.015 GB, free: 5.797 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/1.516, allocations: 34.41 kB / 1.015 GB, free: 5.773 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/1.516, allocations: 0 / 1.015 GB, free: 5.773 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004231/1.517, allocations: 103.8 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/1.517, allocations: 4 kB / 1.015 GB, free: 5.676 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.517, allocations: 2.062 kB / 1.015 GB, free: 5.676 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/1.517, allocations: 4 kB / 1.015 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003542/1.517, allocations: 30.95 kB / 1.015 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/1.517, allocations: 7.906 kB / 1.015 GB, free: 5.637 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/1.517, allocations: 11.98 kB / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.419e-05/1.517, allocations: 4 kB / 1.015 GB, free: 5.621 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.0001827/1.518, allocations: 109.1 kB / 1.015 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/1.518, allocations: 3.906 kB / 1.015 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004083/1.518, allocations: 102.8 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/1.518, allocations: 3.906 kB / 1.015 GB, free: 5.41 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/1.518, allocations: 3.984 kB / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/1.518, allocations: 0 / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007445/1.519, allocations: 327.2 kB / 1.016 GB, free: 5.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/1.519, allocations: 7.938 kB / 1.016 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/1.519, allocations: 15.98 kB / 1.016 GB, free: 5.047 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/1.519, allocations: 3.938 kB / 1.016 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/1.519, allocations: 4 kB / 1.016 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/1.519, allocations: 0.5625 kB / 1.016 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.519, allocations: 0 / 1.016 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003852/1.52, allocations: 181.8 kB / 1.016 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005873/1.52, allocations: 0.5575 MB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.203e-05/1.52, allocations: 88.95 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/1.52, allocations: 256 / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/1.521, allocations: 15.98 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.784e-05/1.521, allocations: 7.984 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/1.521, allocations: 7.188 kB / 1.016 GB, free: 4.176 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.874e-05/1.521, allocations: 87.64 kB / 1.016 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002031/1.523, allocations: 23.66 kB / 1.016 GB, free: 4.07 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.0002827/1.523, allocations: 99.23 kB / 1.017 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003558/1.524, allocations: 68.5 kB / 1.017 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.524, allocations: 0 / 1.017 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/1.524, allocations: 42.61 kB / 1.017 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/1.524, allocations: 8.188 kB / 1.017 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000615/1.525, allocations: 105.7 kB / 1.017 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005451/1.526, allocations: 0.6997 MB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of SimCode: time 1.593e-06/1.526, allocations: 0 / 1.017 GB, free: 3.039 MB / 0.6355 GB