Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.373/2.373, allocations: 390.4 MB / 397.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 181.2 kB / 490.8 MB, free: 1.938 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.629/1.629, allocations: 221.3 MB / 0.7863 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009936/0.0009936, allocations: 94.95 kB / 0.9264 GB, free: 14.29 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7253/0.7264, allocations: 149.1 MB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/1.068, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.332/6.4, allocations: 1.928 GB / 3.14 GB, free: 346.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/6.4, allocations: 89.16 kB / 3.14 GB, free: 346.7 MB / 1.151 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 3.403/9.803, allocations: 0.9327 GB / 4.072 GB, free: 227 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/9.803, allocations: 14.41 kB / 4.072 GB, free: 227 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003702/9.807, allocations: 420.9 kB / 4.073 GB, free: 226.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003618/9.811, allocations: 1.106 MB / 4.074 GB, free: 226.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.102e-05/9.811, allocations: 25.56 kB / 4.074 GB, free: 226.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003493/9.811, allocations: 51.78 kB / 4.074 GB, free: 226.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001927/9.813, allocations: 0.7423 MB / 4.075 GB, free: 226.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/9.815, allocations: 0.7271 MB / 4.075 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.989e-05/9.815, allocations: 1.438 kB / 4.075 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.632e-05/9.815, allocations: 0 / 4.075 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.033e-05/9.815, allocations: 30.03 kB / 4.075 GB, free: 226.6 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006151/9.821, allocations: 3.971 MB / 4.079 GB, free: 224.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/9.822, allocations: 0.5765 MB / 4.08 GB, free: 224.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/9.822, allocations: 371.9 kB / 4.08 GB, free: 224.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007589/9.823, allocations: 0.6479 MB / 4.081 GB, free: 224.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/9.823, allocations: 44.06 kB / 4.081 GB, free: 224 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 3.817e-06/9.823, allocations: 0 / 4.081 GB, free: 224 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.002918/9.826, allocations: 0.912 MB / 4.082 GB, free: 223.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/9.826, allocations: 58.66 kB / 4.082 GB, free: 223.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/9.827, allocations: 0.6019 MB / 4.082 GB, free: 223.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/9.827, allocations: 25.7 kB / 4.082 GB, free: 223.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/9.828, allocations: 342.8 kB / 4.083 GB, free: 223.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/9.828, allocations: 202.3 kB / 4.083 GB, free: 223.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/9.828, allocations: 0 / 4.083 GB, free: 223.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.518e-05/9.828, allocations: 332.4 kB / 4.083 GB, free: 223.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/9.828, allocations: 237.1 kB / 4.083 GB, free: 223.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004458/9.829, allocations: 384.6 kB / 4.084 GB, free: 223 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/9.829, allocations: 378.4 kB / 4.084 GB, free: 223 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/9.83, allocations: 0 / 4.084 GB, free: 223 MB / 1.151 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001504/9.831, allocations: 0.7812 MB / 4.085 GB, free: 222.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/9.831, allocations: 456.3 kB / 4.085 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/9.831, allocations: 3.844 kB / 4.085 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/9.831, allocations: 3.688 kB / 4.085 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006778/9.832, allocations: 133.3 kB / 4.086 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/9.832, allocations: 17.84 kB / 4.086 GB, free: 222.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/9.833, allocations: 123.4 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.529e-05/9.833, allocations: 22.52 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/9.833, allocations: 6.312 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001154/9.834, allocations: 0.65 MB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/9.834, allocations: 2.906 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.846e-06/9.835, allocations: 5.375 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000635/9.835, allocations: 139.4 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/9.835, allocations: 3.5 kB / 4.086 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/9.836, allocations: 122.8 kB / 4.087 GB, free: 222.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.662e-05/9.836, allocations: 26.06 kB / 4.087 GB, free: 222.4 MB / 1.151 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.0001785/9.837, allocations: 117.2 kB / 4.087 GB, free: 222.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/9.837, allocations: 100.3 kB / 4.087 GB, free: 222.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/9.838, allocations: 0.8084 MB / 4.088 GB, free: 222.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/9.838, allocations: 10.84 kB / 4.088 GB, free: 222.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/9.838, allocations: 0 / 4.088 GB, free: 222.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001167/9.84, allocations: 0.9765 MB / 4.089 GB, free: 221.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/9.844, allocations: 2.005 MB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/9.844, allocations: 0 / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/9.844, allocations: 152.5 kB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.609e-05/9.844, allocations: 7.531 kB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-05/9.844, allocations: 15.69 kB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.786e-06/9.844, allocations: 8.938 kB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/9.845, allocations: 7.312 kB / 4.091 GB, free: 221.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001931/9.846, allocations: 1.381 MB / 4.092 GB, free: 220.8 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002753/9.849, allocations: 2.264 MB / 4.094 GB, free: 219.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006025/9.85, allocations: 252.8 kB / 4.095 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000232/9.85, allocations: 14.84 kB / 4.095 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/9.851, allocations: 120.3 kB / 4.095 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/9.852, allocations: 48.14 kB / 4.095 GB, free: 219.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/9.852, allocations: 24.5 kB / 4.095 GB, free: 219.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009557/9.853, allocations: 479 kB / 4.095 GB, free: 219.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.007154/9.86, allocations: 1.292 MB / 4.096 GB, free: 219.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,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.006552/9.866, allocations: 2.592 MB / 4.099 GB, free: 218.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002711/9.869, allocations: 0.9341 MB / 4.1 GB, free: 218.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/9.869, allocations: 3.875 kB / 4.1 GB, free: 218.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006495/9.87, allocations: 328.4 kB / 4.1 GB, free: 218.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/9.874, allocations: 0.6015 MB / 4.101 GB, free: 218.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004966/9.879, allocations: 1.749 MB / 4.102 GB, free: 218.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/9.881, allocations: 1.255 MB / 4.104 GB, free: 217.5 MB / 1.151 GB Notification: Performance of SimCode: time 2.665e-06/9.881, allocations: 3.438 kB / 4.104 GB, free: 217.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)