Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009143/0.0009141, allocations: 176.5 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.4 MB / 223.6 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007043/0.0007044, allocations: 78.08 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.315/0.315, allocations: 43.56 MB / 363.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003764, allocations: 12 kB / 432.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1245, allocations: 58.85 MB / 491.4 MB, free: 10.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.057/5.181, allocations: 2.825 GB / 3.305 GB, free: 150.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001926/5.182, allocations: 86.83 kB / 3.305 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.453/6.635, allocations: 0.5515 GB / 3.857 GB, free: 5.543 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.294e-06/6.635, allocations: 0 / 3.857 GB, free: 5.543 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001209/6.635, allocations: 42.27 kB / 3.857 GB, free: 5.504 MB / 0.5261 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.01003/6.645, allocations: 3.032 MB / 3.86 GB, free: 2.426 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/6.645, allocations: 8.031 kB / 3.86 GB, free: 2.418 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003877/6.649, allocations: 0.5402 MB / 3.861 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2586/6.908, allocations: 9.452 MB / 3.87 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/6.908, allocations: 112.4 kB / 3.87 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/6.908, allocations: 122.8 kB / 3.87 GB, free: 44.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004495/6.912, allocations: 2.307 MB / 3.872 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.804e-05/6.913, allocations: 6.188 kB / 3.872 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/6.913, allocations: 52.3 kB / 3.872 GB, free: 44.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/6.913, allocations: 110 kB / 3.872 GB, free: 44.09 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004214/6.917, allocations: 2.059 MB / 3.874 GB, free: 44.07 MB / 0.5261 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.01165/6.929, allocations: 9.779 MB / 3.884 GB, free: 38.22 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003263/6.932, allocations: 1.422 MB / 3.885 GB, free: 38.19 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/6.933, allocations: 0.7035 MB / 3.886 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03872/6.972, allocations: 24.43 MB / 3.91 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002793/6.975, allocations: 1.067 MB / 3.911 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 4.097e-06/6.975, allocations: 0 / 3.911 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01294/6.988, allocations: 5.224 MB / 3.916 GB, free: 22.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/6.988, allocations: 280.4 kB / 3.916 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/6.989, allocations: 1.157 MB / 3.917 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001316/6.99, allocations: 48.89 kB / 3.917 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000479/6.99, allocations: 0.6369 MB / 3.918 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003195/6.99, allocations: 360.3 kB / 3.918 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.764e-05/6.99, allocations: 26.31 kB / 3.918 GB, free: 21.63 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.252e-05/6.991, allocations: 356.5 kB / 3.919 GB, free: 21.33 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/6.992, allocations: 0.6943 MB / 3.919 GB, free: 21.33 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/6.993, allocations: 0.9986 MB / 3.92 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/6.996, allocations: 1.707 MB / 3.922 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/6.996, allocations: 3.281 kB / 3.922 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004049/7, allocations: 2.034 MB / 3.924 GB, free: 20.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002027/7, allocations: 331.8 kB / 3.924 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/7, allocations: 14.62 kB / 3.924 GB, free: 20.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005321/7, allocations: 135.8 kB / 3.925 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/7.002, allocations: 318 kB / 3.925 GB, free: 20.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006871/7.002, allocations: 1.25 MB / 3.926 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/7.004, allocations: 158.8 kB / 3.926 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/7.004, allocations: 60.84 kB / 3.926 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/7.004, allocations: 7.438 kB / 3.926 GB, free: 19.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003675/7.008, allocations: 1.863 MB / 3.928 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/7.008, allocations: 9.391 kB / 3.928 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004881/7.008, allocations: 143.2 kB / 3.928 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/7.01, allocations: 310.7 kB / 3.929 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/7.011, allocations: 1.255 MB / 3.93 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/7.013, allocations: 160.8 kB / 3.93 GB, free: 33.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/7.013, allocations: 58.55 kB / 3.93 GB, free: 33.97 MB / 0.5417 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.001074/7.014, allocations: 0.5356 MB / 3.931 GB, free: 33.75 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/7.014, allocations: 139.9 kB / 3.931 GB, free: 33.68 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006184/7.02, allocations: 4.828 MB / 3.935 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.456e-05/7.021, allocations: 52.36 kB / 3.935 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/7.021, allocations: 0 / 3.935 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004519/7.025, allocations: 4.044 MB / 3.939 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008426/7.034, allocations: 6.874 MB / 3.946 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/7.034, allocations: 0 / 3.946 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/7.035, allocations: 246.8 kB / 3.946 GB, free: 32.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006669/7.035, allocations: 191.8 kB / 3.946 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-05/7.035, allocations: 41.61 kB / 3.947 GB, free: 32.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007553/7.036, allocations: 1.286 MB / 3.948 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/7.036, allocations: 3.422 kB / 3.948 GB, free: 31.21 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005309/7.041, allocations: 4.457 MB / 3.952 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/7.043, allocations: 0.5531 MB / 3.953 GB, free: 30.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/7.043, allocations: 31 kB / 3.953 GB, free: 30.53 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009691/7.044, allocations: 127.4 kB / 3.953 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/7.044, allocations: 94.14 kB / 3.953 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.028e-05/7.044, allocations: 41.64 kB / 3.953 GB, free: 30.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001258/7.045, allocations: 0.99 MB / 3.954 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/7.045, allocations: 0 / 3.954 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007618/7.053, allocations: 2.126 MB / 3.956 GB, free: 30.31 MB / 0.5417 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.009191/7.062, allocations: 2.258 MB / 3.958 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006007/7.068, allocations: 3.234 MB / 3.961 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/7.068, allocations: 0 / 3.961 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002029/7.07, allocations: 1.494 MB / 3.963 GB, free: 29.76 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003866/7.074, allocations: 0.6547 MB / 3.963 GB, free: 29.75 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007872/7.082, allocations: 5.708 MB / 3.969 GB, free: 27.51 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/7.083, allocations: 1.658 MB / 3.971 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006527/7.084, allocations: 141 kB / 3.971 GB, free: 26.75 MB / 0.5417 GB Notification: Performance of SimCode: time 8.72e-07/7.084, allocations: 6.625 kB / 3.971 GB, free: 26.74 MB / 0.5417 GB Notification: Performance of Templates: time 0.07733/7.161, allocations: 66.67 MB / 4.036 GB, free: 16.38 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches