Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002867/0.002867, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.975/2.975, allocations: 226.5 MB / 245.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00143/0.00143, allocations: 100.2 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003789, allocations: 4 kB / 357.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5648/0.5652, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 12.4/12.97, allocations: 2.802 GB / 3.201 GB, free: 116.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006981/12.97, allocations: 81.41 kB / 3.201 GB, free: 116.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.826/16.79, allocations: 0.5334 GB / 3.735 GB, free: 43.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 6.502e-06/16.79, allocations: 0 / 3.735 GB, free: 43.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003483/16.79, allocations: 50.11 kB / 3.735 GB, free: 43.07 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.03178/16.82, allocations: 2.983 MB / 3.737 GB, free: 41.57 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.197e-05/16.82, allocations: 10.88 kB / 3.737 GB, free: 41.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01266/16.84, allocations: 0.598 MB / 3.738 GB, free: 41.48 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02807/16.87, allocations: 5.99 MB / 3.744 GB, free: 41.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005935/16.87, allocations: 137.4 kB / 3.744 GB, free: 41.02 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/16.87, allocations: 150.1 kB / 3.744 GB, free: 41.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01709/16.88, allocations: 2.855 MB / 3.747 GB, free: 40.55 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.646e-05/16.88, allocations: 9.656 kB / 3.747 GB, free: 40.55 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004416/16.89, allocations: 63.81 kB / 3.747 GB, free: 40.55 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002966/16.89, allocations: 131.8 kB / 3.747 GB, free: 40.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/16.9, allocations: 2.643 MB / 3.75 GB, free: 40.53 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.03662/16.93, allocations: 11.69 MB / 3.761 GB, free: 33.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008752/16.94, allocations: 1.749 MB / 3.763 GB, free: 33.36 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002747/16.95, allocations: 0.8747 MB / 3.764 GB, free: 33.34 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02622/16.97, allocations: 9.018 MB / 3.773 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.998e-05/16.97, allocations: 44.44 kB / 3.773 GB, free: 27.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=114): time 7.474e-06/16.97, allocations: 0 / 3.773 GB, free: 27.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.04038/17.01, allocations: 7.454 MB / 3.78 GB, free: 26.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/17.01, allocations: 148.7 kB / 3.78 GB, free: 26.45 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004382/17.02, allocations: 1.193 MB / 3.781 GB, free: 26.28 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005397/17.02, allocations: 46.48 kB / 3.781 GB, free: 26.25 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008923/17.02, allocations: 0.7118 MB / 3.782 GB, free: 25.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007716/17.02, allocations: 458.5 kB / 3.782 GB, free: 25.65 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/17.02, allocations: 31.22 kB / 3.782 GB, free: 25.65 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/17.02, allocations: 367.6 kB / 3.783 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0026/17.02, allocations: 0.8883 MB / 3.784 GB, free: 25.33 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007074/17.03, allocations: 1.264 MB / 3.785 GB, free: 24.91 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.0457/17.08, allocations: 8.294 MB / 3.793 GB, free: 22.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/17.08, allocations: 7.875 kB / 3.793 GB, free: 22.69 MB / 474.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.01188/17.09, allocations: 2.683 MB / 3.796 GB, free: 21.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006213/17.09, allocations: 394.5 kB / 3.796 GB, free: 21.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.991e-05/17.09, allocations: 8.781 kB / 3.796 GB, free: 21.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/17.09, allocations: 0.5195 MB / 3.796 GB, free: 21.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/17.09, allocations: 375.7 kB / 3.797 GB, free: 21.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003096/17.1, allocations: 2.909 MB / 3.8 GB, free: 18.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/17.1, allocations: 202.4 kB / 3.8 GB, free: 18.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003887/17.1, allocations: 73.75 kB / 3.8 GB, free: 18.58 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/17.1, allocations: 7.406 kB / 3.8 GB, free: 18.58 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007684/17.11, allocations: 2.475 MB / 3.802 GB, free: 17.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-05/17.11, allocations: 19.55 kB / 3.802 GB, free: 17.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/17.11, allocations: 0.5076 MB / 3.803 GB, free: 17.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/17.11, allocations: 371.2 kB / 3.803 GB, free: 17.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/17.12, allocations: 2.917 MB / 3.806 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009214/17.13, allocations: 204.5 kB / 3.806 GB, free: 15.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008624/17.13, allocations: 77 kB / 3.806 GB, free: 15.05 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: 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.002588/17.13, allocations: 0.5822 MB / 3.807 GB, free: 14.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006474/17.13, allocations: 148.6 kB / 3.807 GB, free: 14.61 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/17.14, allocations: 5.589 MB / 3.812 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.702e-05/17.14, allocations: 53.8 kB / 3.813 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.209e-05/17.14, allocations: 0 / 3.813 GB, free: 10.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01063/17.15, allocations: 5.103 MB / 3.818 GB, free: 6.301 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0298/17.18, allocations: 8.636 MB / 3.826 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.901e-05/17.18, allocations: 4 kB / 3.826 GB, free: 14.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/17.19, allocations: 299.9 kB / 3.826 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002791/17.19, allocations: 0.5437 MB / 3.827 GB, free: 14.24 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004264/17.19, allocations: 46.98 kB / 3.827 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003864/17.19, allocations: 2.923 MB / 3.83 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/17.19, allocations: 0 / 3.83 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02028/17.21, allocations: 5.45 MB / 3.835 GB, free: 6.473 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00247/17.22, allocations: 0.529 MB / 3.836 GB, free: 5.988 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/17.22, allocations: 39.64 kB / 3.836 GB, free: 5.957 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002403/17.22, allocations: 169.1 kB / 3.836 GB, free: 5.828 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005353/17.22, allocations: 132.5 kB / 3.836 GB, free: 5.746 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/17.22, allocations: 53.81 kB / 3.836 GB, free: 5.699 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002666/17.22, allocations: 0.8953 MB / 3.837 GB, free: 4.945 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.31e-07/17.22, allocations: 0 / 3.837 GB, free: 4.945 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02086/17.24, allocations: 2.115 MB / 3.839 GB, free: 2.871 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.02318/17.27, allocations: 2.141 MB / 3.841 GB, free: 1.207 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.705/17.97, allocations: 3.839 MB / 3.845 GB, free: 56.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.851e-05/17.97, allocations: 4.906 kB / 3.845 GB, free: 56.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009655/17.98, allocations: 1.815 MB / 3.846 GB, free: 56.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009338/17.99, allocations: 0.75 MB / 3.847 GB, free: 56.39 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/18.01, allocations: 6.398 MB / 3.853 GB, free: 54.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003438/18.02, allocations: 1.747 MB / 3.855 GB, free: 53.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/18.02, allocations: 143.4 kB / 3.855 GB, free: 53.36 MB / 490.7 MB Notification: Performance of SimCode: time 2.284e-06/18.02, allocations: 0 / 3.855 GB, free: 53.36 MB / 490.7 MB Notification: Performance of Templates: time 0.2164/18.24, allocations: 87.03 MB / 3.94 GB, free: 48.18 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.NonCircularPipes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches