Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7768/0.7768, allocations: 141.8 MB / 149.1 MB, free: 13.19 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 173.7 kB / 181.9 MB, free: 9.879 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.4 MB / 436 MB, free: 2.27 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009817/0.000982, allocations: 93.44 kB / 0.507 GB, free: 17.73 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001828/0.001828, allocations: 284.5 kB / 0.5884 GB, free: 3.816 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.434/0.4359, allocations: 89.64 MB / 0.676 GB, free: 136.4 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.6148, allocations: 82.78 MB / 0.7568 GB, free: 83.13 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.704/4.319, allocations: 1.887 GB / 2.644 GB, free: 111.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/4.319, allocations: 90.56 kB / 2.644 GB, free: 111.5 MB / 0.6982 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.357/7.676, allocations: 0.9306 GB / 3.575 GB, free: 94.41 MB / 0.7139 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/7.676, allocations: 6.094 kB / 3.575 GB, free: 94.41 MB / 0.7139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00358/7.68, allocations: 428 kB / 3.575 GB, free: 94.34 MB / 0.7139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/7.683, allocations: 1.085 MB / 3.576 GB, free: 94.05 MB / 0.7139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-05/7.683, allocations: 30.44 kB / 3.576 GB, free: 94.05 MB / 0.7139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/7.684, allocations: 51.97 kB / 3.576 GB, free: 94.05 MB / 0.7139 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001832/7.686, allocations: 0.7356 MB / 3.577 GB, free: 94.05 MB / 0.7139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/7.687, allocations: 0.729 MB / 3.578 GB, free: 94 MB / 0.7139 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/7.687, allocations: 0 / 3.578 GB, free: 94 MB / 0.7139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-05/7.687, allocations: 4.016 kB / 3.578 GB, free: 94 MB / 0.7139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-05/7.688, allocations: 26.84 kB / 3.578 GB, free: 93.99 MB / 0.7139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006171/7.694, allocations: 3.799 MB / 3.582 GB, free: 92.3 MB / 0.7139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/7.695, allocations: 0.5833 MB / 3.582 GB, free: 92.27 MB / 0.7139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000477/7.695, allocations: 373 kB / 3.582 GB, free: 92.26 MB / 0.7139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007692/7.696, allocations: 0.6422 MB / 3.583 GB, free: 91.6 MB / 0.7139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/7.696, allocations: 41.59 kB / 3.583 GB, free: 91.56 MB / 0.7139 GB Notification: Performance of pre-optimization done (n=60): time 3.326e-06/7.696, allocations: 0 / 3.583 GB, free: 91.56 MB / 0.7139 GB Notification: Performance of matching and sorting (n=60): time 0.00305/7.699, allocations: 0.9188 MB / 3.584 GB, free: 91.47 MB / 0.7139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/7.699, allocations: 54.59 kB / 3.584 GB, free: 91.41 MB / 0.7139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/7.701, allocations: 0.5921 MB / 3.585 GB, free: 91.29 MB / 0.7139 GB Notification: Performance of collectPreVariables (initialization): time 0.0001207/7.701, allocations: 28.92 kB / 3.585 GB, free: 91.26 MB / 0.7139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002923/7.701, allocations: 339.1 kB / 3.585 GB, free: 91.11 MB / 0.7139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/7.701, allocations: 208 kB / 3.585 GB, free: 91 MB / 0.7139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/7.701, allocations: 0 / 3.585 GB, free: 91 MB / 0.7139 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/7.701, allocations: 323.3 kB / 3.586 GB, free: 90.7 MB / 0.7139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/7.702, allocations: 242 kB / 3.586 GB, free: 90.7 MB / 0.7139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/7.702, allocations: 384.6 kB / 3.586 GB, free: 90.56 MB / 0.7139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/7.703, allocations: 389 kB / 3.586 GB, free: 90.55 MB / 0.7139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/7.703, allocations: 3.906 kB / 3.586 GB, free: 90.55 MB / 0.7139 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001515/7.705, allocations: 0.7756 MB / 3.587 GB, free: 90.46 MB / 0.7139 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/7.705, allocations: 451.4 kB / 3.588 GB, free: 90.01 MB / 0.7139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/7.705, allocations: 2.562 kB / 3.588 GB, free: 90.01 MB / 0.7139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/7.705, allocations: 7.312 kB / 3.588 GB, free: 90.01 MB / 0.7139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006906/7.706, allocations: 138.3 kB / 3.588 GB, free: 90.01 MB / 0.7139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/7.706, allocations: 2.969 kB / 3.588 GB, free: 90.01 MB / 0.7139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/7.707, allocations: 112.1 kB / 3.588 GB, free: 90 MB / 0.7139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.323e-05/7.707, allocations: 22.72 kB / 3.588 GB, free: 90 MB / 0.7139 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/7.707, allocations: 5.406 kB / 3.588 GB, free: 90 MB / 0.7139 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001152/7.708, allocations: 0.647 MB / 3.589 GB, free: 89.98 MB / 0.7139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/7.708, allocations: 8.375 kB / 3.589 GB, free: 89.98 MB / 0.7139 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/7.708, allocations: 3.812 kB / 3.589 GB, free: 89.98 MB / 0.7139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/7.709, allocations: 139 kB / 3.589 GB, free: 89.98 MB / 0.7139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/7.709, allocations: 3.156 kB / 3.589 GB, free: 89.98 MB / 0.7139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001202/7.71, allocations: 118.9 kB / 3.589 GB, free: 89.97 MB / 0.7139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.356e-05/7.71, allocations: 20.19 kB / 3.589 GB, free: 89.97 MB / 0.7139 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.0001815/7.71, allocations: 116.5 kB / 3.589 GB, free: 89.86 MB / 0.7139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/7.711, allocations: 103.5 kB / 3.589 GB, free: 89.81 MB / 0.7139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/7.712, allocations: 0.8065 MB / 3.59 GB, free: 89.75 MB / 0.7139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/7.712, allocations: 6.312 kB / 3.59 GB, free: 89.75 MB / 0.7139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/7.712, allocations: 3.188 kB / 3.59 GB, free: 89.75 MB / 0.7139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001142/7.713, allocations: 0.975 MB / 3.591 GB, free: 89.3 MB / 0.7139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/7.717, allocations: 2.003 MB / 3.593 GB, free: 88.9 MB / 0.7139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/7.717, allocations: 3.938 kB / 3.593 GB, free: 88.9 MB / 0.7139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007924/7.718, allocations: 159.4 kB / 3.593 GB, free: 88.9 MB / 0.7139 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/7.718, allocations: 7.25 kB / 3.593 GB, free: 88.9 MB / 0.7139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.916e-05/7.718, allocations: 12.45 kB / 3.593 GB, free: 88.9 MB / 0.7139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-05/7.718, allocations: 13.81 kB / 3.593 GB, free: 88.89 MB / 0.7139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/7.718, allocations: 4.5 kB / 3.593 GB, free: 88.89 MB / 0.7139 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001932/7.72, allocations: 1.43 MB / 3.594 GB, free: 88.38 MB / 0.7139 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002911/7.723, allocations: 2.33 MB / 3.597 GB, free: 87.48 MB / 0.7139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006435/7.724, allocations: 262.3 kB / 3.597 GB, free: 87.34 MB / 0.7139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/7.724, allocations: 5.656 kB / 3.597 GB, free: 87.34 MB / 0.7139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/7.725, allocations: 122.5 kB / 3.597 GB, free: 87.34 MB / 0.7139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/7.725, allocations: 44.05 kB / 3.597 GB, free: 87.33 MB / 0.7139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.403e-05/7.725, allocations: 26.72 kB / 3.597 GB, free: 87.33 MB / 0.7139 GB Notification: Performance of sort global known variables: time 0.0007393/7.726, allocations: 470.4 kB / 3.598 GB, free: 87.24 MB / 0.7139 GB Notification: Performance of remove unused functions: time 0.004836/7.731, allocations: 1.29 MB / 3.599 GB, free: 87.2 MB / 0.7139 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.004074/7.735, allocations: 2.602 MB / 3.601 GB, free: 86.37 MB / 0.7139 GB Notification: Performance of simCode: created initialization part: time 0.001703/7.737, allocations: 0.9356 MB / 3.602 GB, free: 86.34 MB / 0.7139 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/7.737, allocations: 0 / 3.602 GB, free: 86.34 MB / 0.7139 GB Notification: Performance of simCode: created simulation system equations: time 0.0004608/7.737, allocations: 324.2 kB / 3.603 GB, free: 86.34 MB / 0.7139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/7.741, allocations: 0.6063 MB / 3.603 GB, free: 86.33 MB / 0.7139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/7.745, allocations: 1.733 MB / 3.605 GB, free: 85.84 MB / 0.7139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/7.746, allocations: 1.244 MB / 3.606 GB, free: 85.13 MB / 0.7139 GB Notification: Performance of SimCode: time 2.665e-06/7.746, allocations: 2.969 kB / 3.606 GB, free: 85.13 MB / 0.7139 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)