Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001636/0.001636, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.618/1.618, allocations: 226.5 MB / 245.4 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.0009929/0.0009924, allocations: 103.2 kB / 297.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4338/0.4338, allocations: 44.83 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003341, allocations: 8 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4745/0.4748, allocations: 62.96 MB / 0.5184 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.795/8.27, allocations: 2.839 GB / 3.358 GB, free: 147.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003702/8.27, allocations: 85.25 kB / 3.358 GB, free: 147.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.854/10.12, allocations: 481 MB / 3.828 GB, free: 51.36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.094e-06/10.12, allocations: 0 / 3.828 GB, free: 51.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001167/10.12, allocations: 47.09 kB / 3.828 GB, free: 51.35 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01357/10.14, allocations: 3.168 MB / 3.831 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.372e-05/10.14, allocations: 11.72 kB / 3.831 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006735/10.14, allocations: 0.7116 MB / 3.831 GB, free: 49.54 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03254/10.18, allocations: 15.91 MB / 3.847 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/10.18, allocations: 171.9 kB / 3.847 GB, free: 45.66 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007295/10.18, allocations: 179.3 kB / 3.847 GB, free: 45.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007211/10.19, allocations: 3.601 MB / 3.851 GB, free: 44.14 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.73e-05/10.19, allocations: 7.844 kB / 3.851 GB, free: 44.14 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002437/10.19, allocations: 74.38 kB / 3.851 GB, free: 44.09 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/10.19, allocations: 172.9 kB / 3.851 GB, free: 44.06 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006943/10.19, allocations: 3.513 MB / 3.855 GB, free: 43 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.01769/10.21, allocations: 14.1 MB / 3.868 GB, free: 32.91 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/10.22, allocations: 2.29 MB / 3.871 GB, free: 32.12 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/10.22, allocations: 1.2 MB / 3.872 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5539/10.77, allocations: 70.39 MB / 3.94 GB, free: 62.47 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005041/10.78, allocations: 1.737 MB / 3.942 GB, free: 62.35 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 6.502e-06/10.78, allocations: 3.375 kB / 3.942 GB, free: 62.35 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02371/10.8, allocations: 9.458 MB / 3.951 GB, free: 61.02 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/10.8, allocations: 285.6 kB / 3.952 GB, free: 60.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/10.8, allocations: 1.318 MB / 3.953 GB, free: 60.54 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003298/10.8, allocations: 59.33 kB / 3.953 GB, free: 60.51 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007528/10.8, allocations: 0.8164 MB / 3.954 GB, free: 60.2 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006399/10.8, allocations: 0.6118 MB / 3.954 GB, free: 59.89 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/10.8, allocations: 43.91 kB / 3.954 GB, free: 59.89 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001553/10.8, allocations: 390.1 kB / 3.955 GB, free: 59.59 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002174/10.81, allocations: 1.284 MB / 3.956 GB, free: 59.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002658/10.81, allocations: 1.839 MB / 3.958 GB, free: 58.96 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005137/10.81, allocations: 3.137 MB / 3.961 GB, free: 58.36 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.31e-05/10.81, allocations: 3.938 kB / 3.961 GB, free: 58.36 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009861/10.82, allocations: 4.34 MB / 3.965 GB, free: 58.19 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004333/10.82, allocations: 0.5643 MB / 3.966 GB, free: 57.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.078e-05/10.82, allocations: 17.84 kB / 3.966 GB, free: 57.54 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/10.84, allocations: 3.675 MB / 3.969 GB, free: 57.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/10.84, allocations: 330.7 kB / 3.97 GB, free: 57.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007086/10.85, allocations: 4.055 MB / 3.974 GB, free: 56.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003029/10.85, allocations: 277 kB / 3.974 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/10.85, allocations: 108.7 kB / 3.974 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/10.85, allocations: 7.906 kB / 3.974 GB, free: 56.91 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009607/10.86, allocations: 3.934 MB / 3.978 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.723e-05/10.86, allocations: 16.69 kB / 3.978 GB, free: 56.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01026/10.87, allocations: 2.428 MB / 3.98 GB, free: 56.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/10.87, allocations: 371.9 kB / 3.981 GB, free: 56.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005561/10.88, allocations: 3.337 MB / 3.984 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/10.88, allocations: 264.4 kB / 3.984 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005633/10.88, allocations: 105.5 kB / 3.984 GB, free: 56.24 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.002432/10.88, allocations: 0.7012 MB / 3.985 GB, free: 56.05 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007815/10.89, allocations: 171.6 kB / 3.985 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/10.9, allocations: 6.848 MB / 3.992 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-05/10.9, allocations: 75.64 kB / 3.992 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.704e-05/10.9, allocations: 3.781 kB / 3.992 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007789/10.91, allocations: 5.499 MB / 3.997 GB, free: 54.79 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/10.92, allocations: 9.571 MB / 4.007 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/10.92, allocations: 3 kB / 4.007 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/10.92, allocations: 439.1 kB / 4.007 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/10.93, allocations: 472.1 kB / 4.007 GB, free: 54.15 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002621/10.93, allocations: 64.19 kB / 4.007 GB, free: 54.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/10.93, allocations: 3.215 MB / 4.011 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/10.93, allocations: 0 / 4.011 GB, free: 51.55 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01099/10.94, allocations: 7.056 MB / 4.017 GB, free: 49.61 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/10.94, allocations: 0.7735 MB / 4.018 GB, free: 49.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009599/10.94, allocations: 55.22 kB / 4.018 GB, free: 49.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/10.95, allocations: 207.7 kB / 4.018 GB, free: 49.08 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004712/10.95, allocations: 189.9 kB / 4.019 GB, free: 49.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/10.95, allocations: 64.8 kB / 4.019 GB, free: 49.04 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002519/10.95, allocations: 1.237 MB / 4.02 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.9e-07/10.95, allocations: 0 / 4.02 GB, free: 48.57 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01209/10.96, allocations: 2.33 MB / 4.022 GB, free: 48.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.01263/10.97, allocations: 1.949 MB / 4.024 GB, free: 48.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01328/10.99, allocations: 5.488 MB / 4.029 GB, free: 46.37 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.575e-05/10.99, allocations: 3.906 kB / 4.029 GB, free: 46.37 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.004223/10.99, allocations: 2.372 MB / 4.032 GB, free: 45.47 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005934/11, allocations: 0.8171 MB / 4.033 GB, free: 45.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/11.01, allocations: 8.14 MB / 4.041 GB, free: 41.39 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0028/11.01, allocations: 2.01 MB / 4.043 GB, free: 40.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005489/11.02, allocations: 1.441 MB / 4.044 GB, free: 40.51 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/11.02, allocations: 154.5 kB / 4.044 GB, free: 40.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.964e-06/11.02, allocations: 0 / 4.044 GB, free: 40.5 MB / 0.5573 GB Notification: Performance of Templates: time 0.1262/11.15, allocations: 84.38 MB / 4.126 GB, free: 0.8086 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches