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.001002/0.001002, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.298/1.298, allocations: 221.4 MB / 235.5 MB, free: 2.91 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.0008856/0.0008854, allocations: 99.03 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.48e-05/3.484e-05, allocations: 0 / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 50.42 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.649/7.755, allocations: 2.801 GB / 3.186 GB, free: 21.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/7.756, allocations: 79.86 kB / 3.186 GB, free: 20.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.701/10.46, allocations: 0.5555 GB / 3.741 GB, free: 30.83 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.779e-06/10.46, allocations: 1.062 kB / 3.741 GB, free: 30.83 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002061/10.46, allocations: 44.8 kB / 3.741 GB, free: 30.83 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.01372/10.47, allocations: 2.802 MB / 3.744 GB, free: 29.81 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/10.47, allocations: 11.25 kB / 3.744 GB, free: 29.81 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005309/10.48, allocations: 0.6029 MB / 3.745 GB, free: 29.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004816/10.48, allocations: 1.436 MB / 3.746 GB, free: 29.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/10.48, allocations: 147.2 kB / 3.746 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004109/10.48, allocations: 145.6 kB / 3.747 GB, free: 29.37 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006306/10.49, allocations: 2.79 MB / 3.749 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.032e-05/10.49, allocations: 6.812 kB / 3.749 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002151/10.49, allocations: 68.08 kB / 3.749 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000205/10.49, allocations: 126.1 kB / 3.749 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005624/10.49, allocations: 2.497 MB / 3.752 GB, free: 28.89 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.01392/10.51, allocations: 11.72 MB / 3.763 GB, free: 21.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003355/10.51, allocations: 1.613 MB / 3.765 GB, free: 21.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009777/10.51, allocations: 0.7581 MB / 3.766 GB, free: 21.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01553/10.53, allocations: 8.32 MB / 3.774 GB, free: 16.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/10.53, allocations: 51.94 kB / 3.774 GB, free: 16.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 3.456e-06/10.53, allocations: 0 / 3.774 GB, free: 16.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.01725/10.54, allocations: 6.311 MB / 3.78 GB, free: 15.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/10.55, allocations: 141.7 kB / 3.78 GB, free: 15.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/10.55, allocations: 1.055 MB / 3.781 GB, free: 15.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/10.55, allocations: 49.33 kB / 3.781 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005313/10.55, allocations: 0.7097 MB / 3.782 GB, free: 15.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003645/10.55, allocations: 460.4 kB / 3.782 GB, free: 14.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.174e-05/10.55, allocations: 35.5 kB / 3.782 GB, free: 14.99 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/10.55, allocations: 364.8 kB / 3.783 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/10.55, allocations: 0.7732 MB / 3.783 GB, free: 14.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/10.55, allocations: 1.147 MB / 3.785 GB, free: 14.27 MB / 458.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.02158/10.57, allocations: 6.031 MB / 3.79 GB, free: 14.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/10.57, allocations: 3.625 kB / 3.79 GB, free: 14.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004064/10.58, allocations: 2.455 MB / 3.793 GB, free: 13.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00203/10.58, allocations: 4.027 MB / 3.797 GB, free: 25.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/10.58, allocations: 7.562 kB / 3.797 GB, free: 25.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/10.58, allocations: 0.5092 MB / 3.797 GB, free: 25.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/10.58, allocations: 373.6 kB / 3.798 GB, free: 25.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/10.58, allocations: 2.91 MB / 3.8 GB, free: 23.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00193/10.59, allocations: 203.8 kB / 3.801 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/10.59, allocations: 83.66 kB / 3.801 GB, free: 23.58 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/10.59, allocations: 1.875 kB / 3.801 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00358/10.59, allocations: 2.249 MB / 3.803 GB, free: 23.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/10.59, allocations: 9.781 kB / 3.803 GB, free: 23.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/10.59, allocations: 0.5041 MB / 3.803 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/10.59, allocations: 368.8 kB / 3.804 GB, free: 23.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00225/10.59, allocations: 2.912 MB / 3.807 GB, free: 21.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/10.6, allocations: 196.4 kB / 3.807 GB, free: 21.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/10.6, allocations: 76.58 kB / 3.807 GB, free: 21.39 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. 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 () * 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.0004831/10.6, allocations: 211.9 kB / 3.807 GB, free: 21.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002562/10.6, allocations: 144.1 kB / 3.807 GB, free: 21.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006258/10.6, allocations: 5.462 MB / 3.813 GB, free: 20.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.901e-05/10.6, allocations: 57.59 kB / 3.813 GB, free: 20.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/10.6, allocations: 3.469 kB / 3.813 GB, free: 20.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004989/10.61, allocations: 4.981 MB / 3.818 GB, free: 19.93 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/10.62, allocations: 8.514 MB / 3.826 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/10.62, allocations: 4.375 kB / 3.826 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/10.62, allocations: 292.4 kB / 3.826 GB, free: 18.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/10.62, allocations: 0.5394 MB / 3.827 GB, free: 18.94 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/10.62, allocations: 52.11 kB / 3.827 GB, free: 18.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/10.62, allocations: 2.903 MB / 3.83 GB, free: 16.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/10.62, allocations: 3.844 kB / 3.83 GB, free: 16.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006774/10.63, allocations: 5.21 MB / 3.835 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/10.63, allocations: 0.5345 MB / 3.835 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/10.63, allocations: 33.55 kB / 3.835 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/10.63, allocations: 169.7 kB / 3.835 GB, free: 15.51 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/10.63, allocations: 133.8 kB / 3.835 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/10.63, allocations: 50.69 kB / 3.836 GB, free: 15.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001484/10.64, allocations: 0.8978 MB / 3.836 GB, free: 15.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.51e-07/10.64, allocations: 0 / 3.836 GB, free: 15.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01015/10.65, allocations: 2.182 MB / 3.839 GB, free: 14.68 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: 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 () * 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.009397/10.66, allocations: 2.253 MB / 3.841 GB, free: 14.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005594/10.66, allocations: 3.566 MB / 3.844 GB, free: 13.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/10.66, allocations: 2.844 kB / 3.844 GB, free: 13.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/10.66, allocations: 1.73 MB / 3.846 GB, free: 12.31 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/10.67, allocations: 0.7499 MB / 3.847 GB, free: 12.18 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006302/10.67, allocations: 4.439 MB / 3.851 GB, free: 10.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/10.68, allocations: 1.812 MB / 3.853 GB, free: 9.684 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003683/10.68, allocations: 2.103 MB / 3.855 GB, free: 9.637 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/10.68, allocations: 112.7 kB / 3.855 GB, free: 9.621 MB / 474.7 MB Notification: Performance of SimCode: time 9.22e-07/10.68, allocations: 0 / 3.855 GB, free: 9.621 MB / 474.7 MB Notification: Performance of Templates: time 0.4493/11.13, allocations: 72.67 MB / 3.926 GB, free: 59.13 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/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