Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000971/0.0009713, allocations: 203.4 kB / 16.79 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.5 MB / 244.1 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009113/0.0009113, allocations: 104.2 kB / 296.1 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4279/0.4279, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4242, allocations: 62.95 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.795/7.219, allocations: 2.831 GB / 3.347 GB, free: 155.5 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/7.219, allocations: 80.84 kB / 3.347 GB, free: 155.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.788/9.007, allocations: 445.3 MB / 3.782 GB, free: 61.93 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.044e-06/9.007, allocations: 0 / 3.782 GB, free: 61.93 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.863e-05/9.007, allocations: 27.58 kB / 3.782 GB, free: 61.92 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.009831/9.017, allocations: 2.259 MB / 3.784 GB, free: 60.82 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/9.017, allocations: 7.5 kB / 3.784 GB, free: 60.82 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00279/9.02, allocations: 375.1 kB / 3.785 GB, free: 60.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01611/9.036, allocations: 8.66 MB / 3.793 GB, free: 60.38 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/9.036, allocations: 72.59 kB / 3.793 GB, free: 60.38 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003762/9.037, allocations: 78.02 kB / 3.793 GB, free: 60.37 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003921/9.04, allocations: 1.484 MB / 3.795 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/9.041, allocations: 10.03 kB / 3.795 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/9.041, allocations: 34.34 kB / 3.795 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.099e-05/9.041, allocations: 54.33 kB / 3.795 GB, free: 60.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003208/9.044, allocations: 1.342 MB / 3.796 GB, free: 60.08 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.007618/9.052, allocations: 6.55 MB / 3.802 GB, free: 55.91 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/9.054, allocations: 1.025 MB / 3.803 GB, free: 55.83 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007619/9.055, allocations: 464.6 kB / 3.804 GB, free: 55.8 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0575/9.112, allocations: 35.28 MB / 3.838 GB, free: 32.36 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.406e-05/9.113, allocations: 49.28 kB / 3.838 GB, free: 32.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 3.767e-06/9.113, allocations: 0 / 3.838 GB, free: 32.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.009829/9.122, allocations: 3.354 MB / 3.842 GB, free: 30.98 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/9.123, allocations: 190.8 kB / 3.842 GB, free: 30.76 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009514/9.124, allocations: 0.7145 MB / 3.842 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.438e-05/9.124, allocations: 37.61 kB / 3.842 GB, free: 30.42 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/9.124, allocations: 422 kB / 3.843 GB, free: 30.09 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000167/9.124, allocations: 209.3 kB / 3.843 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/9.124, allocations: 14.84 kB / 3.843 GB, free: 29.92 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001252/9.124, allocations: 398 kB / 3.843 GB, free: 29.57 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007866/9.125, allocations: 420 kB / 3.844 GB, free: 29.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008643/9.126, allocations: 0.6217 MB / 3.845 GB, free: 29.05 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/9.128, allocations: 1.035 MB / 3.846 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/9.128, allocations: 3.062 kB / 3.846 GB, free: 28.52 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002498/9.13, allocations: 1.363 MB / 3.847 GB, free: 28.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001497/9.13, allocations: 261 kB / 3.847 GB, free: 27.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/9.13, allocations: 7.344 kB / 3.847 GB, free: 27.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00316/9.133, allocations: 0.6849 MB / 3.848 GB, free: 27.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/9.134, allocations: 166.5 kB / 3.848 GB, free: 27.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/9.136, allocations: 1.307 MB / 3.849 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/9.137, allocations: 108.8 kB / 3.849 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.617e-05/9.137, allocations: 37.3 kB / 3.849 GB, free: 26.78 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/9.137, allocations: 3.906 kB / 3.849 GB, free: 26.78 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002426/9.139, allocations: 1.23 MB / 3.851 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/9.139, allocations: 7.719 kB / 3.851 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001627/9.141, allocations: 440.4 kB / 3.851 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005721/9.141, allocations: 171.8 kB / 3.851 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/9.143, allocations: 1.109 MB / 3.852 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009904/9.144, allocations: 105.4 kB / 3.852 GB, free: 25.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/9.144, allocations: 38.25 kB / 3.852 GB, free: 25.49 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.0006474/9.144, allocations: 369 kB / 3.853 GB, free: 25.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/9.144, allocations: 84.66 kB / 3.853 GB, free: 25.17 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003908/9.148, allocations: 3.348 MB / 3.856 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-05/9.148, allocations: 36.66 kB / 3.856 GB, free: 23.69 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/9.148, allocations: 0 / 3.856 GB, free: 23.69 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002824/9.151, allocations: 2.808 MB / 3.859 GB, free: 22.29 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00567/9.157, allocations: 4.596 MB / 3.863 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/9.157, allocations: 0 / 3.863 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006606/9.158, allocations: 180.7 kB / 3.863 GB, free: 20.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/9.158, allocations: 98.05 kB / 3.864 GB, free: 20.21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/9.158, allocations: 18.72 kB / 3.864 GB, free: 20.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003485/9.159, allocations: 0.6501 MB / 3.864 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/9.159, allocations: 7.625 kB / 3.864 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/9.162, allocations: 2.931 MB / 3.867 GB, free: 18.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008133/9.163, allocations: 453.8 kB / 3.868 GB, free: 17.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/9.163, allocations: 15.78 kB / 3.868 GB, free: 17.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009255/9.164, allocations: 96.36 kB / 3.868 GB, free: 17.92 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/9.164, allocations: 62.73 kB / 3.868 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.378e-05/9.165, allocations: 30.59 kB / 3.868 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001275/9.166, allocations: 0.7936 MB / 3.869 GB, free: 17.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/9.166, allocations: 0 / 3.869 GB, free: 17.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007639/9.173, allocations: 1.702 MB / 3.87 GB, free: 17.22 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.01062/9.184, allocations: 1.899 MB / 3.872 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004203/9.188, allocations: 1.872 MB / 3.874 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/9.188, allocations: 0 / 3.874 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001414/9.19, allocations: 0.9053 MB / 3.875 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003174/9.193, allocations: 477.5 kB / 3.875 GB, free: 15.62 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005272/9.198, allocations: 3.79 MB / 3.879 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/9.199, allocations: 1.299 MB / 3.88 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003677/9.199, allocations: 92.11 kB / 3.88 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of SimCode: time 9.92e-07/9.199, allocations: 0 / 3.88 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of Templates: time 0.4093/9.609, allocations: 43.18 MB / 3.922 GB, free: 75.93 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches