Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009737/0.0009738, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.5 MB / 245.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009103/0.0009103, allocations: 102.1 kB / 297.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3346/0.3346, allocations: 44.82 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.000293, allocations: 8 kB / 467.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3131, allocations: 62.95 MB / 0.5184 GB, free: 37.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.743/7.056, allocations: 2.828 GB / 3.346 GB, free: 160 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/7.057, allocations: 89.7 kB / 3.346 GB, free: 160 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.52/9.577, allocations: 0.7026 GB / 4.049 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.993e-06/9.577, allocations: 0 / 4.049 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001789/9.577, allocations: 31.92 kB / 4.049 GB, free: 45.75 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01133/9.588, allocations: 2.907 MB / 4.052 GB, free: 44.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/9.589, allocations: 7.062 kB / 4.052 GB, free: 44.09 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003644/9.592, allocations: 479.2 kB / 4.052 GB, free: 43.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03006/9.622, allocations: 15.47 MB / 4.068 GB, free: 40.27 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/9.623, allocations: 153.4 kB / 4.068 GB, free: 40.17 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004889/9.623, allocations: 95.25 kB / 4.068 GB, free: 40.14 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004901/9.628, allocations: 1.902 MB / 4.07 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/9.628, allocations: 3.906 kB / 4.07 GB, free: 39.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002625/9.628, allocations: 45.45 kB / 4.07 GB, free: 39.24 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/9.628, allocations: 75.16 kB / 4.07 GB, free: 39.23 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004084/9.633, allocations: 1.777 MB / 4.072 GB, free: 38.65 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.01138/9.644, allocations: 8.527 MB / 4.08 GB, free: 32.24 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002924/9.647, allocations: 1.402 MB / 4.081 GB, free: 31.58 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009066/9.648, allocations: 0.5248 MB / 4.082 GB, free: 31.35 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1202/9.768, allocations: 70.42 MB / 4.15 GB, free: 2.598 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002762/9.771, allocations: 0.89 MB / 4.151 GB, free: 1.668 MB / 0.573 GB Notification: Performance of pre-optimization done (n=82): time 5.07e-06/9.771, allocations: 0 / 4.151 GB, free: 1.668 MB / 0.573 GB Notification: Performance of matching and sorting (n=86): time 0.3845/10.16, allocations: 4.65 MB / 4.156 GB, free: 77.88 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001979/10.16, allocations: 405.1 kB / 4.156 GB, free: 77.41 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/10.16, allocations: 1.042 MB / 4.157 GB, free: 77.25 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001125/10.16, allocations: 42.58 kB / 4.157 GB, free: 77.22 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004679/10.16, allocations: 0.5669 MB / 4.158 GB, free: 77.01 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/10.16, allocations: 302.8 kB / 4.158 GB, free: 76.86 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.147e-05/10.16, allocations: 25.56 kB / 4.158 GB, free: 76.86 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001092/10.16, allocations: 356.9 kB / 4.159 GB, free: 76.56 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009777/10.16, allocations: 0.5329 MB / 4.159 GB, free: 76.56 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/10.16, allocations: 1.016 MB / 4.16 GB, free: 76 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/10.16, allocations: 1.548 MB / 4.162 GB, free: 75.5 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/10.16, allocations: 3.875 kB / 4.162 GB, free: 75.5 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003615/10.17, allocations: 1.938 MB / 4.163 GB, free: 75.38 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002428/10.17, allocations: 0.4933 MB / 4.164 GB, free: 74.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/10.17, allocations: 12.53 kB / 4.164 GB, free: 74.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005342/10.17, allocations: 1.14 MB / 4.165 GB, free: 74.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008889/10.17, allocations: 250.1 kB / 4.165 GB, free: 74.79 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001907/10.17, allocations: 1.498 MB / 4.167 GB, free: 74.27 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/10.18, allocations: 127.5 kB / 4.167 GB, free: 74.26 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/10.18, allocations: 65.88 kB / 4.167 GB, free: 74.26 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/10.18, allocations: 6.406 kB / 4.167 GB, free: 74.26 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003109/10.18, allocations: 1.684 MB / 4.169 GB, free: 74.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/10.18, allocations: 13.16 kB / 4.169 GB, free: 74.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00132/10.18, allocations: 376.4 kB / 4.169 GB, free: 74.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/10.18, allocations: 283.4 kB / 4.169 GB, free: 74.22 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/10.18, allocations: 1.06 MB / 4.17 GB, free: 73.69 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/10.18, allocations: 133 kB / 4.17 GB, free: 73.68 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/10.18, allocations: 69.81 kB / 4.17 GB, free: 73.68 MB / 0.573 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007937/10.19, allocations: 463.5 kB / 4.171 GB, free: 73.5 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/10.19, allocations: 129.5 kB / 4.171 GB, free: 73.43 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004647/10.19, allocations: 4.061 MB / 4.175 GB, free: 73.09 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.384e-05/10.19, allocations: 46.72 kB / 4.175 GB, free: 73.09 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/10.19, allocations: 3.531 kB / 4.175 GB, free: 73.09 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/10.19, allocations: 6 kB / 4.175 GB, free: 73.09 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006158/10.2, allocations: 5.54 MB / 4.18 GB, free: 72.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/10.2, allocations: 0 / 4.18 GB, free: 72.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/10.2, allocations: 174.3 kB / 4.181 GB, free: 72.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006264/10.2, allocations: 1.568 MB / 4.182 GB, free: 72.45 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002253/10.2, allocations: 29.33 kB / 4.182 GB, free: 72.45 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/10.21, allocations: 2.093 MB / 4.184 GB, free: 71.39 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/10.21, allocations: 4.688 kB / 4.184 GB, free: 71.39 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006963/10.21, allocations: 3.879 MB / 4.188 GB, free: 70.95 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/10.21, allocations: 0.5383 MB / 4.189 GB, free: 70.75 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003205/10.21, allocations: 26.34 kB / 4.189 GB, free: 70.75 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/10.22, allocations: 96.42 kB / 4.189 GB, free: 70.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/10.22, allocations: 81.56 kB / 4.189 GB, free: 70.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.689e-05/10.22, allocations: 33.64 kB / 4.189 GB, free: 70.75 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001862/10.22, allocations: 1.044 MB / 4.19 GB, free: 70.64 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.2e-07/10.22, allocations: 4.031 kB / 4.19 GB, free: 70.64 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009806/10.23, allocations: 2.019 MB / 4.192 GB, free: 70.56 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01065/10.24, allocations: 2.299 MB / 4.194 GB, free: 70.32 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005613/10.24, allocations: 2.478 MB / 4.196 GB, free: 70.27 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/10.24, allocations: 0.8438 kB / 4.196 GB, free: 70.27 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/10.25, allocations: 1.051 MB / 4.197 GB, free: 70.26 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/10.25, allocations: 0.6401 MB / 4.198 GB, free: 70.25 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/10.26, allocations: 4.427 MB / 4.202 GB, free: 68.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008698/10.26, allocations: 1.441 MB / 4.204 GB, free: 67.68 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001926/10.26, allocations: 0.9816 MB / 4.205 GB, free: 67.67 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/10.26, allocations: 110.7 kB / 4.205 GB, free: 67.66 MB / 0.573 GB Notification: Performance of SimCode: time 7.51e-07/10.26, allocations: 0 / 4.205 GB, free: 67.66 MB / 0.573 GB Notification: Performance of Templates: time 0.09141/10.35, allocations: 66.83 MB / 4.27 GB, free: 65.28 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/LumpedPipeInitialization/LumpedPipeInitialization.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches