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.0009669/0.0009671, allocations: 198.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008514/0.0008513, allocations: 100.6 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 45.14 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.383e-05/1.385e-05, allocations: 4 kB / 453.2 MB, free: 75.86 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 63.25 MB / 0.5044 GB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.364/7.48, allocations: 2.83 GB / 3.334 GB, free: 103.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/7.48, allocations: 79.95 kB / 3.334 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.714/9.194, allocations: 466.5 MB / 3.789 GB, free: 37.82 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.413e-06/9.194, allocations: 0 / 3.789 GB, free: 37.82 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.812e-05/9.194, allocations: 24 kB / 3.789 GB, free: 37.8 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.007896/9.202, allocations: 2.146 MB / 3.792 GB, free: 35.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/9.202, allocations: 16.03 kB / 3.792 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002446/9.205, allocations: 369.5 kB / 3.792 GB, free: 35.52 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001929/9.207, allocations: 0.8813 MB / 3.793 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.394e-05/9.207, allocations: 43.09 kB / 3.793 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/9.207, allocations: 51.86 kB / 3.793 GB, free: 34.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001288/9.208, allocations: 0.9203 MB / 3.794 GB, free: 33.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/9.21, allocations: 1.087 MB / 3.795 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/9.21, allocations: 0 / 3.795 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.157e-05/9.21, allocations: 4 kB / 3.795 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.699e-05/9.21, allocations: 57.27 kB / 3.795 GB, free: 32.79 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.5656/9.775, allocations: 111.5 MB / 3.904 GB, free: 24.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/9.776, allocations: 473.2 kB / 3.904 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003397/9.777, allocations: 277.6 kB / 3.905 GB, free: 24.13 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03094/9.808, allocations: 18.62 MB / 3.923 GB, free: 27.35 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.382e-05/9.808, allocations: 36.81 kB / 3.923 GB, free: 27.31 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 3.406e-06/9.808, allocations: 1.266 kB / 3.923 GB, free: 27.31 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.006497/9.814, allocations: 2.274 MB / 3.925 GB, free: 26.93 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.058e-05/9.814, allocations: 135.5 kB / 3.925 GB, free: 26.77 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007028/9.815, allocations: 0.5639 MB / 3.926 GB, free: 26.65 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.199e-05/9.815, allocations: 25.7 kB / 3.926 GB, free: 26.62 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/9.815, allocations: 478 kB / 3.926 GB, free: 26.41 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/9.816, allocations: 156.9 kB / 3.926 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/9.816, allocations: 0 / 3.926 GB, free: 26.34 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001779/9.816, allocations: 376.2 kB / 3.927 GB, free: 26.02 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/9.816, allocations: 323.5 kB / 3.927 GB, free: 26.02 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004741/9.817, allocations: 0.5251 MB / 3.927 GB, free: 25.78 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/9.819, allocations: 0.6578 MB / 3.928 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/9.819, allocations: 3.812 kB / 3.928 GB, free: 25.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002929/9.822, allocations: 1.394 MB / 3.929 GB, free: 25.67 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008901/9.822, allocations: 2.267 MB / 3.932 GB, free: 23.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/9.822, allocations: 7.438 kB / 3.932 GB, free: 23.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/9.824, allocations: 473.5 kB / 3.932 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/9.824, allocations: 161 kB / 3.932 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/9.826, allocations: 1.358 MB / 3.934 GB, free: 22.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/9.827, allocations: 115.8 kB / 3.934 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.156e-05/9.827, allocations: 44.27 kB / 3.934 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/9.827, allocations: 3.906 kB / 3.934 GB, free: 22.74 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002788/9.83, allocations: 1.189 MB / 3.935 GB, free: 22.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/9.83, allocations: 10.23 kB / 3.935 GB, free: 22.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/9.831, allocations: 383.7 kB / 3.935 GB, free: 22.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/9.832, allocations: 168.8 kB / 3.935 GB, free: 22.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009713/9.833, allocations: 1.08 MB / 3.937 GB, free: 22.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007595/9.834, allocations: 90.73 kB / 3.937 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.154e-05/9.834, allocations: 39.81 kB / 3.937 GB, free: 22.14 MB / 0.5573 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,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete 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.0002267/9.834, allocations: 136 kB / 3.937 GB, free: 22.04 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/9.834, allocations: 77.19 kB / 3.937 GB, free: 22 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/9.837, allocations: 1.865 MB / 3.939 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/9.837, allocations: 26.41 kB / 3.939 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/9.837, allocations: 0 / 3.939 GB, free: 21.84 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001863/9.838, allocations: 1.785 MB / 3.94 GB, free: 21.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/9.842, allocations: 2.845 MB / 3.943 GB, free: 21.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/9.842, allocations: 0 / 3.943 GB, free: 21.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/9.842, allocations: 124.9 kB / 3.943 GB, free: 21.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002625/9.843, allocations: 79.69 kB / 3.943 GB, free: 21.02 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/9.843, allocations: 14.17 kB / 3.943 GB, free: 21.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004459/9.843, allocations: 0.6734 MB / 3.944 GB, free: 20.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/9.843, allocations: 3.938 kB / 3.944 GB, free: 20.5 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002289/9.846, allocations: 1.984 MB / 3.946 GB, free: 20.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/9.846, allocations: 255 kB / 3.946 GB, free: 20.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/9.846, allocations: 6.578 kB / 3.946 GB, free: 20.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005451/9.847, allocations: 67.3 kB / 3.946 GB, free: 20 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.559e-05/9.847, allocations: 41.33 kB / 3.946 GB, free: 20 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/9.847, allocations: 21.62 kB / 3.946 GB, free: 20 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004928/9.847, allocations: 425.1 kB / 3.947 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.11e-07/9.847, allocations: 0 / 3.947 GB, free: 19.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00666/9.854, allocations: 1.657 MB / 3.948 GB, free: 19.91 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01007/9.864, allocations: 2.075 MB / 3.95 GB, free: 19.66 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002663/9.867, allocations: 1.408 MB / 3.952 GB, free: 19.64 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/9.867, allocations: 2.125 kB / 3.952 GB, free: 19.64 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008877/9.868, allocations: 0.5853 MB / 3.952 GB, free: 19.64 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/9.87, allocations: 324.3 kB / 3.953 GB, free: 19.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/9.873, allocations: 1.729 MB / 3.954 GB, free: 19.16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007954/9.874, allocations: 1.17 MB / 3.956 GB, free: 18.44 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001736/9.875, allocations: 1.083 MB / 3.957 GB, free: 18.41 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/9.876, allocations: 63.83 kB / 3.957 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of SimCode: time 6.92e-07/9.876, allocations: 0 / 3.957 GB, free: 18.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.05638/9.932, allocations: 43.66 MB / 3.999 GB, free: 15.69 MB / 0.5573 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