Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009736/0.0009736, allocations: 176.5 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009477/0.0009476, allocations: 82.69 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.388e-05/1.382e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08281/0.08284, allocations: 47.58 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.875/6.958, allocations: 2.796 GB / 3.15 GB, free: 68.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/6.958, allocations: 75.95 kB / 3.15 GB, free: 68.72 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.246/9.204, allocations: 0.5441 GB / 3.694 GB, free: 12.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.844e-06/9.204, allocations: 0 / 3.694 GB, free: 12.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001393/9.204, allocations: 52.12 kB / 3.694 GB, free: 12.11 MB / 442.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.01534/9.22, allocations: 2.792 MB / 3.697 GB, free: 9.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/9.22, allocations: 8.031 kB / 3.697 GB, free: 9.262 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005179/9.225, allocations: 0.5989 MB / 3.698 GB, free: 8.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004191/9.229, allocations: 1.44 MB / 3.699 GB, free: 7.199 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/9.229, allocations: 75.98 kB / 3.699 GB, free: 7.125 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/9.23, allocations: 87.91 kB / 3.699 GB, free: 7.039 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003675/9.233, allocations: 1.974 MB / 3.701 GB, free: 5.062 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003846/9.237, allocations: 2.179 MB / 3.703 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/9.237, allocations: 3.938 kB / 3.703 GB, free: 2.719 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/9.237, allocations: 8 kB / 3.703 GB, free: 2.711 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/9.238, allocations: 122.7 kB / 3.704 GB, free: 2.59 MB / 442.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.5634/9.801, allocations: 82.9 MB / 3.784 GB, free: 30.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/9.803, allocations: 1.108 MB / 3.786 GB, free: 30.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000846/9.804, allocations: 0.7062 MB / 3.786 GB, free: 30.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01754/9.821, allocations: 8.31 MB / 3.794 GB, free: 24.71 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/9.821, allocations: 46.06 kB / 3.794 GB, free: 24.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=108): time 3.276e-06/9.821, allocations: 4 kB / 3.794 GB, free: 24.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=126): time 0.01323/9.835, allocations: 5.039 MB / 3.799 GB, free: 24.04 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/9.835, allocations: 145.3 kB / 3.799 GB, free: 23.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/9.836, allocations: 0.7943 MB / 3.8 GB, free: 23.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/9.836, allocations: 28.98 kB / 3.8 GB, free: 23.69 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005553/9.837, allocations: 0.7382 MB / 3.801 GB, free: 23.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003975/9.837, allocations: 425 kB / 3.801 GB, free: 23.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/9.837, allocations: 0 / 3.801 GB, free: 23.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/9.837, allocations: 365.1 kB / 3.802 GB, free: 22.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/9.838, allocations: 0.7439 MB / 3.802 GB, free: 22.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/9.84, allocations: 1.114 MB / 3.804 GB, free: 22.46 MB / 490.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.01814/9.858, allocations: 5.648 MB / 3.809 GB, free: 22.15 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/9.858, allocations: 7.969 kB / 3.809 GB, free: 22.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01331/9.871, allocations: 4.206 MB / 3.813 GB, free: 21.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002033/9.873, allocations: 4.011 MB / 3.817 GB, free: 17.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/9.873, allocations: 11.78 kB / 3.817 GB, free: 17.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/9.875, allocations: 497.1 kB / 3.818 GB, free: 17.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/9.876, allocations: 374.5 kB / 3.818 GB, free: 17.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00273/9.879, allocations: 2.954 MB / 3.821 GB, free: 15.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002197/9.881, allocations: 187.6 kB / 3.821 GB, free: 15.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/9.881, allocations: 78.5 kB / 3.821 GB, free: 15.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/9.881, allocations: 3.938 kB / 3.821 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01207/9.893, allocations: 3.952 MB / 3.825 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/9.893, allocations: 14.69 kB / 3.825 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/9.895, allocations: 493.1 kB / 3.825 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/9.896, allocations: 376.5 kB / 3.826 GB, free: 15.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002548/9.899, allocations: 2.95 MB / 3.829 GB, free: 13.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/9.901, allocations: 176.8 kB / 3.829 GB, free: 13.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/9.901, allocations: 73.7 kB / 3.829 GB, free: 13.31 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: 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.0006768/9.902, allocations: 156.2 kB / 3.829 GB, free: 13.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/9.902, allocations: 130.7 kB / 3.829 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006466/9.908, allocations: 4.786 MB / 3.834 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-05/9.908, allocations: 58.02 kB / 3.834 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/9.908, allocations: 3.5 kB / 3.834 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005076/9.914, allocations: 4.402 MB / 3.838 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/9.928, allocations: 7.531 MB / 3.846 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/9.928, allocations: 1.203 kB / 3.846 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/9.929, allocations: 266.2 kB / 3.846 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/9.931, allocations: 0.5186 MB / 3.846 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/9.931, allocations: 24.5 kB / 3.846 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003038/9.934, allocations: 3.043 MB / 3.849 GB, free: 24.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/9.934, allocations: 4.062 kB / 3.849 GB, free: 24.94 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006728/9.941, allocations: 4.827 MB / 3.854 GB, free: 24.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/9.942, allocations: 0.493 MB / 3.855 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/9.942, allocations: 13.89 kB / 3.855 GB, free: 24.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/9.943, allocations: 140.6 kB / 3.855 GB, free: 24.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/9.944, allocations: 117.7 kB / 3.855 GB, free: 24.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.596e-05/9.944, allocations: 50.88 kB / 3.855 GB, free: 24.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001074/9.945, allocations: 0.6821 MB / 3.856 GB, free: 23.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/9.945, allocations: 0 / 3.856 GB, free: 23.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009956/9.955, allocations: 2.084 MB / 3.858 GB, free: 23.9 MB / 0.4948 GB 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.01411/9.969, allocations: 2.345 MB / 3.86 GB, free: 23.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006271/9.975, allocations: 3.352 MB / 3.863 GB, free: 23.52 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/9.975, allocations: 3.531 kB / 3.863 GB, free: 23.52 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00243/9.978, allocations: 1.594 MB / 3.865 GB, free: 23.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003312/9.981, allocations: 0.5704 MB / 3.865 GB, free: 23.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006906/9.988, allocations: 4.133 MB / 3.869 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001401/9.989, allocations: 1.776 MB / 3.871 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003736/9.993, allocations: 2.093 MB / 3.873 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003355/9.994, allocations: 107.5 kB / 3.873 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of SimCode: time 1.223e-06/9.994, allocations: 0 / 3.873 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of Templates: time 0.4352/10.43, allocations: 59.6 MB / 3.931 GB, free: 91.04 MB / 0.4948 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/NonCircularPipes/NonCircularPipes.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches