Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001737/0.001737, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009242/0.0009241, allocations: 97.06 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3593/0.3593, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003026, allocations: 8 kB / 468.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4192, allocations: 63.24 MB / 0.5192 GB, free: 43.98 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.626/7.045, allocations: 2.83 GB / 3.349 GB, free: 76.02 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/7.045, allocations: 79.12 kB / 3.349 GB, free: 75.98 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.618/8.663, allocations: 472.2 MB / 3.811 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.633e-06/8.663, allocations: 0 / 3.811 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001244/8.663, allocations: 23.12 kB / 3.811 GB, free: 39.28 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.008981/8.672, allocations: 2.261 MB / 3.813 GB, free: 37.95 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/8.672, allocations: 16.97 kB / 3.813 GB, free: 37.95 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002831/8.675, allocations: 365.3 kB / 3.813 GB, free: 37.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/8.678, allocations: 0.8989 MB / 3.814 GB, free: 37.37 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.755e-05/8.678, allocations: 73.44 kB / 3.814 GB, free: 37.34 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000267/8.678, allocations: 76.59 kB / 3.814 GB, free: 37.32 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003395/8.681, allocations: 1.486 MB / 3.816 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/8.681, allocations: 0 / 3.816 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/8.682, allocations: 42.62 kB / 3.816 GB, free: 36.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.922e-05/8.682, allocations: 57.48 kB / 3.816 GB, free: 36.62 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003029/8.685, allocations: 1.341 MB / 3.817 GB, free: 35.7 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.007633/8.692, allocations: 6.563 MB / 3.823 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/8.695, allocations: 1.022 MB / 3.824 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3842/9.079, allocations: 35.28 MB / 3.859 GB, free: 47.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.868e-05/9.079, allocations: 47.62 kB / 3.859 GB, free: 47.51 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 2.324e-06/9.079, allocations: 0 / 3.859 GB, free: 47.51 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.008536/9.088, allocations: 3.346 MB / 3.862 GB, free: 46.99 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/9.088, allocations: 192.5 kB / 3.862 GB, free: 46.77 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008585/9.089, allocations: 0.6431 MB / 3.863 GB, free: 46.65 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.773e-05/9.089, allocations: 43.23 kB / 3.863 GB, free: 46.62 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/9.089, allocations: 413.2 kB / 3.863 GB, free: 46.46 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/9.089, allocations: 214.4 kB / 3.864 GB, free: 46.35 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/9.089, allocations: 11.44 kB / 3.864 GB, free: 46.35 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001105/9.089, allocations: 393.3 kB / 3.864 GB, free: 46.04 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007361/9.09, allocations: 420.9 kB / 3.864 GB, free: 46.04 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008/9.091, allocations: 0.6238 MB / 3.865 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000806/9.092, allocations: 485.9 kB / 3.866 GB, free: 45.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/9.092, allocations: 6.469 kB / 3.866 GB, free: 45.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002252/9.094, allocations: 1.36 MB / 3.867 GB, free: 45.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004294/9.094, allocations: 2.271 MB / 3.869 GB, free: 43.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/9.094, allocations: 7.125 kB / 3.869 GB, free: 43.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00305/9.097, allocations: 0.6917 MB / 3.87 GB, free: 43.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005412/9.098, allocations: 165.4 kB / 3.87 GB, free: 43.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/9.099, allocations: 1.306 MB / 3.871 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009494/9.1, allocations: 106.7 kB / 3.871 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.295e-05/9.1, allocations: 39.83 kB / 3.871 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/9.1, allocations: 3.75 kB / 3.871 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002286/9.103, allocations: 1.233 MB / 3.873 GB, free: 42.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/9.103, allocations: 5.594 kB / 3.873 GB, free: 42.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/9.104, allocations: 435.2 kB / 3.873 GB, free: 42.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005707/9.105, allocations: 167.3 kB / 3.873 GB, free: 42.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/9.106, allocations: 1.108 MB / 3.874 GB, free: 42.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008155/9.107, allocations: 103.9 kB / 3.874 GB, free: 42.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-05/9.107, allocations: 40.73 kB / 3.874 GB, free: 42.25 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005566/9.107, allocations: 372.3 kB / 3.875 GB, free: 42.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/9.108, allocations: 83.7 kB / 3.875 GB, free: 42.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004283/9.112, allocations: 3.345 MB / 3.878 GB, free: 41.72 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.159e-05/9.112, allocations: 40.34 kB / 3.878 GB, free: 41.72 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/9.112, allocations: 5.75 kB / 3.878 GB, free: 41.72 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00269/9.115, allocations: 2.794 MB / 3.881 GB, free: 41.22 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00524/9.12, allocations: 4.601 MB / 3.885 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/9.12, allocations: 0 / 3.885 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006426/9.121, allocations: 172.4 kB / 3.885 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003717/9.121, allocations: 98.62 kB / 3.886 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/9.121, allocations: 23.81 kB / 3.886 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003036/9.121, allocations: 0.649 MB / 3.886 GB, free: 40.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/9.121, allocations: 0 / 3.886 GB, free: 40.29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003759/9.125, allocations: 2.971 MB / 3.889 GB, free: 39.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007597/9.126, allocations: 456 kB / 3.89 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/9.126, allocations: 16.17 kB / 3.89 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008255/9.127, allocations: 90.91 kB / 3.89 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/9.127, allocations: 61.3 kB / 3.89 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/9.127, allocations: 25.11 kB / 3.89 GB, free: 39.63 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001222/9.128, allocations: 0.8022 MB / 3.891 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.7e-07/9.128, allocations: 3.344 kB / 3.891 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007765/9.136, allocations: 1.76 MB / 3.892 GB, free: 39.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007882/9.144, allocations: 1.984 MB / 3.894 GB, free: 39.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003515/9.148, allocations: 1.87 MB / 3.896 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/9.148, allocations: 1.562 kB / 3.896 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001123/9.149, allocations: 0.9015 MB / 3.897 GB, free: 39.26 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/9.151, allocations: 472.8 kB / 3.897 GB, free: 39.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/9.155, allocations: 3.736 MB / 3.901 GB, free: 37.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008483/9.156, allocations: 1.342 MB / 3.902 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001794/9.158, allocations: 0.9067 MB / 3.903 GB, free: 37 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/9.158, allocations: 84.45 kB / 3.903 GB, free: 36.99 MB / 0.5417 GB Notification: Performance of SimCode: time 7.11e-07/9.158, allocations: 0 / 3.903 GB, free: 36.99 MB / 0.5417 GB Notification: Performance of Templates: time 0.06516/9.223, allocations: 52.02 MB / 3.954 GB, free: 34.8 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches