Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes") [: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 3.2.1+maint.om/package.mo): time 0.003327/0.003327, allocations: 176.6 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.36/1.36, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001776/0.001776, allocations: 108.6 kB / 217.7 MB, free: 8.18 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.455e-06/8.486e-06, allocations: 0 / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 38.76 MB / 300.5 MB, free: 3.93 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.788/6.892, allocations: 2.517 GB / 2.811 GB, free: 6.219 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/6.893, allocations: 71.97 kB / 2.811 GB, free: 6.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.362/9.255, allocations: 0.5303 GB / 3.341 GB, free: 10.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001181/9.255, allocations: 42.5 kB / 3.341 GB, free: 10.16 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01123/9.266, allocations: 2.748 MB / 3.344 GB, free: 7.371 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/9.267, allocations: 8.031 kB / 3.344 GB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005188/9.272, allocations: 0.6261 MB / 3.345 GB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00405/9.276, allocations: 1.452 MB / 3.346 GB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/9.276, allocations: 83.97 kB / 3.346 GB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/9.276, allocations: 87.91 kB / 3.346 GB, free: 5.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003131/9.279, allocations: 2.028 MB / 3.348 GB, free: 3.059 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003042/9.282, allocations: 2.207 MB / 3.35 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/9.282, allocations: 3.938 kB / 3.35 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/9.283, allocations: 11.94 kB / 3.35 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/9.283, allocations: 142.4 kB / 3.35 GB, free: 0.5391 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4558/9.739, allocations: 76.61 MB / 3.425 GB, free: 22.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/9.741, allocations: 0.7838 MB / 3.426 GB, free: 22.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/9.742, allocations: 0.6892 MB / 3.427 GB, free: 22.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009273/9.751, allocations: 4.341 MB / 3.431 GB, free: 35.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.526e-05/9.752, allocations: 43.84 kB / 3.431 GB, free: 35.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=102): time 4.779e-06/9.752, allocations: 4 kB / 3.431 GB, free: 35.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.01668/9.768, allocations: 5.015 MB / 3.436 GB, free: 34.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/9.769, allocations: 148.2 kB / 3.436 GB, free: 34.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002606/9.771, allocations: 0.8507 MB / 3.437 GB, free: 34.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003488/9.772, allocations: 25.7 kB / 3.437 GB, free: 34.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007733/9.772, allocations: 0.6498 MB / 3.438 GB, free: 33.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006953/9.773, allocations: 401.9 kB / 3.438 GB, free: 33.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/9.773, allocations: 0 / 3.438 GB, free: 33.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000274/9.774, allocations: 369.4 kB / 3.438 GB, free: 33.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/9.775, allocations: 0.8246 MB / 3.439 GB, free: 33.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/9.777, allocations: 1.254 MB / 3.44 GB, free: 32.91 MB / 394.7 MB Notification: The following equation is consistent and got removed from the initialization problem: circular_pipe.mediums[1].p = 1000000.0 Notification: The following equation is consistent and got removed from the initialization problem: annulus_pipe.mediums[1].p = 1000000.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01825/9.795, allocations: 4.249 MB / 3.444 GB, free: 32.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.1e-05/9.795, allocations: 3.312 kB / 3.444 GB, free: 32.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01857/9.814, allocations: 4.764 MB / 3.449 GB, free: 32.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002696/9.816, allocations: 5.131 MB / 3.454 GB, free: 26.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.944e-05/9.817, allocations: 14.81 kB / 3.454 GB, free: 26.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/9.818, allocations: 0.4953 MB / 3.455 GB, free: 26.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/9.82, allocations: 395.7 kB / 3.455 GB, free: 26.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003401/9.824, allocations: 3.002 MB / 3.458 GB, free: 24.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/9.827, allocations: 190 kB / 3.458 GB, free: 24.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000553/9.827, allocations: 81.53 kB / 3.458 GB, free: 24.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/9.827, allocations: 7.781 kB / 3.458 GB, free: 24.79 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01611/9.844, allocations: 4.079 MB / 3.462 GB, free: 24.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.411e-05/9.844, allocations: 12.75 kB / 3.462 GB, free: 24.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/9.845, allocations: 0.4901 MB / 3.463 GB, free: 24.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/9.847, allocations: 396.7 kB / 3.463 GB, free: 24.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/9.85, allocations: 3.009 MB / 3.466 GB, free: 22.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/9.853, allocations: 182.2 kB / 3.466 GB, free: 22.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004947/9.853, allocations: 79.75 kB / 3.466 GB, free: 22.49 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,boundary.medium.phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001004/9.854, allocations: 161.5 kB / 3.466 GB, free: 22.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002041/9.857, allocations: 497 kB / 3.467 GB, free: 22.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008281/9.865, allocations: 4.732 MB / 3.472 GB, free: 21.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-05/9.865, allocations: 40.47 kB / 3.472 GB, free: 21.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-05/9.865, allocations: 0 / 3.472 GB, free: 21.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005643/9.871, allocations: 4.229 MB / 3.476 GB, free: 21.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/9.883, allocations: 6.81 MB / 3.482 GB, free: 20.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/9.883, allocations: 0 / 3.482 GB, free: 20.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/9.884, allocations: 224.2 kB / 3.483 GB, free: 20.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/9.886, allocations: 0.5446 MB / 3.483 GB, free: 20.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/9.886, allocations: 36.59 kB / 3.483 GB, free: 20.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/9.89, allocations: 3.154 MB / 3.486 GB, free: 18.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/9.89, allocations: 1.5 kB / 3.486 GB, free: 18.51 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01064/9.9, allocations: 5.481 MB / 3.492 GB, free: 18.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/9.902, allocations: 474 kB / 3.492 GB, free: 17.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006524/9.903, allocations: 16.22 kB / 3.492 GB, free: 17.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/9.904, allocations: 131.3 kB / 3.492 GB, free: 17.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003793/9.905, allocations: 120.1 kB / 3.492 GB, free: 17.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002007/9.905, allocations: 47.47 kB / 3.492 GB, free: 17.82 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001665/9.907, allocations: 0.6627 MB / 3.493 GB, free: 17.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01312/9.92, allocations: 2.079 MB / 3.495 GB, free: 17.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 26 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.01516/9.935, allocations: 2.406 MB / 3.497 GB, free: 17.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008401/9.944, allocations: 4.022 MB / 3.501 GB, free: 17.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/9.944, allocations: 1.406 kB / 3.501 GB, free: 17.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003249/9.947, allocations: 2.122 MB / 3.503 GB, free: 16.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003737/9.951, allocations: 0.5248 MB / 3.504 GB, free: 15.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0488/9.999, allocations: 17.23 MB / 3.521 GB, free: 5.734 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003402/10, allocations: 1.856 MB / 3.522 GB, free: 4.297 MB / 394.7 MB Notification: Performance of SimCode: time 2.314e-06/10, allocations: 0 / 3.522 GB, free: 4.297 MB / 394.7 MB Notification: Performance of Templates: time 0.3928/10.4, allocations: 72.21 MB / 3.593 GB, free: 62.19 MB / 394.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1)