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.001382/0.001382, allocations: 179 kB / 18.09 MB, free: 3.754 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.274/1.274, allocations: 223.3 MB / 242.1 MB, free: 9.98 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.0008007/0.0008009, allocations: 97.44 kB / 293.3 MB, free: 10.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2956/0.2956, allocations: 44.14 MB / 388.5 MB, free: 38.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003782, allocations: 8 kB / 461.1 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3114, allocations: 61.89 MB / 0.5107 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.086/5.397, allocations: 2.83 GB / 3.341 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/5.398, allocations: 87.94 kB / 3.341 GB, free: 19.15 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.814/7.211, allocations: 0.5579 GB / 3.899 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.393e-06/7.212, allocations: 0 / 3.899 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.00015/7.212, allocations: 44.67 kB / 3.899 GB, free: 37.36 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.009605/7.221, allocations: 3.032 MB / 3.902 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/7.221, allocations: 12.81 kB / 3.902 GB, free: 35.62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003893/7.225, allocations: 0.5435 MB / 3.902 GB, free: 35.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01496/7.24, allocations: 9.481 MB / 3.912 GB, free: 32.73 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/7.24, allocations: 110.9 kB / 3.912 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004291/7.241, allocations: 123.5 kB / 3.912 GB, free: 32.65 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004451/7.245, allocations: 2.312 MB / 3.914 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.896e-05/7.245, allocations: 7.719 kB / 3.914 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/7.246, allocations: 58.27 kB / 3.914 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/7.246, allocations: 106.5 kB / 3.914 GB, free: 31.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003908/7.25, allocations: 2.058 MB / 3.916 GB, free: 30.99 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.009861/7.259, allocations: 9.778 MB / 3.926 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/7.262, allocations: 1.411 MB / 3.927 GB, free: 23.17 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009918/7.263, allocations: 0.7063 MB / 3.928 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03743/7.301, allocations: 24.45 MB / 3.952 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002615/7.303, allocations: 1.064 MB / 3.953 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 2.855e-06/7.303, allocations: 0 / 3.953 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01239/7.316, allocations: 5.236 MB / 3.958 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/7.316, allocations: 270 kB / 3.958 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/7.318, allocations: 1.162 MB / 3.959 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001174/7.318, allocations: 49.7 kB / 3.959 GB, free: 11.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005645/7.318, allocations: 0.6283 MB / 3.96 GB, free: 10.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003039/7.319, allocations: 364.9 kB / 3.96 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-05/7.319, allocations: 28 kB / 3.96 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001435/7.319, allocations: 353.9 kB / 3.961 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/7.32, allocations: 0.6935 MB / 3.961 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/7.322, allocations: 0.9943 MB / 3.962 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002683/7.324, allocations: 1.708 MB / 3.964 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/7.324, allocations: 0 / 3.964 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003835/7.328, allocations: 2.041 MB / 3.966 GB, free: 4.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002511/7.328, allocations: 334 kB / 3.966 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/7.329, allocations: 8 kB / 3.966 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/7.329, allocations: 137.6 kB / 3.967 GB, free: 3.586 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/7.33, allocations: 315.6 kB / 3.967 GB, free: 3.277 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008665/7.331, allocations: 1.257 MB / 3.968 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/7.333, allocations: 159.9 kB / 3.968 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/7.333, allocations: 63.97 kB / 3.968 GB, free: 1.754 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/7.333, allocations: 7.938 kB / 3.968 GB, free: 1.746 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003582/7.336, allocations: 1.858 MB / 3.97 GB, free: 15.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/7.337, allocations: 8.5 kB / 3.97 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004372/7.337, allocations: 141.5 kB / 3.97 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/7.338, allocations: 311.6 kB / 3.971 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008511/7.339, allocations: 1.249 MB / 3.972 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/7.34, allocations: 167.7 kB / 3.972 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/7.34, allocations: 63.98 kB / 3.972 GB, free: 13.89 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.0009464/7.341, allocations: 0.5265 MB / 3.973 GB, free: 13.35 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/7.342, allocations: 146.3 kB / 3.973 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/7.348, allocations: 4.818 MB / 3.977 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.412e-05/7.348, allocations: 55.92 kB / 3.977 GB, free: 8.27 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/7.348, allocations: 4 kB / 3.977 GB, free: 8.266 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005103/7.353, allocations: 4.041 MB / 3.981 GB, free: 4.16 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2767/7.63, allocations: 6.866 MB / 3.988 GB, free: 71.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/7.63, allocations: 0 / 3.988 GB, free: 71.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009402/7.631, allocations: 246.8 kB / 3.988 GB, free: 71.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006498/7.632, allocations: 197.2 kB / 3.989 GB, free: 71.68 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.642e-05/7.632, allocations: 40.89 kB / 3.989 GB, free: 71.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005528/7.632, allocations: 1.292 MB / 3.99 GB, free: 70.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/7.632, allocations: 0 / 3.99 GB, free: 70.65 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/7.638, allocations: 4.453 MB / 3.994 GB, free: 70.36 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/7.639, allocations: 0.5512 MB / 3.995 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/7.639, allocations: 32.33 kB / 3.995 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008616/7.64, allocations: 128.8 kB / 3.995 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/7.64, allocations: 91.86 kB / 3.995 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-05/7.64, allocations: 42.84 kB / 3.995 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001344/7.642, allocations: 0.9882 MB / 3.996 GB, free: 70.16 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/7.642, allocations: 0 / 3.996 GB, free: 70.16 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007895/7.65, allocations: 2.131 MB / 3.998 GB, free: 70.16 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.008142/7.658, allocations: 2.271 MB / 4 GB, free: 70.05 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004821/7.662, allocations: 3.237 MB / 4.003 GB, free: 69.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/7.663, allocations: 1.531 kB / 4.003 GB, free: 69.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001688/7.664, allocations: 1.487 MB / 4.005 GB, free: 69.76 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/7.668, allocations: 0.6444 MB / 4.005 GB, free: 69.75 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00667/7.674, allocations: 5.654 MB / 4.011 GB, free: 67.61 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/7.676, allocations: 1.675 MB / 4.013 GB, free: 66.87 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002617/7.678, allocations: 1.609 MB / 4.014 GB, free: 66.85 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003825/7.679, allocations: 127.8 kB / 4.014 GB, free: 66.84 MB / 0.5573 GB Notification: Performance of SimCode: time 9.01e-07/7.679, allocations: 0 / 4.014 GB, free: 66.84 MB / 0.5573 GB Notification: Performance of Templates: time 0.09058/7.769, allocations: 64.91 MB / 4.078 GB, free: 64.62 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/jenkins1/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