Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.539/2.539, allocations: 284.8 MB / 292.1 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001695/0.001694, allocations: 177.3 kB / 360.3 MB, free: 7.559 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.793/1.793, allocations: 205.1 MB / 0.6187 GB, free: 13.23 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001268, allocations: 81.61 kB / 0.7317 GB, free: 45.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3085/0.3099, allocations: 121.4 MB / 0.8502 GB, free: 3.941 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.9633, allocations: 115.2 MB / 0.9627 GB, free: 78.61 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.293/6.256, allocations: 2.081 GB / 3.044 GB, free: 270.4 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/6.256, allocations: 88.14 kB / 3.044 GB, free: 270.4 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 4.216/10.47, allocations: 0.9184 GB / 3.962 GB, free: 126.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/10.47, allocations: 12 kB / 3.963 GB, free: 126.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00478/10.48, allocations: 421.9 kB / 3.963 GB, free: 126.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/10.48, allocations: 1.09 MB / 3.964 GB, free: 125.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.51e-05/10.48, allocations: 24 kB / 3.964 GB, free: 125.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/10.48, allocations: 55.94 kB / 3.964 GB, free: 125.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00233/10.48, allocations: 0.7381 MB / 3.965 GB, free: 124.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/10.49, allocations: 0.7298 MB / 3.965 GB, free: 123.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/10.49, allocations: 3.984 kB / 3.965 GB, free: 123.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/10.49, allocations: 0 / 3.965 GB, free: 123.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.065e-05/10.49, allocations: 30 kB / 3.966 GB, free: 123.6 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008633/10.5, allocations: 3.794 MB / 3.969 GB, free: 119.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/10.5, allocations: 0.5815 MB / 3.97 GB, free: 119 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008585/10.5, allocations: 370.8 kB / 3.97 GB, free: 118.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001092/10.5, allocations: 0.6439 MB / 3.971 GB, free: 117.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/10.5, allocations: 39.06 kB / 3.971 GB, free: 117.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=60): time 3.286e-06/10.5, allocations: 0 / 3.971 GB, free: 117.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=60): time 0.005973/10.51, allocations: 0.9131 MB / 3.972 GB, free: 116.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/10.51, allocations: 59.91 kB / 3.972 GB, free: 116.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002554/10.51, allocations: 0.5946 MB / 3.972 GB, free: 116.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002885/10.51, allocations: 29.7 kB / 3.972 GB, free: 116.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004193/10.51, allocations: 336 kB / 3.973 GB, free: 115.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/10.51, allocations: 204.9 kB / 3.973 GB, free: 115.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-05/10.51, allocations: 0 / 3.973 GB, free: 115.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001321/10.51, allocations: 329.9 kB / 3.973 GB, free: 115.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/10.51, allocations: 245.2 kB / 3.973 GB, free: 115.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/10.51, allocations: 380.4 kB / 3.974 GB, free: 114.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/10.51, allocations: 378.8 kB / 3.974 GB, free: 114.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-05/10.51, allocations: 4 kB / 3.974 GB, free: 114.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004015/10.52, allocations: 0.7799 MB / 3.975 GB, free: 113.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001633/10.52, allocations: 451.1 kB / 3.975 GB, free: 113.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/10.52, allocations: 7.938 kB / 3.975 GB, free: 113 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.392e-05/10.52, allocations: 4 kB / 3.975 GB, free: 113 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/10.52, allocations: 127.9 kB / 3.975 GB, free: 112.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.212e-05/10.52, allocations: 11.98 kB / 3.975 GB, free: 112.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003185/10.52, allocations: 111.4 kB / 3.976 GB, free: 112.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/10.52, allocations: 23.94 kB / 3.976 GB, free: 112.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/10.52, allocations: 6.812 kB / 3.976 GB, free: 112.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003241/10.53, allocations: 0.6465 MB / 3.976 GB, free: 112.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/10.53, allocations: 4 kB / 3.976 GB, free: 112.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/10.53, allocations: 4 kB / 3.976 GB, free: 112.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/10.53, allocations: 135.9 kB / 3.976 GB, free: 112 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/10.53, allocations: 4 kB / 3.976 GB, free: 112 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/10.53, allocations: 111.5 kB / 3.977 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002656/10.53, allocations: 23.98 kB / 3.977 GB, free: 111.8 MB / 0.948 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.0003812/10.53, allocations: 120.9 kB / 3.977 GB, free: 111.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/10.53, allocations: 98.78 kB / 3.977 GB, free: 111.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003831/10.54, allocations: 0.8058 MB / 3.978 GB, free: 110.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/10.54, allocations: 8 kB / 3.978 GB, free: 110.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/10.54, allocations: 3.062 kB / 3.978 GB, free: 110.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004001/10.54, allocations: 0.9812 MB / 3.978 GB, free: 109.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006727/10.55, allocations: 1.998 MB / 3.98 GB, free: 107.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/10.55, allocations: 11.91 kB / 3.98 GB, free: 107.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/10.55, allocations: 164.1 kB / 3.981 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/10.55, allocations: 8 kB / 3.981 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.025e-05/10.55, allocations: 12 kB / 3.981 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/10.55, allocations: 4 kB / 3.981 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/10.55, allocations: 4 kB / 3.981 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003136/10.55, allocations: 1.435 MB / 3.982 GB, free: 105.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004774/10.56, allocations: 2.335 MB / 3.984 GB, free: 103.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009536/10.56, allocations: 255.8 kB / 3.985 GB, free: 103.2 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004075/10.56, allocations: 12 kB / 3.985 GB, free: 103.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003543/10.56, allocations: 115.7 kB / 3.985 GB, free: 103 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003898/10.56, allocations: 48.3 kB / 3.985 GB, free: 103 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002124/10.56, allocations: 27.98 kB / 3.985 GB, free: 103 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001737/10.57, allocations: 471.1 kB / 3.985 GB, free: 102.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01163/10.58, allocations: 1.291 MB / 3.986 GB, free: 101.2 MB / 0.948 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.006192/10.58, allocations: 2.596 MB / 3.989 GB, free: 98.79 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003652/10.59, allocations: 0.9426 MB / 3.99 GB, free: 97.84 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/10.59, allocations: 0 / 3.99 GB, free: 97.84 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/10.59, allocations: 325.4 kB / 3.99 GB, free: 97.53 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009179/10.6, allocations: 0.5997 MB / 3.991 GB, free: 96.95 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00786/10.61, allocations: 1.718 MB / 3.992 GB, free: 95.18 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002333/10.61, allocations: 1.258 MB / 3.994 GB, free: 93.89 MB / 0.948 GB Notification: Performance of SimCode: time 2.555e-06/10.61, allocations: 0 / 3.994 GB, free: 93.89 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_8.0.0_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)