Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.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.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_FixedResistances_Examples_FlowJunction",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.182/2.182, 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.002524/0.002524, allocations: 183.4 kB / 315.1 MB, free: 4.27 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.829/1.829, allocations: 205.1 MB / 0.5658 GB, free: 300 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.003892/0.003892, allocations: 79.34 kB / 0.67 GB, free: 5.508 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5279/0.5318, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.7535, allocations: 106.2 MB / 0.8835 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.699/6.452, allocations: 2.201 GB / 3.084 GB, free: 164 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004706/6.453, allocations: 83.08 kB / 3.084 GB, free: 164 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 4.697/11.15, allocations: 0.8912 GB / 3.975 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/11.15, allocations: 14.25 kB / 3.975 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/11.15, allocations: 422.6 kB / 3.976 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/11.16, allocations: 1.098 MB / 3.977 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.512e-05/11.16, allocations: 22.78 kB / 3.977 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002377/11.16, allocations: 56.31 kB / 3.977 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002429/11.16, allocations: 0.7388 MB / 3.977 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/11.16, allocations: 0.7325 MB / 3.978 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/11.16, allocations: 0 / 3.978 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/11.16, allocations: 3.562 kB / 3.978 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/11.16, allocations: 30.78 kB / 3.978 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008801/11.17, allocations: 3.814 MB / 3.982 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/11.18, allocations: 0.5864 MB / 3.983 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000831/11.18, allocations: 362.1 kB / 3.983 GB, free: 119.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001172/11.18, allocations: 0.6383 MB / 3.983 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/11.18, allocations: 41.16 kB / 3.984 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.236e-06/11.18, allocations: 2.781 kB / 3.984 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.004701/11.18, allocations: 0.91 MB / 3.984 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/11.18, allocations: 59.41 kB / 3.984 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/11.18, allocations: 0.6038 MB / 3.985 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001765/11.18, allocations: 32.73 kB / 3.985 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/11.18, allocations: 335.6 kB / 3.985 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002762/11.18, allocations: 206.4 kB / 3.986 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/11.18, allocations: 0 / 3.986 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.818e-05/11.18, allocations: 328.4 kB / 3.986 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006708/11.19, allocations: 238.5 kB / 3.986 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007693/11.19, allocations: 384.5 kB / 3.987 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/11.19, allocations: 374.5 kB / 3.987 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/11.19, allocations: 4.094 kB / 3.987 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002566/11.19, allocations: 0.7692 MB / 3.988 GB, free: 117.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/11.19, allocations: 451.8 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/11.19, allocations: 3.688 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.991e-05/11.19, allocations: 7.094 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/11.19, allocations: 140.1 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/11.19, allocations: 9.922 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/11.19, allocations: 108.9 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/11.19, allocations: 25.72 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/11.19, allocations: 6.438 kB / 3.988 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002079/11.2, allocations: 0.6432 MB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/11.2, allocations: 0 / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/11.2, allocations: 3.688 kB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/11.2, allocations: 139.9 kB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.036e-06/11.2, allocations: 7.594 kB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/11.2, allocations: 115.8 kB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/11.2, allocations: 22.06 kB / 3.989 GB, free: 117.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0002794/11.2, allocations: 115.1 kB / 3.989 GB, free: 117.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/11.2, allocations: 97.78 kB / 3.989 GB, free: 117 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/11.2, allocations: 0.8065 MB / 3.99 GB, free: 117 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/11.2, allocations: 11.19 kB / 3.99 GB, free: 117 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/11.2, allocations: 0 / 3.99 GB, free: 117 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002017/11.2, allocations: 0.9662 MB / 3.991 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006134/11.21, allocations: 2.006 MB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/11.21, allocations: 0 / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/11.21, allocations: 157 kB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-05/11.21, allocations: 6.5 kB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.398e-05/11.21, allocations: 11.06 kB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.384e-05/11.21, allocations: 22.38 kB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/11.21, allocations: 5.719 kB / 3.993 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003181/11.22, allocations: 1.425 MB / 3.995 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004702/11.22, allocations: 2.311 MB / 3.997 GB, free: 114.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009725/11.22, allocations: 260 kB / 3.997 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002366/11.22, allocations: 7.625 kB / 3.997 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/11.22, allocations: 126.9 kB / 3.997 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/11.22, allocations: 45.59 kB / 3.997 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/11.22, allocations: 26.12 kB / 3.997 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001002/11.23, allocations: 480.6 kB / 3.998 GB, free: 114.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006913/11.23, allocations: 1.294 MB / 3.999 GB, free: 114.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.U,spl.vol.dynBal.m,spl.vol.dynBal.mXi[1],senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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 Backend phase and start with SimCode phase: time 0.004742/11.24, allocations: 2.585 MB / 4.002 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002542/11.24, allocations: 0.9289 MB / 4.003 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/11.24, allocations: 3.938 kB / 4.003 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008586/11.24, allocations: 326.8 kB / 4.003 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006295/11.25, allocations: 0.5942 MB / 4.004 GB, free: 113.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/11.25, allocations: 1.754 MB / 4.005 GB, free: 113 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/11.25, allocations: 1.258 MB / 4.006 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of SimCode: time 1.533e-06/11.25, allocations: 0 / 4.006 GB, free: 112.3 MB / 0.8855 GB