Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_BranchingDynamicPipes",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/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 184.6 kB / 8.136 MB, free: 2.129 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009779/0.0009779, allocations: 89.28 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09492/0.09593, allocations: 55.81 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.2826, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.823/5.105, allocations: 3.451 GB / 3.829 GB, free: 67.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/5.106, allocations: 76.66 kB / 3.829 GB, free: 67.63 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 3.015/8.12, allocations: 0.9661 GB / 4.795 GB, free: 4.945 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/8.12, allocations: 8 kB / 4.795 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005885/8.126, allocations: 0.8735 MB / 4.796 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1891/8.315, allocations: 5.72 MB / 4.802 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003775/8.316, allocations: 250.5 kB / 4.802 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003813/8.319, allocations: 433.7 kB / 4.802 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02493/8.344, allocations: 16.26 MB / 4.818 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/8.365, allocations: 13.46 MB / 4.831 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/8.365, allocations: 24.97 kB / 4.831 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/8.366, allocations: 13.88 kB / 4.831 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000457/8.366, allocations: 0.7445 MB / 4.832 GB, free: 56.46 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06934/8.436, allocations: 48.24 MB / 4.879 GB, free: 42.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/8.446, allocations: 8.049 MB / 4.887 GB, free: 42.16 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008949/8.455, allocations: 7.831 MB / 4.895 GB, free: 42.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002724/8.458, allocations: 4.147 MB / 4.899 GB, free: 37.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.624e-05/8.458, allocations: 152.9 kB / 4.899 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=925): time 1.163e-05/8.458, allocations: 2.953 kB / 4.899 GB, free: 37.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1187): time 0.2843/8.742, allocations: 82.2 MB / 4.979 GB, free: 16.15 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/8.742, allocations: 172.7 kB / 4.979 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/8.746, allocations: 2.282 MB / 4.982 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.003175/8.749, allocations: 36.2 kB / 4.982 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009677/8.75, allocations: 1.921 MB / 4.983 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005037/8.755, allocations: 3.986 MB / 4.987 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001312/8.756, allocations: 0 / 4.987 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005863/8.757, allocations: 0.765 MB / 4.988 GB, free: 8.109 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/8.771, allocations: 9.782 MB / 4.998 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.183/8.954, allocations: 10.91 MB / 5.008 GB, free: 53.28 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02354/8.978, allocations: 12.46 MB / 5.02 GB, free: 53.15 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.98e-05/8.978, allocations: 8.906 kB / 5.02 GB, free: 53.15 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.05102/9.029, allocations: 32.48 MB / 5.052 GB, free: 52.83 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001255/9.03, allocations: 9.266 MB / 5.061 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.971e-05/9.03, allocations: 22.81 kB / 5.061 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1944/9.225, allocations: 41.84 MB / 5.102 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005045/9.23, allocations: 1.053 MB / 5.103 GB, free: 42.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06796/9.298, allocations: 39.77 MB / 5.142 GB, free: 39.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01435/9.312, allocations: 1.402 MB / 5.143 GB, free: 39.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002925/9.315, allocations: 0.5852 MB / 5.144 GB, free: 39.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/9.315, allocations: 5.094 kB / 5.144 GB, free: 39.18 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05445/9.37, allocations: 30.21 MB / 5.173 GB, free: 16.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.564e-05/9.37, allocations: 20 kB / 5.173 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3883/9.758, allocations: 45.02 MB / 5.217 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005293/9.763, allocations: 1.1 MB / 5.219 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05791/9.821, allocations: 36.83 MB / 5.254 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01353/9.835, allocations: 1.381 MB / 5.256 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/9.837, allocations: 0.5678 MB / 5.256 GB, free: 47.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 598 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {68 768} Notification: Performance of prepare postOptimizeDAE: time 0.00297/9.84, allocations: 215.7 kB / 5.257 GB, free: 47.33 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/9.842, allocations: 0.5907 MB / 5.257 GB, free: 47.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05761/9.899, allocations: 33.23 MB / 5.29 GB, free: 46.44 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/9.899, allocations: 121.9 kB / 5.29 GB, free: 46.44 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.565e-05/9.899, allocations: 6.688 kB / 5.29 GB, free: 46.44 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04051/9.94, allocations: 22.34 MB / 5.312 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09805/10.04, allocations: 44.04 MB / 5.355 GB, free: 35.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.607e-05/10.04, allocations: 3.797 kB / 5.355 GB, free: 35.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01979/10.06, allocations: 3.19 MB / 5.358 GB, free: 33.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03208/10.09, allocations: 9.51 MB / 5.367 GB, free: 26.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004193/10.09, allocations: 0.5109 MB / 5.367 GB, free: 26.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2118/10.31, allocations: 43.63 MB / 5.41 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/10.31, allocations: 2.625 kB / 5.41 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07186/10.38, allocations: 38.41 MB / 5.448 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.08842/10.47, allocations: 53.11 MB / 5.499 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001925/10.47, allocations: 0.6914 MB / 5.5 GB, free: 22.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002991/10.47, allocations: 304.9 kB / 5.5 GB, free: 22.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01124/10.48, allocations: 1.133 MB / 5.502 GB, free: 22.35 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001708/10.48, allocations: 0.7125 MB / 5.502 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001638/10.49, allocations: 0.555 MB / 5.503 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002231/10.49, allocations: 1.7 MB / 5.504 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02592/10.51, allocations: 7.128 MB / 5.511 GB, free: 20.69 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1168): * Single equations (assignments): 1121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01034/10.52, allocations: 3.802 MB / 5.515 GB, free: 20.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.06021/10.58, allocations: 35.91 MB / 5.55 GB, free: 2.141 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/10.58, allocations: 4.781 kB / 5.55 GB, free: 2.137 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2388/10.82, allocations: 15.32 MB / 5.565 GB, free: 50.58 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01364/10.84, allocations: 2.549 MB / 5.568 GB, free: 50.55 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05416/10.89, allocations: 29.19 MB / 5.596 GB, free: 47.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00923/10.9, allocations: 6.611 MB / 5.603 GB, free: 46.47 MB / 0.4948 GB Notification: Performance of SimCode: time 1.993e-06/10.9, allocations: 0 / 5.603 GB, free: 46.47 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_BranchingDynamicPipes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_BranchingDynamicPipes.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1)