Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001078/0.001078, allocations: 200.8 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.1/1.1, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008472/0.0008471, allocations: 87.69 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08602/0.08689, allocations: 56.89 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07655/0.1634, allocations: 51.47 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.613/4.776, allocations: 3.444 GB / 3.83 GB, free: 96.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001611/4.776, allocations: 71.97 kB / 3.83 GB, free: 96.02 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 2.798/7.574, allocations: 0.9556 GB / 4.786 GB, free: 3.391 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/7.574, allocations: 8 kB / 4.786 GB, free: 3.383 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006315/7.58, allocations: 0.8891 MB / 4.786 GB, free: 2.484 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/7.598, allocations: 5.732 MB / 4.792 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004741/7.598, allocations: 247.9 kB / 4.792 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003752/7.602, allocations: 431.7 kB / 4.793 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1995/7.801, allocations: 16.27 MB / 4.809 GB, free: 55.83 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02033/7.822, allocations: 13.46 MB / 4.822 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001532/7.822, allocations: 21.62 kB / 4.822 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/7.823, allocations: 7.188 kB / 4.822 GB, free: 55.18 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004078/7.824, allocations: 0.7472 MB / 4.822 GB, free: 55.17 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07033/7.894, allocations: 48.24 MB / 4.87 GB, free: 40.92 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009948/7.904, allocations: 8.043 MB / 4.877 GB, free: 40.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009071/7.913, allocations: 7.834 MB / 4.885 GB, free: 40.83 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002723/7.916, allocations: 4.223 MB / 4.889 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.471e-05/7.916, allocations: 157 kB / 4.889 GB, free: 36.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=925): time 9.628e-06/7.916, allocations: 0 / 4.889 GB, free: 36.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1187): time 0.267/8.183, allocations: 82.18 MB / 4.97 GB, free: 25.06 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.15e-05/8.183, allocations: 173.9 kB / 4.97 GB, free: 24.99 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/8.186, allocations: 2.286 MB / 4.972 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002754/8.189, allocations: 31.45 kB / 4.972 GB, free: 23.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007531/8.19, allocations: 1.927 MB / 4.974 GB, free: 21.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004181/8.194, allocations: 3.978 MB / 4.978 GB, free: 18.26 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/8.195, allocations: 0 / 4.978 GB, free: 18.26 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004424/8.195, allocations: 0.7632 MB / 4.979 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01146/8.207, allocations: 9.672 MB / 4.988 GB, free: 9.227 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1807/8.387, allocations: 10.91 MB / 4.999 GB, free: 51.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02753/8.415, allocations: 12.73 MB / 5.011 GB, free: 51.43 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.453e-05/8.415, allocations: 3.938 kB / 5.011 GB, free: 51.43 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.06191/8.477, allocations: 32.76 MB / 5.043 GB, free: 51.11 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001438/8.479, allocations: 9.271 MB / 5.052 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-05/8.479, allocations: 21.06 kB / 5.052 GB, free: 41.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2018/8.68, allocations: 41.84 MB / 5.093 GB, free: 41.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005293/8.686, allocations: 1.05 MB / 5.094 GB, free: 41.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0671/8.753, allocations: 39.77 MB / 5.133 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01439/8.767, allocations: 1.404 MB / 5.134 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003077/8.77, allocations: 0.5876 MB / 5.135 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/8.77, allocations: 5.812 kB / 5.135 GB, free: 37.25 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0544/8.825, allocations: 30.48 MB / 5.165 GB, free: 20.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.641e-05/8.825, allocations: 20 kB / 5.165 GB, free: 20.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3768/9.202, allocations: 44.41 MB / 5.208 GB, free: 49.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005211/9.207, allocations: 1.1 MB / 5.209 GB, free: 49.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0579/9.265, allocations: 36.82 MB / 5.245 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01352/9.279, allocations: 1.382 MB / 5.246 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001935/9.28, allocations: 0.5741 MB / 5.247 GB, free: 48.23 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.002748/9.283, allocations: 209.4 kB / 5.247 GB, free: 48.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001793/9.285, allocations: 0.5933 MB / 5.248 GB, free: 48.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05218/9.337, allocations: 33.22 MB / 5.28 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-05/9.337, allocations: 131.9 kB / 5.28 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-05/9.337, allocations: 2.734 kB / 5.28 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03619/9.374, allocations: 22.33 MB / 5.302 GB, free: 46.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08844/9.462, allocations: 44.03 MB / 5.345 GB, free: 34.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-05/9.462, allocations: 0 / 5.345 GB, free: 34.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01941/9.482, allocations: 3.19 MB / 5.348 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03153/9.513, allocations: 9.517 MB / 5.357 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003725/9.517, allocations: 0.5083 MB / 5.358 GB, free: 27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2288/9.746, allocations: 43.62 MB / 5.401 GB, free: 48.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/9.746, allocations: 12.77 kB / 5.401 GB, free: 48.91 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07287/9.819, allocations: 38.39 MB / 5.438 GB, free: 48 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.08719/9.906, allocations: 53.11 MB / 5.49 GB, free: 43.19 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/9.908, allocations: 0.6889 MB / 5.491 GB, free: 42.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003021/9.911, allocations: 308.7 kB / 5.491 GB, free: 42.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01213/9.923, allocations: 1.13 MB / 5.492 GB, free: 42.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001884/9.925, allocations: 0.7219 MB / 5.493 GB, free: 42.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001592/9.927, allocations: 0.5471 MB / 5.493 GB, free: 42.44 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002145/9.929, allocations: 1.699 MB / 5.495 GB, free: 41.74 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02177/9.95, allocations: 7.199 MB / 5.502 GB, free: 40.71 MB / 0.5105 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.009199/9.96, allocations: 3.832 MB / 5.506 GB, free: 40.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05545/10.02, allocations: 35.91 MB / 5.541 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/10.02, allocations: 6.219 kB / 5.541 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02819/10.04, allocations: 13 MB / 5.553 GB, free: 8.805 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01593/10.06, allocations: 2.575 MB / 5.556 GB, free: 7.129 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2779/10.34, allocations: 29.87 MB / 5.585 GB, free: 60.65 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01023/10.35, allocations: 6.608 MB / 5.592 GB, free: 59.68 MB / 0.5105 GB Notification: Performance of SimCode: time 8.92e-07/10.35, allocations: 0 / 5.592 GB, free: 59.68 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_BranchingDynamicPipes.fmu > Modelica_trunk_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1)