Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.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: 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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.399/1.399, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0008563/0.0008562, allocations: 85.86 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.72e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1447, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.266/8.41, allocations: 2.8 GB / 3.179 GB, free: 106.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/8.411, allocations: 71.47 kB / 3.179 GB, free: 106.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505/10.92, allocations: 0.5503 GB / 3.729 GB, free: 38.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.863e-06/10.92, allocations: 0 / 3.729 GB, free: 38.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002377/10.92, allocations: 46.67 kB / 3.729 GB, free: 38.65 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.01485/10.93, allocations: 2.798 MB / 3.732 GB, free: 37.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/10.93, allocations: 15.19 kB / 3.732 GB, free: 37.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005602/10.94, allocations: 0.6013 MB / 3.732 GB, free: 37.13 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005321/10.94, allocations: 1.431 MB / 3.734 GB, free: 36.72 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002649/10.94, allocations: 80.14 kB / 3.734 GB, free: 36.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000943/10.94, allocations: 92.69 kB / 3.734 GB, free: 36.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005477/10.95, allocations: 1.963 MB / 3.736 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005722/10.95, allocations: 2.168 MB / 3.738 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.838e-05/10.95, allocations: 11.47 kB / 3.738 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003664/10.95, allocations: 7.5 kB / 3.738 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001712/10.95, allocations: 141.7 kB / 3.738 GB, free: 35.58 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5706/11.53, allocations: 82.91 MB / 3.819 GB, free: 44.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/11.53, allocations: 1.108 MB / 3.82 GB, free: 44.1 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/11.53, allocations: 0.7022 MB / 3.821 GB, free: 44.09 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01948/11.55, allocations: 8.318 MB / 3.829 GB, free: 39.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.139e-05/11.55, allocations: 49.47 kB / 3.829 GB, free: 38.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 3.928e-06/11.55, allocations: 0 / 3.829 GB, free: 38.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=126): time 0.01419/11.56, allocations: 5.053 MB / 3.834 GB, free: 38.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/11.56, allocations: 149.1 kB / 3.834 GB, free: 38.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/11.57, allocations: 0.7833 MB / 3.835 GB, free: 38.15 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002086/11.57, allocations: 27.2 kB / 3.835 GB, free: 38.12 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006465/11.57, allocations: 0.7358 MB / 3.836 GB, free: 37.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004392/11.57, allocations: 429.2 kB / 3.836 GB, free: 37.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.752e-05/11.57, allocations: 1.062 kB / 3.836 GB, free: 37.61 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/11.57, allocations: 367.6 kB / 3.836 GB, free: 37.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/11.57, allocations: 0.7449 MB / 3.837 GB, free: 37.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/11.57, allocations: 1.115 MB / 3.838 GB, free: 36.9 MB / 474.7 MB 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.01021/11.58, allocations: 4.147 MB / 3.842 GB, free: 36.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/11.58, allocations: 5.875 kB / 3.842 GB, free: 36.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005802/11.59, allocations: 2.719 MB / 3.845 GB, free: 36.52 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009651/11.59, allocations: 4.01 MB / 3.849 GB, free: 32.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-05/11.59, allocations: 7.375 kB / 3.849 GB, free: 32.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/11.59, allocations: 497.4 kB / 3.849 GB, free: 32.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/11.59, allocations: 379.7 kB / 3.85 GB, free: 32.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002101/11.59, allocations: 2.951 MB / 3.853 GB, free: 30.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/11.59, allocations: 184.8 kB / 3.853 GB, free: 30.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002458/11.59, allocations: 76.41 kB / 3.853 GB, free: 30.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/11.59, allocations: 4.5 kB / 3.853 GB, free: 30.22 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005584/11.6, allocations: 2.463 MB / 3.855 GB, free: 30.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.897e-05/11.6, allocations: 7.781 kB / 3.855 GB, free: 30.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/11.6, allocations: 0.4901 MB / 3.856 GB, free: 30.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/11.6, allocations: 372.1 kB / 3.856 GB, free: 30.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/11.6, allocations: 2.952 MB / 3.859 GB, free: 28.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/11.61, allocations: 177 kB / 3.859 GB, free: 28.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/11.61, allocations: 74.14 kB / 3.859 GB, free: 28.04 MB / 474.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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.0006322/11.61, allocations: 161.5 kB / 3.859 GB, free: 27.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004595/11.61, allocations: 128.6 kB / 3.859 GB, free: 27.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006577/11.61, allocations: 4.782 MB / 3.864 GB, free: 27.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.802e-05/11.61, allocations: 54.7 kB / 3.864 GB, free: 27.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/11.61, allocations: 3.953 kB / 3.864 GB, free: 27.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004637/11.62, allocations: 4.403 MB / 3.868 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/11.63, allocations: 7.545 MB / 3.876 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/11.63, allocations: 2.969 kB / 3.876 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/11.63, allocations: 265.4 kB / 3.876 GB, free: 25.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001533/11.63, allocations: 0.5235 MB / 3.877 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001401/11.63, allocations: 24.53 kB / 3.877 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001998/11.64, allocations: 3.043 MB / 3.88 GB, free: 23.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/11.64, allocations: 7.312 kB / 3.88 GB, free: 23.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006703/11.64, allocations: 4.819 MB / 3.884 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/11.64, allocations: 0.4949 MB / 3.885 GB, free: 22.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004907/11.64, allocations: 11.58 kB / 3.885 GB, free: 22.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/11.65, allocations: 138.2 kB / 3.885 GB, free: 22.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002597/11.65, allocations: 124.3 kB / 3.885 GB, free: 22.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/11.65, allocations: 53.05 kB / 3.885 GB, free: 22.88 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001297/11.65, allocations: 0.6785 MB / 3.886 GB, free: 22.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.6e-07/11.65, allocations: 2.812 kB / 3.886 GB, free: 22.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01062/11.66, allocations: 2.081 MB / 3.888 GB, free: 22.67 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.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 (122): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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 Backend phase and start with SimCode phase: time 0.01263/11.67, allocations: 2.346 MB / 3.89 GB, free: 22.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006944/11.68, allocations: 3.353 MB / 3.893 GB, free: 22.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/11.68, allocations: 0 / 3.893 GB, free: 22.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002701/11.68, allocations: 1.597 MB / 3.895 GB, free: 22.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/11.68, allocations: 0.5791 MB / 3.895 GB, free: 22.37 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/11.7, allocations: 4.147 MB / 3.9 GB, free: 21.51 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001884/11.7, allocations: 1.776 MB / 3.901 GB, free: 20.75 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004462/11.7, allocations: 2.084 MB / 3.903 GB, free: 20.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/11.7, allocations: 112.8 kB / 3.903 GB, free: 20.67 MB / 474.7 MB Notification: Performance of SimCode: time 3.176e-06/11.7, allocations: 0 / 3.903 GB, free: 20.67 MB / 474.7 MB Notification: Performance of Templates: time 0.09026/11.79, allocations: 59.61 MB / 3.962 GB, free: 5.324 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches