Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001171/0.001171, allocations: 176.2 kB / 16.76 MB, free: 5.031 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.35/1.35, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007734/0.0007737, allocations: 90.36 kB / 271.3 MB, free: 8.25 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.3117/0.3117, allocations: 43.57 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003376, allocations: 12 kB / 432.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09968, allocations: 58.84 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5/5.1, allocations: 2.825 GB / 3.305 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001686/5.1, allocations: 83.89 kB / 3.305 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.464/6.564, allocations: 0.5515 GB / 3.857 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.034e-06/6.564, allocations: 0 / 3.857 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001903/6.564, allocations: 42.42 kB / 3.857 GB, free: 4.137 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.01132/6.576, allocations: 3.028 MB / 3.86 GB, free: 1.066 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/6.576, allocations: 8.031 kB / 3.86 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004282/6.58, allocations: 0.5358 MB / 3.861 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2649/6.845, allocations: 9.467 MB / 3.87 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/6.845, allocations: 112.3 kB / 3.87 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002629/6.845, allocations: 123.1 kB / 3.87 GB, free: 44.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004479/6.85, allocations: 2.299 MB / 3.872 GB, free: 44.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.981e-05/6.85, allocations: 6.031 kB / 3.872 GB, free: 44.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/6.85, allocations: 56.77 kB / 3.872 GB, free: 44.32 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001228/6.85, allocations: 105.1 kB / 3.872 GB, free: 44.31 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004032/6.854, allocations: 2.061 MB / 3.874 GB, free: 44.3 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.01016/6.865, allocations: 9.78 MB / 3.884 GB, free: 38.44 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/6.867, allocations: 1.424 MB / 3.885 GB, free: 38.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009926/6.868, allocations: 0.7037 MB / 3.886 GB, free: 38.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.037/6.906, allocations: 24.43 MB / 3.91 GB, free: 23.49 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002655/6.908, allocations: 1.07 MB / 3.911 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 3.647e-06/6.908, allocations: 0 / 3.911 GB, free: 23.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.0124/6.921, allocations: 5.224 MB / 3.916 GB, free: 22.74 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/6.921, allocations: 278.3 kB / 3.916 GB, free: 22.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/6.922, allocations: 1.159 MB / 3.917 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001201/6.922, allocations: 42.77 kB / 3.917 GB, free: 22.24 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004396/6.923, allocations: 0.6441 MB / 3.918 GB, free: 22.03 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/6.923, allocations: 354.5 kB / 3.918 GB, free: 21.86 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.731e-05/6.923, allocations: 28.03 kB / 3.918 GB, free: 21.86 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.315e-05/6.923, allocations: 358.5 kB / 3.919 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/6.924, allocations: 0.6962 MB / 3.92 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/6.925, allocations: 0.992 MB / 3.92 GB, free: 21.24 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/6.928, allocations: 1.707 MB / 3.922 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/6.928, allocations: 0 / 3.922 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003579/6.931, allocations: 2.043 MB / 3.924 GB, free: 20.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001354/6.931, allocations: 331.1 kB / 3.924 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/6.932, allocations: 12.12 kB / 3.924 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004878/6.932, allocations: 137.2 kB / 3.925 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/6.933, allocations: 317.3 kB / 3.925 GB, free: 20.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006438/6.934, allocations: 1.248 MB / 3.926 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/6.935, allocations: 158 kB / 3.926 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/6.935, allocations: 65.22 kB / 3.926 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/6.935, allocations: 4.781 kB / 3.926 GB, free: 19.32 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003504/6.939, allocations: 1.862 MB / 3.928 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/6.939, allocations: 12.09 kB / 3.928 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004234/6.939, allocations: 140.1 kB / 3.928 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/6.941, allocations: 312.1 kB / 3.929 GB, free: 19.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005708/6.941, allocations: 1.254 MB / 3.93 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/6.942, allocations: 157.8 kB / 3.93 GB, free: 18.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/6.942, allocations: 63.53 kB / 3.93 GB, free: 18.19 MB / 0.5261 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.001675/6.944, allocations: 0.5324 MB / 3.931 GB, free: 33.97 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/6.944, allocations: 139.9 kB / 3.931 GB, free: 33.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005499/6.95, allocations: 4.82 MB / 3.935 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.241e-05/6.95, allocations: 53.98 kB / 3.935 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/6.95, allocations: 3.891 kB / 3.935 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004189/6.954, allocations: 4.047 MB / 3.939 GB, free: 33.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007261/6.961, allocations: 6.87 MB / 3.946 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/6.961, allocations: 0 / 3.946 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009331/6.962, allocations: 251.5 kB / 3.946 GB, free: 32.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006571/6.963, allocations: 193.8 kB / 3.947 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-05/6.963, allocations: 37.83 kB / 3.947 GB, free: 32.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007259/6.964, allocations: 1.293 MB / 3.948 GB, free: 31.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/6.964, allocations: 0 / 3.948 GB, free: 31.42 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005107/6.969, allocations: 4.453 MB / 3.952 GB, free: 30.99 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009684/6.97, allocations: 0.5536 MB / 3.953 GB, free: 30.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003537/6.97, allocations: 29.81 kB / 3.953 GB, free: 30.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/6.972, allocations: 127.5 kB / 3.953 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/6.972, allocations: 92.05 kB / 3.953 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.269e-05/6.972, allocations: 48.67 kB / 3.953 GB, free: 30.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00142/6.973, allocations: 0.9809 MB / 3.954 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/6.973, allocations: 0 / 3.954 GB, free: 30.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006879/6.98, allocations: 2.126 MB / 3.956 GB, free: 30.52 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.008659/6.989, allocations: 2.275 MB / 3.958 GB, free: 30.27 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005415/6.994, allocations: 3.236 MB / 3.961 GB, free: 30.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/6.994, allocations: 6.094 kB / 3.961 GB, free: 30.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001889/6.996, allocations: 1.489 MB / 3.963 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003627/7, allocations: 0.6442 MB / 3.964 GB, free: 29.95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006395/7.006, allocations: 5.644 MB / 3.969 GB, free: 27.72 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/7.007, allocations: 1.677 MB / 3.971 GB, free: 26.96 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002434/7.01, allocations: 1.605 MB / 3.972 GB, free: 26.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/7.01, allocations: 130.5 kB / 3.972 GB, free: 26.89 MB / 0.5417 GB Notification: Performance of SimCode: time 7.32e-07/7.01, allocations: 2.438 kB / 3.972 GB, free: 26.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.07728/7.088, allocations: 64.86 MB / 4.036 GB, free: 16.21 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches