Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001135/0.001135, allocations: 186.5 kB / 8.137 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.162/1.162, allocations: 194.2 MB / 202.8 MB, free: 8.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00191/0.00191, allocations: 119.8 kB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.222e-06/6.232e-06, allocations: 0 / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0762/0.07623, allocations: 44.47 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.578/4.654, allocations: 2.627 GB / 2.961 GB, free: 81.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/4.654, allocations: 71.86 kB / 2.961 GB, free: 81.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.767/6.421, allocations: 0.5425 GB / 3.504 GB, free: 3.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001375/6.421, allocations: 47.84 kB / 3.504 GB, free: 3.887 MB / 426.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.01102/6.432, allocations: 2.808 MB / 3.506 GB, free: 1.035 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/6.432, allocations: 8.031 kB / 3.506 GB, free: 1.027 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005209/6.437, allocations: 0.6377 MB / 3.507 GB, free: 396 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2129/6.65, allocations: 1.459 MB / 3.509 GB, free: 59.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/6.651, allocations: 79.27 kB / 3.509 GB, free: 59.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003162/6.651, allocations: 87.78 kB / 3.509 GB, free: 59.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003283/6.654, allocations: 2.033 MB / 3.511 GB, free: 59.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003057/6.657, allocations: 2.207 MB / 3.513 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.635e-05/6.657, allocations: 7.281 kB / 3.513 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/6.657, allocations: 7.344 kB / 3.513 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/6.658, allocations: 138.1 kB / 3.513 GB, free: 59.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.18/6.838, allocations: 76.65 MB / 3.588 GB, free: 35.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/6.839, allocations: 0.777 MB / 3.589 GB, free: 35.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/6.841, allocations: 0.6906 MB / 3.589 GB, free: 35.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008314/6.849, allocations: 4.369 MB / 3.594 GB, free: 32.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/6.849, allocations: 45.88 kB / 3.594 GB, free: 32.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=102): time 3.306e-06/6.849, allocations: 0 / 3.594 GB, free: 32.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.01344/6.862, allocations: 5.029 MB / 3.598 GB, free: 31.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/6.862, allocations: 141.1 kB / 3.599 GB, free: 31.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/6.864, allocations: 0.8536 MB / 3.599 GB, free: 31.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/6.864, allocations: 25.7 kB / 3.599 GB, free: 31.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000336/6.864, allocations: 0.6442 MB / 3.6 GB, free: 31.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002843/6.864, allocations: 401.5 kB / 3.6 GB, free: 30.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/6.865, allocations: 0 / 3.6 GB, free: 30.78 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/6.865, allocations: 376 kB / 3.601 GB, free: 30.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/6.866, allocations: 0.8234 MB / 3.602 GB, free: 30.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/6.867, allocations: 1.253 MB / 3.603 GB, free: 29.96 MB / 442.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.01702/6.884, allocations: 4.256 MB / 3.607 GB, free: 29.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/6.884, allocations: 3.969 kB / 3.607 GB, free: 29.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01621/6.9, allocations: 4.758 MB / 3.612 GB, free: 29.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001796/6.902, allocations: 5.135 MB / 3.617 GB, free: 24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-05/6.902, allocations: 13.19 kB / 3.617 GB, free: 24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/6.904, allocations: 0.4919 MB / 3.617 GB, free: 23.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/6.905, allocations: 396.1 kB / 3.618 GB, free: 23.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/6.908, allocations: 3 MB / 3.62 GB, free: 37.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002022/6.91, allocations: 183.4 kB / 3.621 GB, free: 37.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/6.91, allocations: 83.03 kB / 3.621 GB, free: 37.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/6.91, allocations: 7.656 kB / 3.621 GB, free: 37.83 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01405/6.924, allocations: 4.082 MB / 3.625 GB, free: 37.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.256e-05/6.925, allocations: 11.81 kB / 3.625 GB, free: 37.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/6.926, allocations: 0.495 MB / 3.625 GB, free: 37.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/6.928, allocations: 391.9 kB / 3.626 GB, free: 37.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/6.93, allocations: 3.007 MB / 3.629 GB, free: 35.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/6.932, allocations: 180.3 kB / 3.629 GB, free: 35.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/6.932, allocations: 80.02 kB / 3.629 GB, free: 35.53 MB / 458.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.0004815/6.933, allocations: 158.9 kB / 3.629 GB, free: 35.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001737/6.935, allocations: 498.9 kB / 3.629 GB, free: 35.35 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00683/6.942, allocations: 4.737 MB / 3.634 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.527e-05/6.942, allocations: 44.83 kB / 3.634 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/6.942, allocations: 0 / 3.634 GB, free: 34.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005708/6.947, allocations: 4.224 MB / 3.638 GB, free: 34.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009846/6.957, allocations: 6.804 MB / 3.645 GB, free: 33.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/6.957, allocations: 6.344 kB / 3.645 GB, free: 33.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/6.958, allocations: 226 kB / 3.645 GB, free: 33.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/6.96, allocations: 0.5369 MB / 3.646 GB, free: 33.63 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/6.96, allocations: 28.88 kB / 3.646 GB, free: 33.63 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/6.962, allocations: 3.164 MB / 3.649 GB, free: 31.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/6.963, allocations: 1.203 kB / 3.649 GB, free: 31.53 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007738/6.97, allocations: 5.484 MB / 3.654 GB, free: 31.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009918/6.971, allocations: 479.7 kB / 3.655 GB, free: 30.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/6.972, allocations: 13.66 kB / 3.655 GB, free: 30.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/6.973, allocations: 131.6 kB / 3.655 GB, free: 30.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/6.973, allocations: 116 kB / 3.655 GB, free: 30.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/6.974, allocations: 49.52 kB / 3.655 GB, free: 30.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001291/6.975, allocations: 0.663 MB / 3.655 GB, free: 30.72 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01007/6.985, allocations: 2.093 MB / 3.658 GB, free: 30.62 MB / 458.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.01133/6.996, allocations: 2.405 MB / 3.66 GB, free: 30.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006943/7.003, allocations: 4.022 MB / 3.664 GB, free: 30.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/7.003, allocations: 4.062 kB / 3.664 GB, free: 30.22 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00319/7.007, allocations: 2.115 MB / 3.666 GB, free: 30.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004085/7.011, allocations: 0.5264 MB / 3.666 GB, free: 30.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04555/7.056, allocations: 17.63 MB / 3.684 GB, free: 20.03 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002453/7.059, allocations: 1.855 MB / 3.685 GB, free: 18.59 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/7.059, allocations: 1.312 kB / 3.685 GB, free: 18.59 MB / 458.7 MB Notification: Performance of Templates: time 0.3149/7.374, allocations: 72.44 MB / 3.756 GB, free: 83.07 MB / 458.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1)