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.001033/0.001033, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.303/1.303, allocations: 223.2 MB / 241 MB, free: 11.88 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.0009207/0.0009207, allocations: 97.48 kB / 292.2 MB, free: 10.91 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.3676/0.3676, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003253/0.0003252, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3575, allocations: 61.91 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.09/6.447, allocations: 2.83 GB / 3.339 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/6.447, allocations: 88.61 kB / 3.339 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.984/8.432, allocations: 0.5845 GB / 3.924 GB, free: 46.98 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.723e-06/8.432, allocations: 0 / 3.924 GB, free: 46.98 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002207/8.432, allocations: 49.67 kB / 3.924 GB, free: 46.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.01158/8.444, allocations: 3.045 MB / 3.927 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/8.444, allocations: 9.094 kB / 3.927 GB, free: 45.56 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004197/8.448, allocations: 0.5429 MB / 3.928 GB, free: 45.47 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/8.452, allocations: 1.444 MB / 3.929 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/8.453, allocations: 112 kB / 3.929 GB, free: 45.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006408/8.453, allocations: 136.8 kB / 3.929 GB, free: 45.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006686/8.46, allocations: 2.295 MB / 3.931 GB, free: 44.71 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.671e-05/8.46, allocations: 0 / 3.931 GB, free: 44.71 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003489/8.46, allocations: 60.33 kB / 3.931 GB, free: 44.71 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/8.461, allocations: 102.2 kB / 3.932 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005039/8.466, allocations: 2.064 MB / 3.934 GB, free: 44.69 MB / 0.5417 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.01487/8.481, allocations: 9.8 MB / 3.943 GB, free: 38.75 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003599/8.484, allocations: 1.42 MB / 3.945 GB, free: 38.72 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04478/8.529, allocations: 24.43 MB / 3.968 GB, free: 23.79 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003086/8.532, allocations: 1.061 MB / 3.969 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 4.017e-06/8.532, allocations: 0 / 3.969 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01351/8.546, allocations: 5.321 MB / 3.975 GB, free: 22.89 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/8.546, allocations: 276.5 kB / 3.975 GB, free: 22.58 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001713/8.548, allocations: 1.035 MB / 3.976 GB, free: 22.42 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001486/8.548, allocations: 48.83 kB / 3.976 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005231/8.548, allocations: 0.6441 MB / 3.977 GB, free: 22.13 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003/8.549, allocations: 354.3 kB / 3.977 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/8.549, allocations: 27.19 kB / 3.977 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.059e-05/8.549, allocations: 348.6 kB / 3.977 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/8.55, allocations: 0.6971 MB / 3.978 GB, free: 21.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001381/8.551, allocations: 0.9903 MB / 3.979 GB, free: 21.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/8.553, allocations: 0.835 MB / 3.98 GB, free: 21.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/8.553, allocations: 3.812 kB / 3.98 GB, free: 21.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003776/8.557, allocations: 2.039 MB / 3.982 GB, free: 21.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001757/8.558, allocations: 2.758 MB / 3.984 GB, free: 34.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/8.558, allocations: 8.5 kB / 3.984 GB, free: 34.23 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005395/8.559, allocations: 143.4 kB / 3.985 GB, free: 34.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/8.56, allocations: 317.1 kB / 3.985 GB, free: 34.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009522/8.561, allocations: 1.253 MB / 3.986 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/8.563, allocations: 160.2 kB / 3.986 GB, free: 33.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/8.563, allocations: 68.59 kB / 3.986 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/8.563, allocations: 3.625 kB / 3.986 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003623/8.567, allocations: 1.869 MB / 3.988 GB, free: 33.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.593e-05/8.567, allocations: 7.625 kB / 3.988 GB, free: 33.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004929/8.567, allocations: 137.8 kB / 3.988 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/8.569, allocations: 312.4 kB / 3.989 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009084/8.57, allocations: 1.257 MB / 3.99 GB, free: 32.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/8.572, allocations: 154.7 kB / 3.99 GB, free: 32.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/8.572, allocations: 59.7 kB / 3.99 GB, free: 32.03 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.00151/8.573, allocations: 0.5394 MB / 3.991 GB, free: 31.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006191/8.574, allocations: 140.5 kB / 3.991 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006674/8.581, allocations: 4.81 MB / 3.995 GB, free: 31.23 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.212e-05/8.581, allocations: 57.5 kB / 3.995 GB, free: 31.23 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/8.581, allocations: 0 / 3.995 GB, free: 31.23 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004543/8.585, allocations: 4.045 MB / 3.999 GB, free: 30.79 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009462/8.595, allocations: 6.871 MB / 4.006 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/8.595, allocations: 2.219 kB / 4.006 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/8.596, allocations: 244.5 kB / 4.006 GB, free: 30.21 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000753/8.597, allocations: 196.9 kB / 4.007 GB, free: 30.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/8.597, allocations: 37.73 kB / 4.007 GB, free: 30.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008316/8.598, allocations: 1.293 MB / 4.008 GB, free: 29.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/8.598, allocations: 4.219 kB / 4.008 GB, free: 29.16 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00595/8.603, allocations: 4.453 MB / 4.012 GB, free: 28.72 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/8.605, allocations: 0.5571 MB / 4.013 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000494/8.605, allocations: 25.81 kB / 4.013 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/8.607, allocations: 131.5 kB / 4.013 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/8.607, allocations: 85.98 kB / 4.013 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/8.607, allocations: 52.17 kB / 4.013 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001597/8.609, allocations: 0.994 MB / 4.014 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.5e-07/8.609, allocations: 0 / 4.014 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008417/8.617, allocations: 2.214 MB / 4.016 GB, free: 28 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.01164/8.629, allocations: 2.393 MB / 4.018 GB, free: 27.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006872/8.636, allocations: 3.238 MB / 4.022 GB, free: 27.27 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/8.636, allocations: 0 / 4.022 GB, free: 27.27 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002194/8.638, allocations: 1.488 MB / 4.023 GB, free: 27.19 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/8.641, allocations: 0.6346 MB / 4.024 GB, free: 27.18 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007674/8.649, allocations: 5.689 MB / 4.029 GB, free: 24.93 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001752/8.651, allocations: 1.718 MB / 4.031 GB, free: 24.17 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.002966/8.654, allocations: 1.606 MB / 4.033 GB, free: 24.11 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005108/8.654, allocations: 131.4 kB / 4.033 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of SimCode: time 3.4e-07/8.654, allocations: 0 / 4.033 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.08317/8.737, allocations: 63.4 MB / 4.095 GB, free: 6.707 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