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.001015/0.001015, allocations: 183.8 kB / 13.19 MB, free: 2.129 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.334/1.334, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0009049/0.0009047, allocations: 89 kB / 267.1 MB, free: 9.277 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.3576/0.3576, allocations: 43.46 MB / 358.6 MB, free: 52.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.28e-05, allocations: 4 kB / 425.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 58.85 MB / 484.2 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.455/6.574, allocations: 2.825 GB / 3.298 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/6.574, allocations: 79.48 kB / 3.298 GB, free: 19.54 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.011/8.585, allocations: 0.5767 GB / 3.874 GB, free: 30.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.613e-06/8.585, allocations: 4 kB / 3.874 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001898/8.585, allocations: 41.8 kB / 3.874 GB, free: 30.25 MB / 0.5105 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.01002/8.595, allocations: 2.849 MB / 3.877 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/8.595, allocations: 8.031 kB / 3.877 GB, free: 27.37 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004074/8.599, allocations: 0.5473 MB / 3.878 GB, free: 26.82 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004018/8.603, allocations: 1.432 MB / 3.879 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/8.603, allocations: 120.4 kB / 3.879 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004989/8.604, allocations: 122.1 kB / 3.879 GB, free: 25.14 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004819/8.609, allocations: 2.281 MB / 3.882 GB, free: 22.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.686e-05/8.609, allocations: 4 kB / 3.882 GB, free: 22.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002396/8.609, allocations: 54.56 kB / 3.882 GB, free: 22.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/8.609, allocations: 102.2 kB / 3.882 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/8.614, allocations: 1.976 MB / 3.884 GB, free: 20.6 MB / 0.5105 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.01369/8.628, allocations: 9.795 MB / 3.893 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/8.63, allocations: 1.339 MB / 3.895 GB, free: 8.723 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007536/8.631, allocations: 0.6326 MB / 3.895 GB, free: 8.086 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3331/8.964, allocations: 24.52 MB / 3.919 GB, free: 52.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002801/8.967, allocations: 1.058 MB / 3.92 GB, free: 52.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 3.807e-06/8.967, allocations: 0 / 3.92 GB, free: 52.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=104): time 0.01163/8.979, allocations: 4.472 MB / 3.925 GB, free: 52.37 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/8.979, allocations: 271.6 kB / 3.925 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/8.98, allocations: 1.021 MB / 3.926 GB, free: 51.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001188/8.98, allocations: 46.7 kB / 3.926 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004339/8.981, allocations: 0.6378 MB / 3.926 GB, free: 51.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002419/8.981, allocations: 362.9 kB / 3.927 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.065e-05/8.981, allocations: 23.97 kB / 3.927 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.238e-05/8.981, allocations: 355 kB / 3.927 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008024/8.982, allocations: 0.6258 MB / 3.928 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008853/8.983, allocations: 0.9108 MB / 3.929 GB, free: 50.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009006/8.984, allocations: 0.7576 MB / 3.929 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/8.984, allocations: 3.281 kB / 3.929 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002706/8.987, allocations: 1.886 MB / 3.931 GB, free: 50.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004468/8.987, allocations: 2.757 MB / 3.934 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/8.987, allocations: 7.594 kB / 3.934 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004496/8.988, allocations: 132.4 kB / 3.934 GB, free: 47.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/8.989, allocations: 312.3 kB / 3.934 GB, free: 47.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005831/8.989, allocations: 1.256 MB / 3.936 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/8.991, allocations: 159.3 kB / 3.936 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/8.991, allocations: 61.42 kB / 3.936 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/8.991, allocations: 3.875 kB / 3.936 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002332/8.993, allocations: 1.707 MB / 3.938 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/8.993, allocations: 10.11 kB / 3.938 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003735/8.994, allocations: 133.6 kB / 3.938 GB, free: 46.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/8.995, allocations: 315.7 kB / 3.938 GB, free: 46.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005062/8.995, allocations: 1.248 MB / 3.939 GB, free: 45.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/8.996, allocations: 159.8 kB / 3.939 GB, free: 45.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/8.997, allocations: 62.69 kB / 3.939 GB, free: 45.63 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 () * 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.0003282/8.997, allocations: 224 kB / 3.94 GB, free: 45.49 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/8.997, allocations: 140.3 kB / 3.94 GB, free: 45.42 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004741/9.002, allocations: 4.732 MB / 3.944 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.145e-05/9.002, allocations: 59.08 kB / 3.944 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/9.002, allocations: 6.312 kB / 3.944 GB, free: 44.96 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003353/9.005, allocations: 3.951 MB / 3.948 GB, free: 44.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008047/9.013, allocations: 6.776 MB / 3.955 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/9.013, allocations: 0 / 3.955 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009569/9.014, allocations: 249.1 kB / 3.955 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005897/9.015, allocations: 177 kB / 3.955 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/9.015, allocations: 36.28 kB / 3.955 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005437/9.016, allocations: 1.29 MB / 3.957 GB, free: 42.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/9.016, allocations: 6.375 kB / 3.957 GB, free: 42.92 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004543/9.02, allocations: 4.231 MB / 3.961 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/9.021, allocations: 0.5614 MB / 3.961 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/9.022, allocations: 26.03 kB / 3.961 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/9.023, allocations: 133.9 kB / 3.961 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/9.023, allocations: 88.89 kB / 3.962 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.705e-05/9.023, allocations: 46.17 kB / 3.962 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001551/9.025, allocations: 0.9784 MB / 3.963 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.71e-07/9.025, allocations: 0 / 3.963 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008312/9.033, allocations: 2.213 MB / 3.965 GB, free: 42.09 MB / 0.5261 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) * 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.01155/9.045, allocations: 2.379 MB / 3.967 GB, free: 41.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005664/9.051, allocations: 3.087 MB / 3.97 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/9.051, allocations: 7.344 kB / 3.97 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001872/9.052, allocations: 1.418 MB / 3.971 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/9.056, allocations: 0.6398 MB / 3.972 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006821/9.063, allocations: 3.813 MB / 3.976 GB, free: 40.79 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/9.065, allocations: 1.727 MB / 3.977 GB, free: 40.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003843/9.068, allocations: 1.733 MB / 3.979 GB, free: 40.03 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004449/9.069, allocations: 117 kB / 3.979 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of SimCode: time 1.964e-06/9.069, allocations: 0 / 3.979 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of Templates: time 0.09262/9.162, allocations: 67.55 MB / 4.045 GB, free: 37.11 MB / 0.5261 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/jenkins/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