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.001503/0.001503, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.114/2.114, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001112, allocations: 103.5 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3506/0.3506, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.289e-05, allocations: 7.984 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4248, allocations: 58.85 MB / 477.1 MB, free: 5.242 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.767/9.192, allocations: 2.824 GB / 3.29 GB, free: 102.3 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/9.192, allocations: 82.06 kB / 3.29 GB, free: 102.3 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.163/12.36, allocations: 0.5714 GB / 3.862 GB, free: 44.34 MB / 0.5108 GB Notification: Performance of FrontEnd: time 2.705e-06/12.36, allocations: 6.844 kB / 3.862 GB, free: 44.34 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0001656/12.36, allocations: 46.91 kB / 3.862 GB, free: 44.33 MB / 0.5108 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.01242/12.37, allocations: 2.845 MB / 3.864 GB, free: 42.9 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/12.37, allocations: 15.12 kB / 3.865 GB, free: 42.9 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005466/12.37, allocations: 0.5386 MB / 3.865 GB, free: 42.81 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005369/12.38, allocations: 1.427 MB / 3.866 GB, free: 42.45 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/12.38, allocations: 63.58 kB / 3.866 GB, free: 42.45 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/12.38, allocations: 76.52 kB / 3.867 GB, free: 42.44 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003797/12.38, allocations: 1.565 MB / 3.868 GB, free: 42.43 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003898/12.39, allocations: 1.777 MB / 3.87 GB, free: 42.05 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/12.39, allocations: 1.5 kB / 3.87 GB, free: 42.05 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/12.39, allocations: 5.875 kB / 3.87 GB, free: 42.05 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00021/12.39, allocations: 102.9 kB / 3.87 GB, free: 42.05 MB / 0.5108 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.2805/12.67, allocations: 88.66 MB / 3.957 GB, free: 18.91 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/12.67, allocations: 0.9224 MB / 3.957 GB, free: 18.88 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/12.67, allocations: 0.576 MB / 3.958 GB, free: 18.87 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05388/12.73, allocations: 16.92 MB / 3.974 GB, free: 23.87 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001659/12.73, allocations: 0.7252 MB / 3.975 GB, free: 23.75 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=88): time 3.376e-06/12.73, allocations: 0 / 3.975 GB, free: 23.75 MB / 0.5577 GB Notification: Performance of matching and sorting (n=96): time 0.01761/12.74, allocations: 4.767 MB / 3.98 GB, free: 22.54 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002406/12.75, allocations: 379.5 kB / 3.98 GB, free: 22.1 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001536/12.75, allocations: 0.7943 MB / 3.981 GB, free: 21.94 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0002592/12.75, allocations: 29.39 kB / 3.981 GB, free: 21.91 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006504/12.75, allocations: 0.6758 MB / 3.982 GB, free: 21.52 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003899/12.75, allocations: 326.1 kB / 3.982 GB, free: 21.32 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/12.75, allocations: 0 / 3.982 GB, free: 21.32 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0001925/12.75, allocations: 360.2 kB / 3.982 GB, free: 21 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/12.75, allocations: 0.6066 MB / 3.983 GB, free: 21 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/12.75, allocations: 0.8887 MB / 3.984 GB, free: 20.68 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/12.76, allocations: 1.753 MB / 3.986 GB, free: 20.64 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/12.76, allocations: 3.594 kB / 3.986 GB, free: 20.64 MB / 0.5577 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.01535/12.78, allocations: 2.739 MB / 3.988 GB, free: 20.5 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.001248/12.78, allocations: 2.734 MB / 3.991 GB, free: 17.64 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.2e-05/12.78, allocations: 9.531 kB / 3.991 GB, free: 17.64 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005252/12.78, allocations: 130.6 kB / 3.991 GB, free: 17.62 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00254/12.78, allocations: 318.5 kB / 3.991 GB, free: 17.62 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/12.78, allocations: 1.262 MB / 3.993 GB, free: 16.58 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002732/12.79, allocations: 175.9 kB / 3.993 GB, free: 16.55 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/12.79, allocations: 65.38 kB / 3.993 GB, free: 16.55 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/12.79, allocations: 3.938 kB / 3.993 GB, free: 16.55 MB / 0.5577 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01422/12.8, allocations: 2.549 MB / 3.995 GB, free: 16.47 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.429e-05/12.8, allocations: 7.344 kB / 3.995 GB, free: 16.47 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000454/12.8, allocations: 123.6 kB / 3.995 GB, free: 16.45 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002414/12.81, allocations: 320 kB / 3.996 GB, free: 16.45 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/12.81, allocations: 1.258 MB / 3.997 GB, free: 15.41 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/12.81, allocations: 148.5 kB / 3.997 GB, free: 15.39 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001802/12.81, allocations: 60.3 kB / 3.997 GB, free: 15.39 MB / 0.5577 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.0005278/12.81, allocations: 180.5 kB / 3.997 GB, free: 15.25 MB / 0.5577 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/12.81, allocations: 124.4 kB / 3.997 GB, free: 15.18 MB / 0.5577 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007646/12.82, allocations: 3.814 MB / 4.001 GB, free: 14.77 MB / 0.5577 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.532e-05/12.82, allocations: 40.66 kB / 4.001 GB, free: 14.77 MB / 0.5577 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/12.82, allocations: 3.875 kB / 4.001 GB, free: 14.77 MB / 0.5577 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006009/12.82, allocations: 3.015 MB / 4.004 GB, free: 14.4 MB / 0.5577 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/12.83, allocations: 5.34 MB / 4.009 GB, free: 13.94 MB / 0.5577 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/12.83, allocations: 0 / 4.009 GB, free: 13.94 MB / 0.5577 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/12.84, allocations: 205.1 kB / 4.01 GB, free: 13.93 MB / 0.5577 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007133/12.84, allocations: 170.1 kB / 4.01 GB, free: 13.91 MB / 0.5577 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/12.84, allocations: 33.5 kB / 4.01 GB, free: 13.91 MB / 0.5577 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/12.84, allocations: 1.348 MB / 4.011 GB, free: 12.86 MB / 0.5577 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/12.84, allocations: 3.5 kB / 4.011 GB, free: 12.86 MB / 0.5577 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007613/12.85, allocations: 3.68 MB / 4.015 GB, free: 12.38 MB / 0.5577 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/12.85, allocations: 0.4953 MB / 4.015 GB, free: 12.15 MB / 0.5577 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003494/12.85, allocations: 14.94 kB / 4.015 GB, free: 12.15 MB / 0.5577 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/12.85, allocations: 94.7 kB / 4.015 GB, free: 12.14 MB / 0.5577 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/12.85, allocations: 79.19 kB / 4.015 GB, free: 12.14 MB / 0.5577 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/12.85, allocations: 40.81 kB / 4.015 GB, free: 12.14 MB / 0.5577 GB Notification: Performance of sorting global known variables: time 0.0017/12.85, allocations: 0.8523 MB / 4.016 GB, free: 11.89 MB / 0.5577 GB Notification: Performance of sort global known variables: time 4.5e-07/12.85, allocations: 1.875 kB / 4.016 GB, free: 11.89 MB / 0.5577 GB Notification: Performance of remove unused functions: time 0.01017/12.86, allocations: 2.135 MB / 4.018 GB, free: 9.895 MB / 0.5577 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.01375/12.88, allocations: 2.486 MB / 4.021 GB, free: 7.949 MB / 0.5577 GB Notification: Performance of simCode: created initialization part: time 0.006213/12.88, allocations: 2.789 MB / 4.023 GB, free: 6.297 MB / 0.5577 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/12.88, allocations: 4 kB / 4.023 GB, free: 6.293 MB / 0.5577 GB Notification: Performance of simCode: created simulation system equations: time 0.002311/12.88, allocations: 1.2 MB / 4.025 GB, free: 5.664 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004369/12.89, allocations: 0.5226 MB / 4.025 GB, free: 5.375 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4163/13.3, allocations: 3.38 MB / 4.028 GB, free: 89 MB / 0.5577 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/13.31, allocations: 1.614 MB / 4.03 GB, free: 88.27 MB / 0.5577 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009581/13.31, allocations: 128.2 kB / 4.03 GB, free: 88.27 MB / 0.5577 GB Notification: Performance of SimCode: time 1.312e-06/13.31, allocations: 0 / 4.03 GB, free: 88.27 MB / 0.5577 GB Notification: Performance of Templates: time 0.1369/13.44, allocations: 66.46 MB / 4.095 GB, free: 84.92 MB / 0.5577 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