Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.222/1.222, allocations: 249.4 MB / 256.7 MB, free: 7.09 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.001372/0.001372, allocations: 192.4 kB / 316 MB, free: 3.512 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.071/1.071, allocations: 205.2 MB / 0.5667 GB, free: 15.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008144/0.0008145, allocations: 78.47 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2931/0.294, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.4306, allocations: 106.3 MB / 0.8847 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.496/3.926, allocations: 2.201 GB / 3.085 GB, free: 202.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/3.927, allocations: 87.95 kB / 3.085 GB, free: 202.6 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 2.614/6.541, allocations: 0.8911 GB / 3.977 GB, free: 141.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/6.541, allocations: 7.812 kB / 3.977 GB, free: 141.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/6.544, allocations: 428.1 kB / 3.977 GB, free: 141.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001842/6.546, allocations: 1.089 MB / 3.978 GB, free: 140.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/6.546, allocations: 31.75 kB / 3.978 GB, free: 140.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/6.546, allocations: 52.47 kB / 3.978 GB, free: 140.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001107/6.547, allocations: 0.7433 MB / 3.979 GB, free: 140.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/6.548, allocations: 0.73 MB / 3.98 GB, free: 140.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/6.548, allocations: 0 / 3.98 GB, free: 140.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.137e-05/6.548, allocations: 3.875 kB / 3.98 GB, free: 140.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.272e-05/6.548, allocations: 26.75 kB / 3.98 GB, free: 140.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004242/6.552, allocations: 3.814 MB / 3.983 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009947/6.553, allocations: 0.5924 MB / 3.984 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/6.554, allocations: 359.3 kB / 3.984 GB, free: 139.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006676/6.554, allocations: 0.6502 MB / 3.985 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/6.554, allocations: 38.06 kB / 3.985 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 2.354e-06/6.554, allocations: 0 / 3.985 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.002299/6.557, allocations: 0.9047 MB / 3.986 GB, free: 138.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.106e-05/6.557, allocations: 61.81 kB / 3.986 GB, free: 138.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006309/6.557, allocations: 0.6009 MB / 3.986 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.077e-05/6.557, allocations: 25.7 kB / 3.986 GB, free: 138.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/6.558, allocations: 346.2 kB / 3.987 GB, free: 137.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/6.558, allocations: 200.9 kB / 3.987 GB, free: 137.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/6.558, allocations: 0 / 3.987 GB, free: 137.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.039e-05/6.558, allocations: 334.6 kB / 3.987 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/6.558, allocations: 234.9 kB / 3.988 GB, free: 137.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/6.559, allocations: 380.9 kB / 3.988 GB, free: 137.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/6.559, allocations: 375.6 kB / 3.988 GB, free: 137.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/6.559, allocations: 0 / 3.988 GB, free: 137.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001129/6.56, allocations: 0.7787 MB / 3.989 GB, free: 137.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.392e-05/6.56, allocations: 449 kB / 3.989 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/6.56, allocations: 3.312 kB / 3.989 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/6.56, allocations: 7 kB / 3.989 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006139/6.561, allocations: 143.3 kB / 3.99 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/6.561, allocations: 3.75 kB / 3.99 GB, free: 136.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009834/6.562, allocations: 118.5 kB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/6.562, allocations: 23.41 kB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.054e-06/6.562, allocations: 5.531 kB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009869/6.563, allocations: 0.6395 MB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-06/6.563, allocations: 3.594 kB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.05e-06/6.563, allocations: 6.562 kB / 3.99 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/6.564, allocations: 143.6 kB / 3.991 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/6.564, allocations: 3.938 kB / 3.991 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/6.565, allocations: 111.5 kB / 3.991 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/6.565, allocations: 24.95 kB / 3.991 GB, free: 136.8 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.0001311/6.565, allocations: 115.8 kB / 3.991 GB, free: 136.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/6.565, allocations: 98.56 kB / 3.991 GB, free: 136.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/6.566, allocations: 0.8062 MB / 3.992 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/6.566, allocations: 10.5 kB / 3.992 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/6.566, allocations: 0 / 3.992 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001004/6.567, allocations: 0.9666 MB / 3.993 GB, free: 136.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/6.57, allocations: 1.997 MB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/6.57, allocations: 3.531 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/6.571, allocations: 156.1 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/6.571, allocations: 9.125 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.463e-05/6.571, allocations: 10.03 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/6.571, allocations: 13.44 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/6.571, allocations: 4.062 kB / 3.995 GB, free: 135.8 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00172/6.573, allocations: 1.437 MB / 3.996 GB, free: 135.2 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002452/6.575, allocations: 2.314 MB / 3.998 GB, free: 134.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000438/6.576, allocations: 256.6 kB / 3.999 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/6.576, allocations: 13.62 kB / 3.999 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/6.577, allocations: 127.6 kB / 3.999 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/6.577, allocations: 51.06 kB / 3.999 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/6.577, allocations: 23.94 kB / 3.999 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0004954/6.578, allocations: 476.6 kB / 3.999 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003534/6.581, allocations: 1.293 MB / 4.001 GB, free: 134.1 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.003558/6.585, allocations: 2.593 MB / 4.003 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001486/6.586, allocations: 0.9272 MB / 4.004 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/6.586, allocations: 7 kB / 4.004 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003882/6.587, allocations: 318.9 kB / 4.004 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002814/6.59, allocations: 0.5914 MB / 4.005 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/6.592, allocations: 1.747 MB / 4.007 GB, free: 132.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007832/6.593, allocations: 1.255 MB / 4.008 GB, free: 132 MB / 0.8855 GB Notification: Performance of SimCode: time 1.322e-06/6.593, allocations: 0 / 4.008 GB, free: 132 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_FixedResistances_Examples_FlowJunction.fmu > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)