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.001239/0.001239, allocations: 182.7 kB / 16.39 MB, free: 5.762 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.282/1.282, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0007665/0.0007668, allocations: 97.02 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002542, allocations: 7.938 kB / 351.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2488, allocations: 50.4 MB / 401.5 MB, free: 32.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.441/6.69, allocations: 2.801 GB / 3.193 GB, free: 109.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/6.69, allocations: 83.94 kB / 3.193 GB, free: 109.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.167/8.857, allocations: 0.5569 GB / 3.75 GB, free: 34.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.713e-06/8.857, allocations: 0 / 3.75 GB, free: 34.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001186/8.857, allocations: 44.02 kB / 3.75 GB, free: 34.24 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.01179/8.869, allocations: 2.993 MB / 3.753 GB, free: 32.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/8.869, allocations: 9.938 kB / 3.753 GB, free: 32.74 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004903/8.874, allocations: 0.5937 MB / 3.754 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00438/8.878, allocations: 1.448 MB / 3.755 GB, free: 32.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/8.878, allocations: 144.1 kB / 3.755 GB, free: 32.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/8.879, allocations: 144.5 kB / 3.755 GB, free: 32.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006261/8.885, allocations: 2.838 MB / 3.758 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/8.885, allocations: 3.938 kB / 3.758 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001945/8.885, allocations: 66.81 kB / 3.758 GB, free: 31.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/8.885, allocations: 130 kB / 3.758 GB, free: 31.74 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005634/8.891, allocations: 2.653 MB / 3.761 GB, free: 31.69 MB / 458.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.01373/8.905, allocations: 11.71 MB / 3.772 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004033/8.909, allocations: 1.741 MB / 3.774 GB, free: 22.52 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01508/8.924, allocations: 8.316 MB / 3.782 GB, free: 17.08 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.589e-05/8.924, allocations: 47.53 kB / 3.782 GB, free: 17.03 MB / 458.7 MB Notification: Performance of pre-optimization done (n=114): time 3.777e-06/8.924, allocations: 3.906 kB / 3.782 GB, free: 17.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.02007/8.944, allocations: 7.451 MB / 3.789 GB, free: 14.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/8.944, allocations: 149 kB / 3.79 GB, free: 14.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/8.946, allocations: 1.057 MB / 3.791 GB, free: 13.69 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/8.946, allocations: 53.7 kB / 3.791 GB, free: 13.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004166/8.946, allocations: 0.7141 MB / 3.791 GB, free: 12.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003347/8.947, allocations: 459.2 kB / 3.792 GB, free: 12.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/8.947, allocations: 32 kB / 3.792 GB, free: 12.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/8.947, allocations: 367.9 kB / 3.792 GB, free: 12.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/8.948, allocations: 0.8828 MB / 3.793 GB, free: 11.47 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/8.95, allocations: 1.266 MB / 3.794 GB, free: 10.23 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.0258/8.976, allocations: 6.514 MB / 3.801 GB, free: 5.316 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/8.976, allocations: 8 kB / 3.801 GB, free: 5.309 MB / 458.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004926/8.981, allocations: 2.683 MB / 3.803 GB, free: 3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001091/8.982, allocations: 4.036 MB / 3.807 GB, free: 14.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/8.982, allocations: 15.94 kB / 3.807 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/8.984, allocations: 0.5118 MB / 3.808 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/8.985, allocations: 382.6 kB / 3.808 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/8.988, allocations: 2.914 MB / 3.811 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/8.99, allocations: 204.9 kB / 3.811 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/8.99, allocations: 74.84 kB / 3.811 GB, free: 10.89 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/8.99, allocations: 6.031 kB / 3.811 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005185/8.995, allocations: 2.488 MB / 3.814 GB, free: 8.762 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/8.995, allocations: 12 kB / 3.814 GB, free: 8.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/8.997, allocations: 0.5225 MB / 3.814 GB, free: 8.336 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/8.998, allocations: 367.9 kB / 3.814 GB, free: 8.031 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/9.001, allocations: 2.912 MB / 3.817 GB, free: 5.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001932/9.003, allocations: 191.8 kB / 3.817 GB, free: 5.047 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/9.003, allocations: 79.59 kB / 3.818 GB, free: 4.977 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 () * 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.00146/9.004, allocations: 0.5902 MB / 3.818 GB, free: 4.438 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/9.005, allocations: 146.2 kB / 3.818 GB, free: 4.293 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008397/9.013, allocations: 5.58 MB / 3.824 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.684e-05/9.013, allocations: 63.06 kB / 3.824 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/9.013, allocations: 2.625 kB / 3.824 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006918/9.02, allocations: 5.099 MB / 3.829 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01474/9.035, allocations: 8.63 MB / 3.837 GB, free: 3.141 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/9.035, allocations: 4 kB / 3.837 GB, free: 3.137 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/9.036, allocations: 291.8 kB / 3.837 GB, free: 2.852 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/9.038, allocations: 0.5534 MB / 3.838 GB, free: 2.285 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/9.038, allocations: 43.98 kB / 3.838 GB, free: 2.242 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.366/9.404, allocations: 2.917 MB / 3.841 GB, free: 63.63 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/9.405, allocations: 2.781 kB / 3.841 GB, free: 63.63 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008222/9.413, allocations: 5.547 MB / 3.846 GB, free: 63.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/9.415, allocations: 0.538 MB / 3.847 GB, free: 63.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002616/9.415, allocations: 36.69 kB / 3.847 GB, free: 63.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/9.416, allocations: 168 kB / 3.847 GB, free: 63.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/9.416, allocations: 126.5 kB / 3.847 GB, free: 63.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/9.416, allocations: 49.69 kB / 3.847 GB, free: 63.04 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001275/9.418, allocations: 0.9108 MB / 3.848 GB, free: 62.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/9.418, allocations: 3.438 kB / 3.848 GB, free: 62.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009758/9.427, allocations: 2.18 MB / 3.85 GB, free: 62.93 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.01221/9.44, allocations: 2.249 MB / 3.852 GB, free: 62.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008584/9.448, allocations: 3.846 MB / 3.856 GB, free: 62.76 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/9.448, allocations: 1.031 kB / 3.856 GB, free: 62.76 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/9.451, allocations: 1.828 MB / 3.858 GB, free: 62.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004391/9.456, allocations: 0.7473 MB / 3.859 GB, free: 62.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/9.467, allocations: 6.405 MB / 3.865 GB, free: 60.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002169/9.469, allocations: 1.804 MB / 3.867 GB, free: 59.72 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00438/9.474, allocations: 1.951 MB / 3.869 GB, free: 59.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004344/9.474, allocations: 139 kB / 3.869 GB, free: 59.69 MB / 490.7 MB Notification: Performance of SimCode: time 1.653e-06/9.474, allocations: 0 / 3.869 GB, free: 59.69 MB / 490.7 MB Notification: Performance of Templates: time 0.09512/9.569, allocations: 68.4 MB / 3.936 GB, free: 56.48 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