Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.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: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001394/0.001395, allocations: 195.1 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 94.02 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.214e-06/7.384e-06, allocations: 0 / 343.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1202, allocations: 51.48 MB / 394.6 MB, free: 5.211 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.541/7.662, allocations: 2.801 GB / 3.186 GB, free: 104.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/7.662, allocations: 76.27 kB / 3.186 GB, free: 104.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.604/10.27, allocations: 0.5512 GB / 3.738 GB, free: 27.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004113/10.27, allocations: 47.41 kB / 3.738 GB, free: 27.45 MB / 458.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.01768/10.28, allocations: 2.821 MB / 3.74 GB, free: 26.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.463e-05/10.28, allocations: 9.25 kB / 3.74 GB, free: 26.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006737/10.29, allocations: 0.6298 MB / 3.741 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007205/10.3, allocations: 1.452 MB / 3.742 GB, free: 25.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004082/10.3, allocations: 79.52 kB / 3.743 GB, free: 25.58 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/10.3, allocations: 87.06 kB / 3.743 GB, free: 25.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006886/10.31, allocations: 2.034 MB / 3.745 GB, free: 25.57 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007261/10.31, allocations: 2.229 MB / 3.747 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/10.31, allocations: 8.406 kB / 3.747 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006891/10.32, allocations: 5.188 kB / 3.747 GB, free: 25.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002746/10.32, allocations: 141.1 kB / 3.747 GB, free: 25.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2071/10.52, allocations: 93.92 MB / 3.839 GB, free: 1.457 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/10.52, allocations: 0.811 MB / 3.839 GB, free: 0.7305 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/10.53, allocations: 0.7298 MB / 3.84 GB, free: 76 kB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3302/10.86, allocations: 8.934 MB / 3.849 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.968e-05/10.86, allocations: 45.94 kB / 3.849 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=108): time 3.637e-06/10.86, allocations: 0 / 3.849 GB, free: 106.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=126): time 0.01512/10.87, allocations: 5.158 MB / 3.854 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/10.87, allocations: 146.5 kB / 3.854 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/10.87, allocations: 0.8059 MB / 3.855 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001428/10.87, allocations: 32.27 kB / 3.855 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003691/10.87, allocations: 0.5998 MB / 3.855 GB, free: 105.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003988/10.87, allocations: 426.3 kB / 3.856 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.393e-05/10.87, allocations: 0 / 3.856 GB, free: 105.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001253/10.87, allocations: 368.7 kB / 3.856 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/10.88, allocations: 0.8352 MB / 3.857 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/10.88, allocations: 1.197 MB / 3.858 GB, free: 104.9 MB / 0.4948 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0135/10.89, allocations: 4.703 MB / 3.863 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/10.89, allocations: 3.375 kB / 3.863 GB, free: 104.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.009218/10.9, allocations: 3.588 MB / 3.866 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008513/10.9, allocations: 4.002 MB / 3.87 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/10.9, allocations: 10.19 kB / 3.87 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/10.9, allocations: 0.5104 MB / 3.871 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/10.9, allocations: 379 kB / 3.871 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/10.91, allocations: 3.046 MB / 3.874 GB, free: 98.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002268/10.91, allocations: 190.5 kB / 3.874 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001873/10.91, allocations: 74.41 kB / 3.874 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/10.91, allocations: 4.312 kB / 3.874 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007336/10.92, allocations: 2.914 MB / 3.877 GB, free: 98.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/10.92, allocations: 11.19 kB / 3.877 GB, free: 98.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/10.92, allocations: 0.5015 MB / 3.878 GB, free: 98.15 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/10.92, allocations: 378.3 kB / 3.878 GB, free: 98.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/10.92, allocations: 3.057 MB / 3.881 GB, free: 96.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002031/10.92, allocations: 178.8 kB / 3.881 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/10.92, allocations: 73.55 kB / 3.881 GB, free: 96.06 MB / 0.4948 GB Warning: Assuming redundant initial conditions for the following 2 initial equations: annulus_pipe.mediums[1].p = 1000000.0 circular_pipe.mediums[1].p = 1000000.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.circular_pipe.mediums[1].u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (175): * Single equations (assignments): 171 * 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.0006308/10.92, allocations: 167.6 kB / 3.881 GB, free: 95.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/10.92, allocations: 496.7 kB / 3.882 GB, free: 95.89 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006294/10.93, allocations: 4.847 MB / 3.887 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.388e-05/10.93, allocations: 41.83 kB / 3.887 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/10.93, allocations: 0 / 3.887 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004689/10.94, allocations: 4.311 MB / 3.891 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/10.95, allocations: 7.425 MB / 3.898 GB, free: 94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/10.95, allocations: 3.875 kB / 3.898 GB, free: 94 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/10.95, allocations: 246 kB / 3.898 GB, free: 94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/10.95, allocations: 0.524 MB / 3.899 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/10.95, allocations: 47.67 kB / 3.899 GB, free: 93.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/10.95, allocations: 3.122 MB / 3.902 GB, free: 91.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/10.95, allocations: 7.719 kB / 3.902 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008136/10.96, allocations: 5.618 MB / 3.907 GB, free: 91.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/10.96, allocations: 476.4 kB / 3.908 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003086/10.96, allocations: 17.06 kB / 3.908 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/10.97, allocations: 145.9 kB / 3.908 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/10.97, allocations: 115.5 kB / 3.908 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/10.97, allocations: 56.06 kB / 3.908 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001083/10.97, allocations: 0.6423 MB / 3.909 GB, free: 90.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01377/10.98, allocations: 2.135 MB / 3.911 GB, free: 90.86 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (117): * Single equations (assignments): 103 * 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.01492/11, allocations: 2.434 MB / 3.913 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008555/11, allocations: 4.046 MB / 3.917 GB, free: 90.58 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/11, allocations: 0 / 3.917 GB, free: 90.58 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003416/11.01, allocations: 2.363 MB / 3.92 GB, free: 90.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/11.01, allocations: 0.5474 MB / 3.92 GB, free: 90.55 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008657/11.02, allocations: 4.401 MB / 3.924 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001803/11.02, allocations: 1.862 MB / 3.926 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of SimCode: time 1.392e-06/11.02, allocations: 2.25 kB / 3.926 GB, free: 89.06 MB / 0.4948 GB Notification: Performance of Templates: time 0.1173/11.14, allocations: 72.93 MB / 3.997 GB, free: 79.84 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/NonCircularPipes/NonCircularPipes.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches