Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001004, allocations: 198.4 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.5 MB / 244.1 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009848/0.000985, allocations: 110.3 kB / 296.2 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3407/0.3407, allocations: 44.82 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002668, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3627, allocations: 62.96 MB / 0.5165 GB, free: 37.36 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.464/5.827, allocations: 2.831 GB / 3.348 GB, free: 156.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/5.827, allocations: 89.11 kB / 3.348 GB, free: 156 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.459/7.286, allocations: 0.5572 GB / 3.905 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.144e-06/7.286, allocations: 0 / 3.905 GB, free: 9.422 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001131/7.286, allocations: 39.12 kB / 3.905 GB, free: 9.387 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.008079/7.294, allocations: 3.038 MB / 3.908 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/7.294, allocations: 12.03 kB / 3.908 GB, free: 6.297 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003285/7.297, allocations: 0.5414 MB / 3.908 GB, free: 5.754 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/7.312, allocations: 9.486 MB / 3.918 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/7.312, allocations: 108.2 kB / 3.918 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/7.312, allocations: 126.2 kB / 3.918 GB, free: 12.75 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004702/7.317, allocations: 2.313 MB / 3.92 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.758e-05/7.317, allocations: 3.906 kB / 3.92 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/7.317, allocations: 58.41 kB / 3.92 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/7.317, allocations: 106.2 kB / 3.92 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00479/7.322, allocations: 2.062 MB / 3.922 GB, free: 8.078 MB / 0.5573 GB 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.2636/7.586, allocations: 9.779 MB / 3.932 GB, free: 49.5 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/7.589, allocations: 1.419 MB / 3.933 GB, free: 49.48 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/7.59, allocations: 0.6984 MB / 3.934 GB, free: 49.47 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0405/7.631, allocations: 27 MB / 3.96 GB, free: 31.94 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002905/7.634, allocations: 1.069 MB / 3.961 GB, free: 31.86 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=96): time 6.002e-06/7.634, allocations: 1.531 kB / 3.961 GB, free: 31.86 MB / 0.5573 GB Notification: Performance of matching and sorting (n=104): time 0.0134/7.647, allocations: 5.23 MB / 3.967 GB, free: 31.33 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/7.647, allocations: 275.4 kB / 3.967 GB, free: 31.02 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/7.649, allocations: 1.162 MB / 3.968 GB, free: 30.86 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001923/7.649, allocations: 46.2 kB / 3.968 GB, free: 30.82 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000551/7.65, allocations: 0.641 MB / 3.969 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/7.65, allocations: 355.4 kB / 3.969 GB, free: 30.45 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.314e-05/7.65, allocations: 29.98 kB / 3.969 GB, free: 30.45 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.138e-05/7.65, allocations: 356.5 kB / 3.969 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/7.652, allocations: 0.6933 MB / 3.97 GB, free: 30.14 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/7.654, allocations: 0.9928 MB / 3.971 GB, free: 29.83 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/7.657, allocations: 1.711 MB / 3.973 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/7.657, allocations: 6.062 kB / 3.973 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003657/7.66, allocations: 2.033 MB / 3.975 GB, free: 29.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001511/7.66, allocations: 331.8 kB / 3.975 GB, free: 28.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/7.661, allocations: 9.812 kB / 3.975 GB, free: 28.97 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000467/7.661, allocations: 134 kB / 3.975 GB, free: 28.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/7.662, allocations: 324 kB / 3.975 GB, free: 28.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006582/7.663, allocations: 1.249 MB / 3.977 GB, free: 27.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/7.664, allocations: 155.9 kB / 3.977 GB, free: 27.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/7.665, allocations: 66.06 kB / 3.977 GB, free: 27.91 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/7.665, allocations: 6.812 kB / 3.977 GB, free: 27.91 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003689/7.668, allocations: 1.857 MB / 3.979 GB, free: 27.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.472e-05/7.668, allocations: 12.17 kB / 3.979 GB, free: 27.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004696/7.669, allocations: 137 kB / 3.979 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/7.67, allocations: 314.5 kB / 3.979 GB, free: 27.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006587/7.671, allocations: 1.26 MB / 3.98 GB, free: 26.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/7.672, allocations: 154.5 kB / 3.98 GB, free: 26.78 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/7.672, allocations: 57.92 kB / 3.98 GB, free: 26.78 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001042/7.673, allocations: 0.5417 MB / 3.981 GB, free: 26.55 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/7.674, allocations: 142.5 kB / 3.981 GB, free: 26.48 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006473/7.68, allocations: 4.814 MB / 3.986 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.054e-05/7.68, allocations: 54.16 kB / 3.986 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/7.68, allocations: 2.75 kB / 3.986 GB, free: 26.04 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005865/7.686, allocations: 4.046 MB / 3.99 GB, free: 25.6 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009641/7.696, allocations: 6.877 MB / 3.997 GB, free: 25.08 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/7.696, allocations: 0 / 3.997 GB, free: 25.08 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/7.697, allocations: 244 kB / 3.997 GB, free: 25.08 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006985/7.698, allocations: 192.8 kB / 3.997 GB, free: 25.06 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/7.698, allocations: 39.12 kB / 3.997 GB, free: 25.06 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006054/7.698, allocations: 1.293 MB / 3.998 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/7.698, allocations: 0 / 3.998 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005804/7.704, allocations: 4.451 MB / 4.003 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/7.705, allocations: 0.5542 MB / 4.003 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/7.706, allocations: 31.88 kB / 4.003 GB, free: 23.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009828/7.707, allocations: 125.8 kB / 4.003 GB, free: 23.37 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/7.707, allocations: 94.67 kB / 4.003 GB, free: 23.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/7.707, allocations: 44.3 kB / 4.003 GB, free: 23.37 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001303/7.708, allocations: 0.9865 MB / 4.004 GB, free: 23.26 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.81e-07/7.708, allocations: 0 / 4.004 GB, free: 23.26 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007789/7.716, allocations: 2.144 MB / 4.007 GB, free: 23.26 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009962/7.726, allocations: 2.294 MB / 4.009 GB, free: 23.03 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006094/7.732, allocations: 3.233 MB / 4.012 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/7.732, allocations: 0 / 4.012 GB, free: 22.79 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002054/7.734, allocations: 1.489 MB / 4.013 GB, free: 22.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003811/7.738, allocations: 0.6506 MB / 4.014 GB, free: 22.71 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007183/7.745, allocations: 5.723 MB / 4.02 GB, free: 20.51 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009542/7.746, allocations: 1.66 MB / 4.021 GB, free: 19.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006632/7.747, allocations: 140.3 kB / 4.021 GB, free: 19.77 MB / 0.5573 GB Notification: Performance of SimCode: time 8.21e-07/7.747, allocations: 3.844 kB / 4.021 GB, free: 19.77 MB / 0.5573 GB Notification: Performance of Templates: time 0.08108/7.828, allocations: 67.02 MB / 4.087 GB, free: 15.3 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches