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.001072/0.001072, allocations: 177.1 kB / 17.06 MB, free: 5.098 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.464/1.464, allocations: 223.2 MB / 241 MB, free: 10.15 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.001385/0.001385, allocations: 91.02 kB / 292.2 MB, free: 10.72 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.4287/0.4287, allocations: 44.21 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004234/0.0004234, allocations: 8 kB / 459.9 MB, free: 1.793 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4261, allocations: 61.9 MB / 0.5096 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.815/7.242, allocations: 2.829 GB / 3.339 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/7.242, allocations: 83.91 kB / 3.339 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.996/9.238, allocations: 472.4 MB / 3.8 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.445e-06/9.238, allocations: 3.25 kB / 3.8 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.499e-05/9.238, allocations: 24.59 kB / 3.8 GB, free: 51.07 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.0098/9.248, allocations: 2.259 MB / 3.802 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/9.248, allocations: 8.062 kB / 3.802 GB, free: 50.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/9.25, allocations: 373.2 kB / 3.803 GB, free: 50.15 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002701/9.253, allocations: 0.8971 MB / 3.804 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/9.253, allocations: 67.95 kB / 3.804 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001693/9.253, allocations: 77.75 kB / 3.804 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003463/9.257, allocations: 1.484 MB / 3.805 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/9.257, allocations: 3.719 kB / 3.805 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/9.257, allocations: 35.61 kB / 3.805 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/9.257, allocations: 55.66 kB / 3.805 GB, free: 49.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/9.26, allocations: 1.348 MB / 3.807 GB, free: 49.6 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.007862/9.268, allocations: 6.552 MB / 3.813 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/9.271, allocations: 1.024 MB / 3.814 GB, free: 45.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05899/9.33, allocations: 32.02 MB / 3.845 GB, free: 41.94 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/9.33, allocations: 44.22 kB / 3.845 GB, free: 41.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 2.395e-06/9.33, allocations: 7.438 kB / 3.845 GB, free: 41.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.008232/9.338, allocations: 3.346 MB / 3.849 GB, free: 41.29 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/9.338, allocations: 190.8 kB / 3.849 GB, free: 41.07 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008666/9.339, allocations: 0.6495 MB / 3.849 GB, free: 40.94 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.193e-05/9.339, allocations: 39.92 kB / 3.849 GB, free: 40.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/9.34, allocations: 410.3 kB / 3.85 GB, free: 40.73 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/9.34, allocations: 219.8 kB / 3.85 GB, free: 40.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.343e-05/9.34, allocations: 15.91 kB / 3.85 GB, free: 40.59 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001647/9.34, allocations: 387.4 kB / 3.85 GB, free: 40.28 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/9.341, allocations: 423.7 kB / 3.851 GB, free: 40.27 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008439/9.342, allocations: 0.6178 MB / 3.851 GB, free: 40.03 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007884/9.342, allocations: 491.6 kB / 3.852 GB, free: 40 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/9.342, allocations: 3.094 kB / 3.852 GB, free: 40 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002319/9.345, allocations: 1.373 MB / 3.853 GB, free: 39.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008/9.346, allocations: 2.265 MB / 3.856 GB, free: 37.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/9.346, allocations: 3.094 kB / 3.856 GB, free: 37.52 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00321/9.349, allocations: 0.6961 MB / 3.856 GB, free: 37.49 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006045/9.349, allocations: 157.6 kB / 3.856 GB, free: 37.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/9.351, allocations: 1.307 MB / 3.858 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/9.353, allocations: 107.3 kB / 3.858 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.753e-05/9.353, allocations: 39.89 kB / 3.858 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/9.353, allocations: 4.344 kB / 3.858 GB, free: 36.95 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002451/9.355, allocations: 1.236 MB / 3.859 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/9.355, allocations: 7.375 kB / 3.859 GB, free: 36.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/9.357, allocations: 440.1 kB / 3.859 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/9.357, allocations: 167.8 kB / 3.86 GB, free: 36.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/9.359, allocations: 1.1 MB / 3.861 GB, free: 36.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009623/9.36, allocations: 106.1 kB / 3.861 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.746e-05/9.36, allocations: 42.84 kB / 3.861 GB, free: 36.35 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.000684/9.36, allocations: 365.3 kB / 3.861 GB, free: 36.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000175/9.361, allocations: 87.12 kB / 3.861 GB, free: 36.11 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/9.365, allocations: 3.358 MB / 3.864 GB, free: 35.71 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.553e-05/9.365, allocations: 36.16 kB / 3.865 GB, free: 35.71 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/9.365, allocations: 3.625 kB / 3.865 GB, free: 35.71 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003437/9.368, allocations: 2.796 MB / 3.867 GB, free: 35.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006292/9.375, allocations: 4.603 MB / 3.872 GB, free: 34.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/9.375, allocations: 0 / 3.872 GB, free: 34.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006687/9.375, allocations: 178.5 kB / 3.872 GB, free: 34.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004019/9.376, allocations: 93.17 kB / 3.872 GB, free: 34.72 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-05/9.376, allocations: 24.22 kB / 3.872 GB, free: 34.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004358/9.376, allocations: 0.6528 MB / 3.873 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/9.376, allocations: 0 / 3.873 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/9.38, allocations: 2.961 MB / 3.876 GB, free: 33.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000857/9.381, allocations: 462.4 kB / 3.876 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002528/9.381, allocations: 19.5 kB / 3.876 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008382/9.382, allocations: 79.03 kB / 3.876 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/9.382, allocations: 68.5 kB / 3.876 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/9.382, allocations: 31.89 kB / 3.876 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001028/9.383, allocations: 0.7944 MB / 3.877 GB, free: 33.37 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.41e-07/9.383, allocations: 0 / 3.877 GB, free: 33.37 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007782/9.391, allocations: 1.744 MB / 3.879 GB, free: 33.11 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.01069/9.402, allocations: 1.964 MB / 3.881 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003722/9.405, allocations: 1.871 MB / 3.882 GB, free: 32.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/9.405, allocations: 0 / 3.882 GB, free: 32.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/9.407, allocations: 0.9032 MB / 3.883 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/9.409, allocations: 479.7 kB / 3.884 GB, free: 32.55 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004898/9.414, allocations: 3.737 MB / 3.887 GB, free: 30.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007906/9.415, allocations: 1.347 MB / 3.889 GB, free: 30.16 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001515/9.416, allocations: 0.9095 MB / 3.89 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/9.417, allocations: 82.97 kB / 3.89 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of SimCode: time 9.32e-07/9.417, allocations: 0 / 3.89 GB, free: 30.11 MB / 0.5417 GB Notification: Performance of Templates: time 0.06864/9.485, allocations: 51.92 MB / 3.94 GB, free: 23.03 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/jenkins/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