Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 178.8 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.2 MB / 242.1 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 97.86 kB / 293.3 MB, free: 10.78 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.3791/0.3791, allocations: 44.14 MB / 388.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005153/0.0005156, allocations: 12 kB / 461.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4007/0.4013, allocations: 61.88 MB / 0.5107 GB, free: 38.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.295/6.697, allocations: 2.83 GB / 3.34 GB, free: 19.19 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/6.697, allocations: 89.44 kB / 3.34 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.87/8.567, allocations: 445.5 MB / 3.776 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.775e-06/8.567, allocations: 0 / 3.776 GB, free: 52.32 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.504e-05/8.568, allocations: 30.66 kB / 3.776 GB, free: 52.32 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.008948/8.577, allocations: 2.243 MB / 3.778 GB, free: 51.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/8.577, allocations: 12.56 kB / 3.778 GB, free: 51.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002503/8.579, allocations: 383.2 kB / 3.778 GB, free: 51.48 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01529/8.594, allocations: 8.626 MB / 3.787 GB, free: 51.15 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-05/8.595, allocations: 73.89 kB / 3.787 GB, free: 51.15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/8.595, allocations: 76.09 kB / 3.787 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003053/8.598, allocations: 1.488 MB / 3.788 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.411e-05/8.598, allocations: 7.125 kB / 3.788 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.695e-05/8.598, allocations: 38.41 kB / 3.788 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.463e-05/8.598, allocations: 59.52 kB / 3.788 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002817/8.601, allocations: 1.342 MB / 3.79 GB, free: 50.85 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.006977/8.608, allocations: 6.544 MB / 3.796 GB, free: 46.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/8.61, allocations: 1.02 MB / 3.797 GB, free: 46.65 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007478/8.611, allocations: 466 kB / 3.797 GB, free: 46.63 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05999/8.671, allocations: 32 MB / 3.829 GB, free: 27.19 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.788e-05/8.671, allocations: 44.34 kB / 3.829 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=57): time 4.158e-06/8.671, allocations: 0 / 3.829 GB, free: 27.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61): time 0.0111/8.682, allocations: 3.359 MB / 3.832 GB, free: 26.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/8.682, allocations: 190.7 kB / 3.832 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/8.684, allocations: 0.7184 MB / 3.833 GB, free: 26.19 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.432e-05/8.684, allocations: 40.89 kB / 3.833 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003389/8.684, allocations: 409.3 kB / 3.833 GB, free: 26 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002506/8.684, allocations: 214 kB / 3.834 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.975e-05/8.685, allocations: 16.03 kB / 3.834 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001546/8.685, allocations: 394.5 kB / 3.834 GB, free: 25.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009285/8.686, allocations: 417.3 kB / 3.834 GB, free: 25.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/8.687, allocations: 0.6253 MB / 3.835 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/8.689, allocations: 1.032 MB / 3.836 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/8.689, allocations: 5.656 kB / 3.836 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002823/8.691, allocations: 1.361 MB / 3.837 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000139/8.692, allocations: 257.8 kB / 3.838 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/8.692, allocations: 8.562 kB / 3.838 GB, free: 24.74 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003207/8.695, allocations: 0.7004 MB / 3.838 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/8.695, allocations: 157.8 kB / 3.838 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/8.697, allocations: 1.308 MB / 3.84 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/8.698, allocations: 105.5 kB / 3.84 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.273e-05/8.698, allocations: 40.47 kB / 3.84 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/8.698, allocations: 9.5 kB / 3.84 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002352/8.7, allocations: 1.232 MB / 3.841 GB, free: 24.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/8.701, allocations: 10.5 kB / 3.841 GB, free: 24.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001588/8.702, allocations: 440.2 kB / 3.841 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/8.703, allocations: 168.7 kB / 3.842 GB, free: 24.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002004/8.705, allocations: 1.109 MB / 3.843 GB, free: 39.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/8.706, allocations: 107.7 kB / 3.843 GB, free: 39.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.698e-05/8.706, allocations: 34.97 kB / 3.843 GB, free: 39.61 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.0007127/8.707, allocations: 376.2 kB / 3.843 GB, free: 39.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/8.707, allocations: 81.62 kB / 3.843 GB, free: 39.37 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004082/8.711, allocations: 3.343 MB / 3.846 GB, free: 38.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-05/8.711, allocations: 41.09 kB / 3.847 GB, free: 38.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/8.711, allocations: 0 / 3.847 GB, free: 38.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003066/8.714, allocations: 2.8 MB / 3.849 GB, free: 38.47 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006006/8.72, allocations: 4.602 MB / 3.854 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/8.72, allocations: 0 / 3.854 GB, free: 38.01 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006583/8.721, allocations: 179.1 kB / 3.854 GB, free: 38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003713/8.721, allocations: 99.22 kB / 3.854 GB, free: 37.99 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.313e-05/8.721, allocations: 19.38 kB / 3.854 GB, free: 37.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004253/8.722, allocations: 0.6479 MB / 3.855 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/8.722, allocations: 0 / 3.855 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/8.725, allocations: 2.936 MB / 3.858 GB, free: 37.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/8.726, allocations: 462.5 kB / 3.858 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/8.727, allocations: 18.31 kB / 3.858 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009262/8.728, allocations: 82.44 kB / 3.858 GB, free: 36.79 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/8.728, allocations: 72 kB / 3.858 GB, free: 36.78 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/8.728, allocations: 28.2 kB / 3.858 GB, free: 36.78 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001215/8.729, allocations: 0.7963 MB / 3.859 GB, free: 36.67 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/8.729, allocations: 0 / 3.859 GB, free: 36.67 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008363/8.737, allocations: 1.684 MB / 3.861 GB, free: 36.42 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.01162/8.749, allocations: 1.891 MB / 3.862 GB, free: 35.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004331/8.753, allocations: 1.868 MB / 3.864 GB, free: 35.93 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/8.753, allocations: 3.188 kB / 3.864 GB, free: 35.93 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001442/8.755, allocations: 0.9011 MB / 3.865 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/8.758, allocations: 480.5 kB / 3.866 GB, free: 35.89 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005347/8.764, allocations: 3.74 MB / 3.869 GB, free: 34.23 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008654/8.764, allocations: 1.314 MB / 3.871 GB, free: 33.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001527/8.766, allocations: 0.9049 MB / 3.871 GB, free: 33.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/8.766, allocations: 81.05 kB / 3.871 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of SimCode: time 1.563e-06/8.766, allocations: 0 / 3.871 GB, free: 33.45 MB / 0.5417 GB Notification: Performance of Templates: time 0.07047/8.837, allocations: 53.71 MB / 3.924 GB, free: 30.66 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches