Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 179.8 kB / 14.15 MB, free: 1.176 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.239/1.239, allocations: 221.3 MB / 236 MB, free: 2.938 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.0008758/0.0008757, allocations: 95.61 kB / 287 MB, free: 204 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1704/0.1704, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.192e-05, allocations: 4.219 kB / 451.8 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 61.91 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.338/6.479, allocations: 2.83 GB / 3.331 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/6.479, allocations: 80.94 kB / 3.332 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.492/8.971, allocations: 0.583 GB / 3.915 GB, free: 48.99 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.714e-06/8.971, allocations: 0 / 3.915 GB, free: 48.99 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001396/8.971, allocations: 41.41 kB / 3.915 GB, free: 48.98 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.0115/8.983, allocations: 2.857 MB / 3.917 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/8.983, allocations: 12.91 kB / 3.917 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004707/8.988, allocations: 0.537 MB / 3.918 GB, free: 47.46 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00466/8.992, allocations: 1.448 MB / 3.919 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/8.992, allocations: 105.2 kB / 3.919 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/8.993, allocations: 127.3 kB / 3.92 GB, free: 47.09 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004431/8.997, allocations: 2.272 MB / 3.922 GB, free: 46.7 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.633e-05/8.997, allocations: 7.125 kB / 3.922 GB, free: 46.7 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001622/8.997, allocations: 54.8 kB / 3.922 GB, free: 46.7 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/8.998, allocations: 109.1 kB / 3.922 GB, free: 46.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00364/9.001, allocations: 1.978 MB / 3.924 GB, free: 46.68 MB / 0.5417 GB 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.01242/9.014, allocations: 9.796 MB / 3.933 GB, free: 40.74 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/9.016, allocations: 1.355 MB / 3.935 GB, free: 40.71 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008262/9.017, allocations: 0.6249 MB / 3.935 GB, free: 40.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04225/9.059, allocations: 24.52 MB / 3.959 GB, free: 25.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002768/9.062, allocations: 1.058 MB / 3.96 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 4.529e-06/9.062, allocations: 1.5 kB / 3.96 GB, free: 25.68 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01055/9.073, allocations: 4.471 MB / 3.965 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/9.073, allocations: 269.9 kB / 3.965 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/9.075, allocations: 1.02 MB / 3.966 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000126/9.075, allocations: 46.52 kB / 3.966 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005095/9.075, allocations: 0.6417 MB / 3.967 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/9.076, allocations: 365.3 kB / 3.967 GB, free: 23.98 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.582e-05/9.076, allocations: 28.69 kB / 3.967 GB, free: 23.98 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.23e-05/9.076, allocations: 355.8 kB / 3.967 GB, free: 23.67 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008412/9.077, allocations: 0.6211 MB / 3.968 GB, free: 23.67 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/9.078, allocations: 0.914 MB / 3.969 GB, free: 23.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/9.079, allocations: 0.7618 MB / 3.97 GB, free: 23.29 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/9.079, allocations: 3 kB / 3.97 GB, free: 23.29 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00312/9.082, allocations: 1.877 MB / 3.971 GB, free: 23.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009705/9.083, allocations: 2.766 MB / 3.974 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.834e-05/9.083, allocations: 8.844 kB / 3.974 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005591/9.083, allocations: 140.2 kB / 3.974 GB, free: 20.22 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/9.085, allocations: 315.4 kB / 3.975 GB, free: 20.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000809/9.086, allocations: 1.243 MB / 3.976 GB, free: 19.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/9.087, allocations: 158.9 kB / 3.976 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/9.087, allocations: 63.78 kB / 3.976 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/9.087, allocations: 3.938 kB / 3.976 GB, free: 19.16 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002799/9.09, allocations: 1.705 MB / 3.978 GB, free: 19.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/9.09, allocations: 10.73 kB / 3.978 GB, free: 19.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004014/9.091, allocations: 130.2 kB / 3.978 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/9.092, allocations: 321.1 kB / 3.978 GB, free: 19.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/9.093, allocations: 1.255 MB / 3.979 GB, free: 34.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/9.095, allocations: 160.1 kB / 3.979 GB, free: 34.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/9.095, allocations: 62.16 kB / 3.98 GB, free: 34.01 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 () * 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.0004704/9.096, allocations: 212.2 kB / 3.98 GB, free: 33.86 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/9.096, allocations: 145.6 kB / 3.98 GB, free: 33.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005453/9.101, allocations: 4.727 MB / 3.984 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.691e-05/9.101, allocations: 54.66 kB / 3.985 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/9.101, allocations: 7.562 kB / 3.985 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003911/9.105, allocations: 3.952 MB / 3.988 GB, free: 32.78 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008529/9.114, allocations: 6.776 MB / 3.995 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/9.114, allocations: 0 / 3.995 GB, free: 31.61 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/9.115, allocations: 250 kB / 3.995 GB, free: 31.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006709/9.116, allocations: 180.8 kB / 3.995 GB, free: 31.53 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/9.116, allocations: 43.27 kB / 3.995 GB, free: 31.51 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/9.117, allocations: 1.283 MB / 3.997 GB, free: 30.37 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/9.117, allocations: 3.656 kB / 3.997 GB, free: 30.37 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006088/9.123, allocations: 4.232 MB / 4.001 GB, free: 28.49 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/9.125, allocations: 0.5526 MB / 4.001 GB, free: 28.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/9.125, allocations: 36.72 kB / 4.001 GB, free: 28.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/9.126, allocations: 130.4 kB / 4.002 GB, free: 28.08 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/9.127, allocations: 94 kB / 4.002 GB, free: 28.06 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/9.127, allocations: 42.02 kB / 4.002 GB, free: 28.05 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001473/9.128, allocations: 0.9798 MB / 4.003 GB, free: 27.67 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/9.128, allocations: 0 / 4.003 GB, free: 27.67 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009754/9.138, allocations: 2.214 MB / 4.005 GB, free: 27.19 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) * 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.01228/9.15, allocations: 2.388 MB / 4.007 GB, free: 26.56 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005447/9.156, allocations: 3.084 MB / 4.01 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.427e-06/9.156, allocations: 1.562 kB / 4.01 GB, free: 25.36 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00209/9.158, allocations: 1.424 MB / 4.012 GB, free: 24.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/9.162, allocations: 0.6503 MB / 4.012 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008/9.17, allocations: 3.803 MB / 4.016 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/9.172, allocations: 1.72 MB / 4.018 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003311/9.175, allocations: 1.734 MB / 4.019 GB, free: 22.07 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/9.175, allocations: 116 kB / 4.019 GB, free: 22.05 MB / 0.5573 GB Notification: Performance of SimCode: time 1.092e-06/9.175, allocations: 0 / 4.019 GB, free: 22.05 MB / 0.5573 GB Notification: Performance of Templates: time 0.5169/9.692, allocations: 67.57 MB / 4.085 GB, free: 58.95 MB / 0.5573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches