Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegerReplicator.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.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_IntegerReplicator",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.648/2.648, allocations: 248.6 MB / 255.9 MB, free: 7.109 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.00257/0.002569, allocations: 185.2 kB / 315.1 MB, free: 4.285 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.321/2.321, allocations: 205.1 MB / 0.5658 GB, free: 380 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.001363/0.001362, allocations: 95.25 kB / 0.67 GB, free: 5.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5228/0.5242, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.7774, allocations: 106.2 MB / 0.8835 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.811/1.588, allocations: 135.7 MB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004353/1.589, allocations: 78.77 kB / 1.016 GB, free: 4.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.04336/1.632, allocations: 5.457 MB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/1.632, allocations: 8 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001556/1.633, allocations: 19.72 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009162/1.634, allocations: 259.5 kB / 1.022 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/1.634, allocations: 4 kB / 1.022 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/1.634, allocations: 7.938 kB / 1.022 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002078/1.634, allocations: 33.73 kB / 1.022 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/1.634, allocations: 90.42 kB / 1.022 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/1.634, allocations: 0 / 1.022 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/1.634, allocations: 3.984 kB / 1.022 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/1.635, allocations: 3.906 kB / 1.022 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/1.636, allocations: 356.7 kB / 1.022 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/1.636, allocations: 75.69 kB / 1.022 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/1.636, allocations: 32.09 kB / 1.022 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/1.636, allocations: 3.938 kB / 1.022 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002388/1.637, allocations: 85 kB / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=8): time 5.321e-06/1.637, allocations: 0 / 1.022 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8): time 0.000622/1.637, allocations: 99.36 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/1.637, allocations: 102.8 kB / 1.023 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006968/1.638, allocations: 231.8 kB / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/1.638, allocations: 33.69 kB / 1.023 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/1.638, allocations: 98.94 kB / 1.023 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.482e-05/1.639, allocations: 19.38 kB / 1.023 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/1.639, allocations: 0 / 1.023 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000242/1.639, allocations: 333.6 kB / 1.023 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/1.639, allocations: 22.98 kB / 1.023 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/1.639, allocations: 69.59 kB / 1.023 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/1.64, allocations: 39.02 kB / 1.023 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/1.64, allocations: 4 kB / 1.023 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005497/1.64, allocations: 109.3 kB / 1.023 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/1.64, allocations: 10.97 kB / 1.023 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/1.64, allocations: 0 / 1.023 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/1.64, allocations: 3.938 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/1.641, allocations: 12 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/1.641, allocations: 0 / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/1.641, allocations: 11.89 kB / 1.023 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/1.641, allocations: 0 / 1.023 GB, free: 13.81 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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.0002133/1.641, allocations: 113 kB / 1.024 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/1.641, allocations: 15.19 kB / 1.024 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000685/1.642, allocations: 119.9 kB / 1.024 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.143e-05/1.642, allocations: 0 / 1.024 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/1.642, allocations: 4 kB / 1.024 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/1.642, allocations: 0 / 1.024 GB, free: 13.58 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005949/1.643, allocations: 206.7 kB / 1.024 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/1.643, allocations: 0 / 1.024 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/1.643, allocations: 11.94 kB / 1.024 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/1.643, allocations: 4.188 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/1.643, allocations: 0 / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/1.643, allocations: 7.922 kB / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/1.643, allocations: 0 / 1.024 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00061/1.644, allocations: 141.6 kB / 1.024 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007969/1.645, allocations: 0.5168 MB / 1.025 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/1.645, allocations: 104.1 kB / 1.025 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/1.645, allocations: 0 / 1.025 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/1.645, allocations: 4 kB / 1.025 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.986e-05/1.645, allocations: 11.67 kB / 1.025 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/1.645, allocations: 0 / 1.025 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0004776/1.646, allocations: 191.1 kB / 1.025 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002279/1.648, allocations: 58.17 kB / 1.025 GB, free: 12.35 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * 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.001608/1.65, allocations: 333.1 kB / 1.025 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005949/1.651, allocations: 76.59 kB / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.651, allocations: 0 / 1.025 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002111/1.651, allocations: 41.92 kB / 1.025 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/1.651, allocations: 40.33 kB / 1.025 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/1.653, allocations: 224.2 kB / 1.026 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008592/1.654, allocations: 0.7499 MB / 1.026 GB, free: 11 MB / 0.6511 GB Notification: Performance of SimCode: time 2.114e-06/1.654, allocations: 0 / 1.026 GB, free: 11 MB / 0.6511 GB