Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002155/0.002155, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.00113/0.001129, allocations: 88.36 kB / 270.9 MB, free: 8.363 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.5156/0.5156, allocations: 43.57 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004551/0.0004552, allocations: 12 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.813/8.938, allocations: 2.824 GB / 3.303 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/8.938, allocations: 82.52 kB / 3.303 GB, free: 97.29 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.335/11.27, allocations: 467.3 MB / 3.759 GB, free: 51.73 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.974e-06/11.27, allocations: 0 / 3.759 GB, free: 51.73 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001274/11.27, allocations: 22.78 kB / 3.76 GB, free: 51.73 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01204/11.28, allocations: 2.266 MB / 3.762 GB, free: 50.79 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/11.28, allocations: 8.875 kB / 3.762 GB, free: 50.79 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004317/11.29, allocations: 372.5 kB / 3.762 GB, free: 50.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/11.29, allocations: 0.8929 MB / 3.763 GB, free: 50.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/11.29, allocations: 74.34 kB / 3.763 GB, free: 50.46 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003135/11.29, allocations: 74.12 kB / 3.763 GB, free: 50.46 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005297/11.3, allocations: 1.488 MB / 3.765 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.66e-05/11.3, allocations: 3.875 kB / 3.765 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001768/11.3, allocations: 36.41 kB / 3.765 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/11.3, allocations: 57.84 kB / 3.765 GB, free: 50.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005864/11.3, allocations: 1.344 MB / 3.766 GB, free: 50.16 MB / 0.5105 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.01212/11.32, allocations: 6.558 MB / 3.772 GB, free: 46 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004391/11.32, allocations: 1.021 MB / 3.773 GB, free: 45.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0995/11.42, allocations: 32 MB / 3.805 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/11.42, allocations: 49.31 kB / 3.805 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=57): time 3.566e-06/11.42, allocations: 0 / 3.805 GB, free: 26.18 MB / 0.5105 GB Notification: Performance of matching and sorting (n=61): time 0.01358/11.43, allocations: 3.351 MB / 3.808 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/11.43, allocations: 193.7 kB / 3.808 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/11.44, allocations: 0.6431 MB / 3.809 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001315/11.44, allocations: 46.22 kB / 3.809 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/11.44, allocations: 422.5 kB / 3.809 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000221/11.44, allocations: 218.2 kB / 3.809 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.554e-05/11.44, allocations: 14.47 kB / 3.809 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.572e-05/11.44, allocations: 344.3 kB / 3.81 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/11.44, allocations: 419.6 kB / 3.81 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/11.44, allocations: 0.6227 MB / 3.811 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/11.44, allocations: 488.1 kB / 3.811 GB, free: 24.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/11.44, allocations: 4 kB / 3.811 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004163/11.45, allocations: 1.314 MB / 3.813 GB, free: 24.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001602/11.45, allocations: 2.269 MB / 3.815 GB, free: 37.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/11.45, allocations: 6.688 kB / 3.815 GB, free: 37.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005708/11.45, allocations: 0.6898 MB / 3.815 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/11.45, allocations: 159.1 kB / 3.816 GB, free: 37.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/11.46, allocations: 1.306 MB / 3.817 GB, free: 37.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/11.46, allocations: 101.2 kB / 3.817 GB, free: 37.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/11.46, allocations: 41.14 kB / 3.817 GB, free: 37.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/11.46, allocations: 3.969 kB / 3.817 GB, free: 37.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004353/11.46, allocations: 1.231 MB / 3.818 GB, free: 37.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/11.46, allocations: 10.8 kB / 3.818 GB, free: 37.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002906/11.47, allocations: 419.1 kB / 3.819 GB, free: 37.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/11.47, allocations: 173 kB / 3.819 GB, free: 37.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/11.47, allocations: 1.109 MB / 3.82 GB, free: 36.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/11.47, allocations: 105.4 kB / 3.82 GB, free: 36.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/11.47, allocations: 43.2 kB / 3.82 GB, free: 36.53 MB / 0.5261 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.000836/11.47, allocations: 365.3 kB / 3.82 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/11.47, allocations: 79 kB / 3.82 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006566/11.48, allocations: 3.344 MB / 3.824 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.114e-05/11.48, allocations: 40.39 kB / 3.824 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/11.48, allocations: 6.859 kB / 3.824 GB, free: 35.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005895/11.48, allocations: 2.802 MB / 3.826 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00972/11.49, allocations: 4.588 MB / 3.831 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/11.49, allocations: 8.734 kB / 3.831 GB, free: 34.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/11.5, allocations: 182.3 kB / 3.831 GB, free: 34.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006443/11.5, allocations: 94.28 kB / 3.831 GB, free: 34.91 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/11.5, allocations: 22.14 kB / 3.831 GB, free: 34.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006255/11.5, allocations: 0.6452 MB / 3.832 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/11.5, allocations: 0 / 3.832 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/11.5, allocations: 2.958 MB / 3.835 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/11.5, allocations: 463.8 kB / 3.835 GB, free: 32.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000318/11.51, allocations: 19.47 kB / 3.835 GB, free: 32.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/11.51, allocations: 89.06 kB / 3.835 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/11.51, allocations: 68.5 kB / 3.835 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-05/11.51, allocations: 23.44 kB / 3.835 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001608/11.51, allocations: 0.8013 MB / 3.836 GB, free: 32.35 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.21e-07/11.51, allocations: 3.906 kB / 3.836 GB, free: 32.35 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008357/11.52, allocations: 1.735 MB / 3.838 GB, free: 31.98 MB / 0.5261 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.01251/11.53, allocations: 1.973 MB / 3.84 GB, free: 31.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005835/11.54, allocations: 1.866 MB / 3.842 GB, free: 30.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/11.54, allocations: 0 / 3.842 GB, free: 30.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002141/11.54, allocations: 0.9061 MB / 3.842 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004312/11.54, allocations: 468.6 kB / 3.843 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/11.55, allocations: 3.784 MB / 3.847 GB, free: 28.32 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/11.55, allocations: 1.339 MB / 3.848 GB, free: 27.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005253/11.55, allocations: 84.8 kB / 3.848 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.183e-06/11.55, allocations: 0 / 3.848 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of Templates: time 0.08772/11.64, allocations: 46.22 MB / 3.893 GB, free: 10.32 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches