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.00134/0.001341, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009799/0.0009799, allocations: 103.8 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3966/0.3966, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002963, allocations: 8 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4441/0.4444, allocations: 63.24 MB / 0.5192 GB, free: 43.63 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.188/6.633, allocations: 2.839 GB / 3.358 GB, free: 148.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/6.633, allocations: 82.33 kB / 3.358 GB, free: 148.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.479/8.112, allocations: 0.4979 GB / 3.856 GB, free: 43.46 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.463e-06/8.112, allocations: 0 / 3.856 GB, free: 43.46 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001345/8.112, allocations: 41.94 kB / 3.856 GB, free: 43.45 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.0107/8.123, allocations: 3.205 MB / 3.859 GB, free: 41.78 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/8.123, allocations: 7.594 kB / 3.859 GB, free: 41.78 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004979/8.128, allocations: 0.7105 MB / 3.86 GB, free: 41.61 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00442/8.133, allocations: 1.582 MB / 3.862 GB, free: 40.85 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/8.133, allocations: 167.5 kB / 3.862 GB, free: 40.78 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007575/8.134, allocations: 189.8 kB / 3.862 GB, free: 40.72 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007401/8.141, allocations: 3.584 MB / 3.865 GB, free: 39.28 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.893e-05/8.141, allocations: 3.938 kB / 3.865 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004077/8.141, allocations: 83.95 kB / 3.866 GB, free: 39.22 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/8.142, allocations: 167 kB / 3.866 GB, free: 39.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00664/8.148, allocations: 3.519 MB / 3.869 GB, free: 38.16 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.01577/8.164, allocations: 14.14 MB / 3.883 GB, free: 28.12 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00444/8.169, allocations: 2.275 MB / 3.885 GB, free: 27.29 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3968/8.565, allocations: 70.4 MB / 3.954 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0047/8.57, allocations: 1.725 MB / 3.956 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 6.031e-06/8.57, allocations: 2.406 kB / 3.956 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02176/8.592, allocations: 9.452 MB / 3.965 GB, free: 49.23 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.89e-05/8.592, allocations: 282.2 kB / 3.965 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/8.594, allocations: 1.192 MB / 3.966 GB, free: 48.77 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003113/8.594, allocations: 59.83 kB / 3.966 GB, free: 48.73 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008755/8.595, allocations: 0.8267 MB / 3.967 GB, free: 48.42 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007476/8.596, allocations: 0.5942 MB / 3.968 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/8.596, allocations: 41.69 kB / 3.968 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002051/8.596, allocations: 400.1 kB / 3.968 GB, free: 47.81 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/8.599, allocations: 1.283 MB / 3.969 GB, free: 47.8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002533/8.601, allocations: 1.831 MB / 3.971 GB, free: 47.18 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/8.604, allocations: 1.504 MB / 3.973 GB, free: 47.16 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/8.604, allocations: 12.5 kB / 3.973 GB, free: 47.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007972/8.612, allocations: 4.332 MB / 3.977 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001352/8.613, allocations: 6.274 MB / 3.983 GB, free: 40.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.174e-05/8.614, allocations: 17 kB / 3.983 GB, free: 40.47 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01588/8.629, allocations: 3.669 MB / 3.987 GB, free: 40.44 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/8.631, allocations: 335.5 kB / 3.987 GB, free: 40.44 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007053/8.638, allocations: 4.05 MB / 3.991 GB, free: 39.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/8.641, allocations: 284.9 kB / 3.991 GB, free: 39.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004253/8.641, allocations: 101.8 kB / 3.991 GB, free: 39.85 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/8.641, allocations: 3.656 kB / 3.991 GB, free: 39.85 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008335/8.65, allocations: 3.943 MB / 3.995 GB, free: 39.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.061e-05/8.65, allocations: 19.31 kB / 3.995 GB, free: 39.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01009/8.66, allocations: 2.432 MB / 3.998 GB, free: 39.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/8.662, allocations: 368.7 kB / 3.998 GB, free: 39.75 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005733/8.667, allocations: 3.345 MB / 4.001 GB, free: 39.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/8.67, allocations: 269.1 kB / 4.001 GB, free: 39.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004551/8.671, allocations: 105.6 kB / 4.001 GB, free: 39.18 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.001961/8.673, allocations: 0.6915 MB / 4.002 GB, free: 38.99 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000541/8.673, allocations: 163.6 kB / 4.002 GB, free: 38.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/8.683, allocations: 6.858 MB / 4.009 GB, free: 38.43 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.83e-05/8.683, allocations: 76.08 kB / 4.009 GB, free: 38.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/8.683, allocations: 1.562 kB / 4.009 GB, free: 38.43 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006867/8.69, allocations: 5.504 MB / 4.014 GB, free: 37.73 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/8.703, allocations: 9.571 MB / 4.024 GB, free: 37.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.957e-05/8.703, allocations: 2.969 kB / 4.024 GB, free: 37.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/8.705, allocations: 439.8 kB / 4.024 GB, free: 37.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/8.706, allocations: 478.8 kB / 4.025 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/8.706, allocations: 68.81 kB / 4.025 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/8.708, allocations: 3.216 MB / 4.028 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/8.708, allocations: 0 / 4.028 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008698/8.717, allocations: 7.14 MB / 4.035 GB, free: 33.79 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/8.718, allocations: 0.7645 MB / 4.036 GB, free: 33.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005234/8.719, allocations: 59.27 kB / 4.036 GB, free: 33.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/8.721, allocations: 206.5 kB / 4.036 GB, free: 33.26 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003217/8.721, allocations: 181.1 kB / 4.036 GB, free: 33.24 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/8.721, allocations: 65.91 kB / 4.036 GB, free: 33.23 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001843/8.723, allocations: 1.248 MB / 4.037 GB, free: 32.75 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.42e-07/8.723, allocations: 0 / 4.037 GB, free: 32.75 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008501/8.731, allocations: 2.374 MB / 4.04 GB, free: 32.51 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.008994/8.741, allocations: 2.048 MB / 4.042 GB, free: 32.23 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0101/8.751, allocations: 5.493 MB / 4.047 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/8.751, allocations: 2.078 kB / 4.047 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003326/8.754, allocations: 2.37 MB / 4.049 GB, free: 29.64 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004198/8.758, allocations: 0.791 MB / 4.05 GB, free: 29.48 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/8.77, allocations: 8.132 MB / 4.058 GB, free: 25.42 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001806/8.772, allocations: 2.051 MB / 4.06 GB, free: 24.54 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003543/8.776, allocations: 1.457 MB / 4.061 GB, free: 24.46 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006984/8.776, allocations: 154.9 kB / 4.062 GB, free: 24.44 MB / 0.5573 GB Notification: Performance of SimCode: time 9.32e-07/8.776, allocations: 0 / 4.062 GB, free: 24.44 MB / 0.5573 GB Notification: Performance of Templates: time 0.36/9.136, allocations: 82.48 MB / 4.142 GB, free: 81.47 MB / 0.573 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/jenkins/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