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.001394/0.001394, allocations: 172.2 kB / 17.39 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.3 MB / 241.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009301/0.0009303, allocations: 100.4 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003423, allocations: 11.94 kB / 352.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2241, allocations: 50.41 MB / 402.7 MB, free: 32.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.118/5.343, allocations: 2.801 GB / 3.195 GB, free: 124.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/5.343, allocations: 82.44 kB / 3.195 GB, free: 124.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.771/7.114, allocations: 0.534 GB / 3.729 GB, free: 6.547 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.763e-06/7.114, allocations: 0 / 3.729 GB, free: 6.547 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002033/7.114, allocations: 43.98 kB / 3.729 GB, free: 6.504 MB / 474.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.01197/7.126, allocations: 2.975 MB / 3.732 GB, free: 3.465 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/7.126, allocations: 8.031 kB / 3.732 GB, free: 3.457 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005001/7.131, allocations: 0.5998 MB / 3.732 GB, free: 2.855 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3495/7.48, allocations: 5.983 MB / 3.738 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/7.481, allocations: 139.8 kB / 3.738 GB, free: 37.35 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007864/7.481, allocations: 151.9 kB / 3.738 GB, free: 37.35 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007651/7.489, allocations: 2.845 MB / 3.741 GB, free: 36.89 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.845e-05/7.489, allocations: 7.5 kB / 3.741 GB, free: 36.89 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/7.49, allocations: 67.97 kB / 3.741 GB, free: 36.89 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/7.49, allocations: 129.7 kB / 3.741 GB, free: 36.89 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005595/7.495, allocations: 2.646 MB / 3.744 GB, free: 36.87 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01283/7.508, allocations: 11.69 MB / 3.755 GB, free: 29.83 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004233/7.512, allocations: 1.744 MB / 3.757 GB, free: 29.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/7.514, allocations: 0.8765 MB / 3.758 GB, free: 29.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01554/7.53, allocations: 8.295 MB / 3.766 GB, free: 24.73 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.304e-05/7.53, allocations: 48.78 kB / 3.766 GB, free: 24.69 MB / 474.7 MB Notification: Performance of pre-optimization done (n=114): time 3.857e-06/7.53, allocations: 0 / 3.766 GB, free: 24.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.02481/7.555, allocations: 7.464 MB / 3.773 GB, free: 23.97 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/7.555, allocations: 146.6 kB / 3.773 GB, free: 23.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/7.558, allocations: 1.19 MB / 3.775 GB, free: 23.65 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003082/7.559, allocations: 49.83 kB / 3.775 GB, free: 23.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/7.56, allocations: 0.7109 MB / 3.775 GB, free: 23.37 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006761/7.56, allocations: 461.8 kB / 3.776 GB, free: 23.14 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/7.56, allocations: 33.16 kB / 3.776 GB, free: 23.14 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/7.561, allocations: 369.6 kB / 3.776 GB, free: 22.84 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/7.562, allocations: 0.8849 MB / 3.777 GB, free: 22.84 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/7.564, allocations: 1.264 MB / 3.778 GB, free: 22.43 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: circular_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: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.02854/7.593, allocations: 8.469 MB / 3.787 GB, free: 21.82 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.895e-05/7.593, allocations: 3.812 kB / 3.787 GB, free: 21.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.006153/7.599, allocations: 2.678 MB / 3.789 GB, free: 21.65 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002569/7.6, allocations: 399.6 kB / 3.79 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/7.6, allocations: 10.91 kB / 3.79 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/7.601, allocations: 0.5132 MB / 3.79 GB, free: 21.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/7.603, allocations: 372.8 kB / 3.79 GB, free: 21.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/7.605, allocations: 2.916 MB / 3.793 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/7.606, allocations: 206 kB / 3.793 GB, free: 19.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/7.607, allocations: 75.97 kB / 3.794 GB, free: 19.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/7.607, allocations: 3 kB / 3.794 GB, free: 19.08 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004834/7.612, allocations: 2.485 MB / 3.796 GB, free: 19.01 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/7.612, allocations: 7.281 kB / 3.796 GB, free: 19.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/7.613, allocations: 0.5163 MB / 3.796 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/7.615, allocations: 376.7 kB / 3.797 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/7.618, allocations: 2.9 MB / 3.8 GB, free: 32.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/7.62, allocations: 202.9 kB / 3.8 GB, free: 32.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/7.62, allocations: 78.02 kB / 3.8 GB, free: 32.89 MB / 490.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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: 46 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,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,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 () * Number of clocked 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.001393/7.622, allocations: 0.5897 MB / 3.801 GB, free: 32.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004323/7.622, allocations: 149.5 kB / 3.801 GB, free: 32.63 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007905/7.63, allocations: 5.574 MB / 3.806 GB, free: 32.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.387e-05/7.63, allocations: 58.41 kB / 3.806 GB, free: 32.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/7.63, allocations: 0 / 3.806 GB, free: 32.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006202/7.636, allocations: 5.109 MB / 3.811 GB, free: 31.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/7.652, allocations: 8.607 MB / 3.82 GB, free: 30.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/7.652, allocations: 3.875 kB / 3.82 GB, free: 30.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/7.653, allocations: 291.1 kB / 3.82 GB, free: 30.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/7.655, allocations: 0.5543 MB / 3.82 GB, free: 30.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/7.655, allocations: 49.25 kB / 3.82 GB, free: 30.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002267/7.658, allocations: 2.915 MB / 3.823 GB, free: 28.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/7.658, allocations: 3.656 kB / 3.823 GB, free: 28.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007832/7.665, allocations: 5.444 MB / 3.829 GB, free: 27.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/7.667, allocations: 0.5291 MB / 3.829 GB, free: 27.69 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/7.667, allocations: 38.91 kB / 3.829 GB, free: 27.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/7.669, allocations: 167.5 kB / 3.829 GB, free: 27.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/7.669, allocations: 131.5 kB / 3.829 GB, free: 27.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/7.669, allocations: 51.02 kB / 3.829 GB, free: 27.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001626/7.671, allocations: 0.897 MB / 3.83 GB, free: 27.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.2e-07/7.671, allocations: 6.547 kB / 3.83 GB, free: 27.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009299/7.68, allocations: 2.094 MB / 3.832 GB, free: 27.49 MB / 490.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: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * 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.0113/7.692, allocations: 2.124 MB / 3.834 GB, free: 27.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008431/7.7, allocations: 3.845 MB / 3.838 GB, free: 27.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/7.7, allocations: 3.875 kB / 3.838 GB, free: 27.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002896/7.703, allocations: 1.826 MB / 3.84 GB, free: 27.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005224/7.708, allocations: 0.7579 MB / 3.841 GB, free: 27.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/7.718, allocations: 6.33 MB / 3.847 GB, free: 24.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/7.721, allocations: 1.764 MB / 3.849 GB, free: 24.12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003937/7.725, allocations: 1.944 MB / 3.851 GB, free: 24.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/7.725, allocations: 136.8 kB / 3.851 GB, free: 24.06 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/7.725, allocations: 4 kB / 3.851 GB, free: 24.06 MB / 490.7 MB Notification: Performance of Templates: time 0.4108/8.136, allocations: 69.81 MB / 3.919 GB, free: 51.59 MB / 490.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/jenkins1/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