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.001198/0.001198, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.5 MB / 230.7 MB, free: 7.574 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.0008348/0.0008347, allocations: 90.42 kB / 281.6 MB, free: 5.32 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.2458/0.2458, allocations: 44.14 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.938e-05, allocations: 224 / 444.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1903, allocations: 61.93 MB / 0.4947 GB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.426/6.616, allocations: 2.829 GB / 3.324 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/6.616, allocations: 78.7 kB / 3.324 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.584/9.2, allocations: 0.5778 GB / 3.902 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.333e-06/9.2, allocations: 3.094 kB / 3.902 GB, free: 54.04 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001944/9.201, allocations: 44.12 kB / 3.902 GB, free: 54.04 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.0146/9.215, allocations: 2.857 MB / 3.904 GB, free: 52.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.001e-05/9.215, allocations: 12.89 kB / 3.904 GB, free: 52.9 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005666/9.221, allocations: 0.5425 MB / 3.905 GB, free: 52.81 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0048/9.226, allocations: 1.428 MB / 3.906 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/9.226, allocations: 61.61 kB / 3.906 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/9.226, allocations: 71.5 kB / 3.907 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003295/9.229, allocations: 1.567 MB / 3.908 GB, free: 52.45 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003051/9.233, allocations: 1.778 MB / 3.91 GB, free: 52.06 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/9.233, allocations: 4.281 kB / 3.91 GB, free: 52.06 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/9.233, allocations: 8.719 kB / 3.91 GB, free: 52.06 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/9.233, allocations: 105.6 kB / 3.91 GB, free: 52.06 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.1621/9.395, allocations: 88.66 MB / 3.997 GB, free: 29.21 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001915/9.397, allocations: 0.9266 MB / 3.997 GB, free: 29.18 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008569/9.398, allocations: 0.5715 MB / 3.998 GB, free: 29.16 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03247/9.43, allocations: 16.93 MB / 4.015 GB, free: 18.16 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/9.432, allocations: 0.7247 MB / 4.015 GB, free: 18.04 MB / 0.573 GB Notification: Performance of pre-optimization done (n=88): time 3.116e-06/9.432, allocations: 0 / 4.015 GB, free: 18.04 MB / 0.573 GB Notification: Performance of matching and sorting (n=96): time 0.01263/9.445, allocations: 4.759 MB / 4.02 GB, free: 16.83 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002203/9.445, allocations: 382.6 kB / 4.02 GB, free: 16.39 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/9.446, allocations: 0.799 MB / 4.021 GB, free: 16.23 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001208/9.446, allocations: 25.7 kB / 4.021 GB, free: 16.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005991/9.447, allocations: 0.6791 MB / 4.022 GB, free: 15.89 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/9.447, allocations: 325.9 kB / 4.022 GB, free: 15.68 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/9.447, allocations: 0 / 4.022 GB, free: 15.68 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0009325/9.448, allocations: 353.1 kB / 4.022 GB, free: 31.38 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000848/9.449, allocations: 0.6017 MB / 4.023 GB, free: 31.37 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/9.45, allocations: 0.8951 MB / 4.024 GB, free: 31.05 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003011/9.453, allocations: 1.077 MB / 4.025 GB, free: 31.03 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/9.453, allocations: 0 / 4.025 GB, free: 31.03 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00502/9.458, allocations: 2.118 MB / 4.027 GB, free: 30.88 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001503/9.46, allocations: 2.747 MB / 4.03 GB, free: 28.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.79e-05/9.46, allocations: 8.062 kB / 4.03 GB, free: 28.01 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000454/9.46, allocations: 131.9 kB / 4.03 GB, free: 27.99 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/9.462, allocations: 314.6 kB / 4.03 GB, free: 27.99 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/9.463, allocations: 1.264 MB / 4.031 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/9.466, allocations: 182 kB / 4.031 GB, free: 26.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/9.466, allocations: 60.44 kB / 4.032 GB, free: 26.91 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/9.466, allocations: 3.719 kB / 4.032 GB, free: 26.91 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00513/9.471, allocations: 1.861 MB / 4.033 GB, free: 26.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/9.471, allocations: 11 kB / 4.033 GB, free: 26.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003924/9.472, allocations: 132.1 kB / 4.033 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/9.473, allocations: 305.1 kB / 4.034 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/9.474, allocations: 1.268 MB / 4.035 GB, free: 25.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/9.476, allocations: 150.7 kB / 4.035 GB, free: 25.78 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002016/9.476, allocations: 58.53 kB / 4.035 GB, free: 25.78 MB / 0.5886 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,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,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.0006686/9.477, allocations: 180.5 kB / 4.035 GB, free: 25.63 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005695/9.477, allocations: 126.4 kB / 4.035 GB, free: 25.57 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007134/9.484, allocations: 3.814 MB / 4.039 GB, free: 25.15 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-05/9.485, allocations: 41.53 kB / 4.039 GB, free: 25.15 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/9.485, allocations: 0 / 4.039 GB, free: 25.15 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005025/9.49, allocations: 3.018 MB / 4.042 GB, free: 24.78 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/9.501, allocations: 5.342 MB / 4.047 GB, free: 24.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/9.501, allocations: 7.875 kB / 4.047 GB, free: 24.31 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009085/9.502, allocations: 202 kB / 4.048 GB, free: 24.31 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004939/9.503, allocations: 174.1 kB / 4.048 GB, free: 24.29 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/9.503, allocations: 23.59 kB / 4.048 GB, free: 24.29 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/9.504, allocations: 1.345 MB / 4.049 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/9.504, allocations: 1.594 kB / 4.049 GB, free: 23.24 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005778/9.51, allocations: 3.69 MB / 4.053 GB, free: 22.76 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/9.511, allocations: 0.4986 MB / 4.053 GB, free: 22.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/9.512, allocations: 9.875 kB / 4.053 GB, free: 22.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/9.514, allocations: 98.52 kB / 4.053 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/9.514, allocations: 77.92 kB / 4.053 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/9.514, allocations: 36.14 kB / 4.053 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001704/9.516, allocations: 0.854 MB / 4.054 GB, free: 22.41 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.2e-07/9.516, allocations: 0 / 4.054 GB, free: 22.41 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01139/9.527, allocations: 2.128 MB / 4.056 GB, free: 22.07 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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 (105): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.01503/9.542, allocations: 2.512 MB / 4.059 GB, free: 21.48 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.00629/9.548, allocations: 2.82 MB / 4.062 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/9.548, allocations: 4.75 kB / 4.062 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002205/9.551, allocations: 1.206 MB / 4.063 GB, free: 21.17 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004079/9.555, allocations: 0.5139 MB / 4.063 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008054/9.563, allocations: 3.345 MB / 4.066 GB, free: 20.28 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002888/9.566, allocations: 1.639 MB / 4.068 GB, free: 19.52 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.005412/9.571, allocations: 1.78 MB / 4.07 GB, free: 19.46 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/9.572, allocations: 99.5 kB / 4.07 GB, free: 19.45 MB / 0.5886 GB Notification: Performance of SimCode: time 1.893e-06/9.572, allocations: 2.844 kB / 4.07 GB, free: 19.45 MB / 0.5886 GB Notification: Performance of Templates: time 0.5693/10.14, allocations: 55.07 MB / 4.124 GB, free: 99.27 MB / 0.5886 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