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.0009531/0.0009531, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008219/0.000822, allocations: 89.41 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1649/0.1649, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.415e-05/2.416e-05, allocations: 4 kB / 460.4 MB, free: 70.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08591/0.08595, allocations: 63.24 MB / 0.5114 GB, free: 6.82 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.283/6.369, allocations: 2.839 GB / 3.35 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003351/6.369, allocations: 73.28 kB / 3.35 GB, free: 143.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.678/8.047, allocations: 0.4969 GB / 3.847 GB, free: 59.54 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.623e-06/8.047, allocations: 0 / 3.847 GB, free: 59.54 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.283e-05/8.047, allocations: 42 kB / 3.847 GB, free: 59.54 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.009003/8.056, allocations: 2.993 MB / 3.85 GB, free: 58 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/8.056, allocations: 8.344 kB / 3.85 GB, free: 58 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004234/8.06, allocations: 0.7072 MB / 3.851 GB, free: 57.82 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003341/8.064, allocations: 1.577 MB / 3.853 GB, free: 57.07 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/8.064, allocations: 179.5 kB / 3.853 GB, free: 57 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002777/8.064, allocations: 175.8 kB / 3.853 GB, free: 56.94 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005314/8.069, allocations: 3.526 MB / 3.856 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.045e-05/8.069, allocations: 7.75 kB / 3.856 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001978/8.07, allocations: 75.03 kB / 3.856 GB, free: 55.41 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001299/8.07, allocations: 170.9 kB / 3.857 GB, free: 55.38 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00504/8.075, allocations: 3.334 MB / 3.86 GB, free: 54.32 MB / 0.5417 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.01517/8.09, allocations: 14.14 MB / 3.874 GB, free: 44.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003601/8.094, allocations: 2.145 MB / 3.876 GB, free: 43.48 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00115/8.095, allocations: 1.076 MB / 3.877 GB, free: 42.57 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4706/8.565, allocations: 70.64 MB / 3.946 GB, free: 73.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004413/8.57, allocations: 1.687 MB / 3.947 GB, free: 73.08 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 5.06e-06/8.57, allocations: 0 / 3.947 GB, free: 73.08 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.01788/8.588, allocations: 8.147 MB / 3.955 GB, free: 71.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/8.588, allocations: 282.6 kB / 3.956 GB, free: 71.4 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002028/8.59, allocations: 1.179 MB / 3.957 GB, free: 71.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002093/8.59, allocations: 59.55 kB / 3.957 GB, free: 71.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007547/8.591, allocations: 0.8198 MB / 3.958 GB, free: 70.89 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005846/8.592, allocations: 0.604 MB / 3.958 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/8.592, allocations: 44.59 kB / 3.958 GB, free: 70.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001538/8.592, allocations: 397.3 kB / 3.959 GB, free: 70.28 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/8.594, allocations: 1.143 MB / 3.96 GB, free: 70.27 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/8.596, allocations: 1.696 MB / 3.961 GB, free: 69.65 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002075/8.598, allocations: 1.374 MB / 3.963 GB, free: 69.63 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/8.598, allocations: 7.656 kB / 3.963 GB, free: 69.63 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005856/8.604, allocations: 3.976 MB / 3.967 GB, free: 69.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001265/8.605, allocations: 6.281 MB / 3.973 GB, free: 62.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/8.605, allocations: 18.06 kB / 3.973 GB, free: 62.93 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01287/8.618, allocations: 3.459 MB / 3.976 GB, free: 62.89 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/8.619, allocations: 336 kB / 3.976 GB, free: 62.89 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00508/8.624, allocations: 3.812 MB / 3.98 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/8.627, allocations: 280 kB / 3.98 GB, free: 62.31 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003628/8.627, allocations: 107.7 kB / 3.981 GB, free: 62.31 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/8.627, allocations: 3.719 kB / 3.981 GB, free: 62.31 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005913/8.633, allocations: 3.585 MB / 3.984 GB, free: 62.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.075e-05/8.633, allocations: 15.28 kB / 3.984 GB, free: 62.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007521/8.641, allocations: 2.266 MB / 3.986 GB, free: 62.22 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/8.642, allocations: 364.1 kB / 3.987 GB, free: 62.22 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/8.646, allocations: 3.104 MB / 3.99 GB, free: 61.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002441/8.649, allocations: 262.8 kB / 3.99 GB, free: 61.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003725/8.649, allocations: 105.1 kB / 3.99 GB, free: 61.65 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) 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 () * 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.0008228/8.65, allocations: 235.2 kB / 3.99 GB, free: 61.54 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006013/8.65, allocations: 164.2 kB / 3.99 GB, free: 61.46 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007999/8.658, allocations: 6.769 MB / 3.997 GB, free: 60.94 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.373e-05/8.659, allocations: 75.66 kB / 3.997 GB, free: 60.94 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/8.659, allocations: 0 / 3.997 GB, free: 60.94 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005255/8.664, allocations: 5.444 MB / 4.002 GB, free: 60.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/8.676, allocations: 9.464 MB / 4.012 GB, free: 59.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/8.676, allocations: 3.031 kB / 4.012 GB, free: 59.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/8.677, allocations: 441.5 kB / 4.012 GB, free: 59.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/8.679, allocations: 439.3 kB / 4.012 GB, free: 59.54 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/8.679, allocations: 64.78 kB / 4.013 GB, free: 59.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/8.68, allocations: 3.22 MB / 4.016 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/8.68, allocations: 3.5 kB / 4.016 GB, free: 56.95 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008187/8.688, allocations: 6.748 MB / 4.022 GB, free: 56.34 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001847/8.69, allocations: 0.7667 MB / 4.023 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006503/8.691, allocations: 51.89 kB / 4.023 GB, free: 56.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00199/8.693, allocations: 213 kB / 4.023 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/8.693, allocations: 183.3 kB / 4.023 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/8.694, allocations: 69.69 kB / 4.024 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001834/8.695, allocations: 1.219 MB / 4.025 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.71e-07/8.695, allocations: 0 / 4.025 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008687/8.704, allocations: 2.381 MB / 4.027 GB, free: 55.52 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 () * 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.009928/8.714, allocations: 2.046 MB / 4.029 GB, free: 55.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00888/8.723, allocations: 5.115 MB / 4.034 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/8.723, allocations: 3.125 kB / 4.034 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00325/8.726, allocations: 2.275 MB / 4.036 GB, free: 52.66 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/8.731, allocations: 0.787 MB / 4.037 GB, free: 52.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008269/8.739, allocations: 5.681 MB / 4.043 GB, free: 50.47 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/8.74, allocations: 2.057 MB / 4.045 GB, free: 49.61 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003193/8.743, allocations: 1.616 MB / 4.046 GB, free: 49.59 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/8.744, allocations: 144 kB / 4.046 GB, free: 49.57 MB / 0.5573 GB Notification: Performance of SimCode: time 7.51e-07/8.744, allocations: 0 / 4.046 GB, free: 49.57 MB / 0.5573 GB Notification: Performance of Templates: time 0.09711/8.841, allocations: 85.34 MB / 4.13 GB, free: 6.93 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/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