Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002998/0.002998, allocations: 184.6 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.00113, allocations: 86.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.286/0.286, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004161/0.0004161, allocations: 12 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.168, allocations: 58.85 MB / 490.2 MB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.681/7.849, allocations: 2.833 GB / 3.312 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/7.849, allocations: 81.89 kB / 3.312 GB, free: 73.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.142/9.991, allocations: 0.4925 GB / 3.805 GB, free: 46.61 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.146e-06/9.991, allocations: 0 / 3.805 GB, free: 46.61 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002293/9.992, allocations: 47.09 kB / 3.805 GB, free: 46.61 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01518/10.01, allocations: 3.177 MB / 3.808 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/10.01, allocations: 14.11 kB / 3.808 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006148/10.01, allocations: 0.7122 MB / 3.808 GB, free: 45.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006406/10.02, allocations: 1.595 MB / 3.81 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004233/10.02, allocations: 169.6 kB / 3.81 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/10.02, allocations: 178.5 kB / 3.81 GB, free: 45.1 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/10.03, allocations: 3.584 MB / 3.814 GB, free: 44.65 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-05/10.03, allocations: 10.02 kB / 3.814 GB, free: 44.64 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005392/10.03, allocations: 74.64 kB / 3.814 GB, free: 44.64 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001805/10.03, allocations: 176.8 kB / 3.814 GB, free: 44.64 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007418/10.04, allocations: 3.508 MB / 3.817 GB, free: 44.62 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.01735/10.06, allocations: 14.14 MB / 3.831 GB, free: 36.88 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/10.06, allocations: 2.271 MB / 3.833 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1157/10.18, allocations: 63.44 MB / 3.895 GB, free: 29.47 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005238/10.18, allocations: 1.726 MB / 3.897 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 7.715e-06/10.18, allocations: 0 / 3.897 GB, free: 29.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02547/10.21, allocations: 9.45 MB / 3.906 GB, free: 27.67 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002304/10.21, allocations: 278.5 kB / 3.907 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/10.21, allocations: 1.191 MB / 3.908 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003222/10.21, allocations: 56.7 kB / 3.908 GB, free: 27.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001221/10.21, allocations: 0.8266 MB / 3.909 GB, free: 26.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007347/10.21, allocations: 0.6015 MB / 3.909 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/10.21, allocations: 41.31 kB / 3.909 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002236/10.22, allocations: 394.6 kB / 3.91 GB, free: 26.07 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002453/10.22, allocations: 1.279 MB / 3.911 GB, free: 26.06 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002843/10.22, allocations: 1.835 MB / 3.913 GB, free: 25.41 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/10.22, allocations: 1.509 MB / 3.914 GB, free: 25.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/10.22, allocations: 3.812 kB / 3.914 GB, free: 25.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007392/10.23, allocations: 4.335 MB / 3.918 GB, free: 25.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002395/10.23, allocations: 6.272 MB / 3.924 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-05/10.23, allocations: 13.78 kB / 3.925 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01511/10.25, allocations: 3.668 MB / 3.928 GB, free: 18.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/10.25, allocations: 332.4 kB / 3.928 GB, free: 18.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00672/10.26, allocations: 4.058 MB / 3.932 GB, free: 17.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/10.26, allocations: 273.5 kB / 3.933 GB, free: 17.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004273/10.26, allocations: 108.6 kB / 3.933 GB, free: 17.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/10.26, allocations: 7.406 kB / 3.933 GB, free: 17.84 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008852/10.27, allocations: 3.937 MB / 3.937 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.163e-05/10.27, allocations: 16.78 kB / 3.937 GB, free: 17.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009296/10.28, allocations: 2.431 MB / 3.939 GB, free: 17.66 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/10.28, allocations: 370.2 kB / 3.939 GB, free: 17.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/10.29, allocations: 3.343 MB / 3.943 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/10.29, allocations: 263.2 kB / 3.943 GB, free: 33.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000438/10.29, allocations: 100.9 kB / 3.943 GB, free: 33.04 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001986/10.29, allocations: 0.7114 MB / 3.944 GB, free: 32.83 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005908/10.29, allocations: 164 kB / 3.944 GB, free: 32.75 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009854/10.3, allocations: 6.848 MB / 3.95 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.316e-05/10.3, allocations: 77.02 kB / 3.951 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/10.3, allocations: 0 / 3.951 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006582/10.31, allocations: 5.506 MB / 3.956 GB, free: 30.04 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/10.32, allocations: 9.569 MB / 3.965 GB, free: 26.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/10.32, allocations: 3.719 kB / 3.965 GB, free: 26.15 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/10.33, allocations: 441.7 kB / 3.966 GB, free: 26.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/10.33, allocations: 481.1 kB / 3.966 GB, free: 25.98 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/10.33, allocations: 60.09 kB / 3.966 GB, free: 25.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/10.33, allocations: 3.219 MB / 3.969 GB, free: 23.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/10.33, allocations: 5.922 kB / 3.969 GB, free: 23.08 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/10.34, allocations: 7.13 MB / 3.976 GB, free: 16.74 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/10.34, allocations: 0.7635 MB / 3.977 GB, free: 16.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00075/10.34, allocations: 55.75 kB / 3.977 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/10.34, allocations: 213.3 kB / 3.977 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003755/10.35, allocations: 184.4 kB / 3.978 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/10.35, allocations: 71.22 kB / 3.978 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00215/10.35, allocations: 1.24 MB / 3.979 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.71e-07/10.35, allocations: 0 / 3.979 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01104/10.36, allocations: 2.36 MB / 3.981 GB, free: 12.33 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01217/10.37, allocations: 2.015 MB / 3.983 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01318/10.38, allocations: 5.482 MB / 3.988 GB, free: 6.168 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/10.38, allocations: 2.531 kB / 3.988 GB, free: 6.168 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00422/10.39, allocations: 2.374 MB / 3.991 GB, free: 4.117 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004691/10.39, allocations: 0.7983 MB / 3.992 GB, free: 3.531 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3462/10.74, allocations: 8.123 MB / 3.999 GB, free: 86.28 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/10.74, allocations: 2.059 MB / 4.001 GB, free: 85.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003865/10.74, allocations: 1.439 MB / 4.003 GB, free: 85.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006209/10.75, allocations: 159.5 kB / 4.003 GB, free: 85.51 MB / 0.5573 GB Notification: Performance of SimCode: time 1.472e-06/10.75, allocations: 0 / 4.003 GB, free: 85.51 MB / 0.5573 GB Notification: Performance of Templates: time 0.1245/10.87, allocations: 82.35 MB / 4.083 GB, free: 82.59 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches