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.001028/0.001028, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009303/0.0009302, allocations: 95.03 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1931/0.1931, allocations: 45.14 MB / 383.7 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.229e-05/1.231e-05, allocations: 4 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.745/5.848, allocations: 2.827 GB / 3.331 GB, free: 19.94 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/5.848, allocations: 80.2 kB / 3.331 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.205/9.053, allocations: 0.7447 GB / 4.076 GB, free: 47.82 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.673e-06/9.053, allocations: 0 / 4.076 GB, free: 47.82 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001833/9.053, allocations: 31.75 kB / 4.076 GB, free: 47.82 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.01403/9.067, allocations: 2.768 MB / 4.079 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.98e-05/9.067, allocations: 14.89 kB / 4.079 GB, free: 46.41 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00406/9.072, allocations: 477.6 kB / 4.079 GB, free: 46.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003494/9.075, allocations: 1.134 MB / 4.08 GB, free: 46.01 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/9.075, allocations: 110.7 kB / 4.081 GB, free: 45.95 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004582/9.076, allocations: 54.94 kB / 4.081 GB, free: 45.95 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002745/9.078, allocations: 1.344 MB / 4.082 GB, free: 45.94 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/9.081, allocations: 1.459 MB / 4.083 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.854e-05/9.081, allocations: 6.219 kB / 4.083 GB, free: 45.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001831/9.081, allocations: 11.88 kB / 4.083 GB, free: 45.22 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.615e-05/9.082, allocations: 79.39 kB / 4.083 GB, free: 45.21 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.738/9.82, allocations: 149.1 MB / 4.229 GB, free: 46.44 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/9.822, allocations: 0.9246 MB / 4.23 GB, free: 46.23 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006479/9.822, allocations: 374.9 kB / 4.23 GB, free: 46.22 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03199/9.854, allocations: 18.55 MB / 4.248 GB, free: 33.84 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/9.856, allocations: 0.4997 MB / 4.249 GB, free: 33.73 MB / 0.573 GB Notification: Performance of pre-optimization done (n=66): time 3.968e-06/9.856, allocations: 0 / 4.249 GB, free: 33.73 MB / 0.573 GB Notification: Performance of matching and sorting (n=70): time 0.01079/9.866, allocations: 3.115 MB / 4.252 GB, free: 33.07 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/9.867, allocations: 345.6 kB / 4.252 GB, free: 32.67 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/9.868, allocations: 0.8475 MB / 4.253 GB, free: 32.51 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000111/9.868, allocations: 25.7 kB / 4.253 GB, free: 32.48 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006716/9.869, allocations: 0.6244 MB / 4.254 GB, free: 32.22 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003066/9.869, allocations: 243.5 kB / 4.254 GB, free: 32.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/9.87, allocations: 1.406 kB / 4.254 GB, free: 32.1 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001212/9.87, allocations: 354.9 kB / 4.254 GB, free: 31.8 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008018/9.87, allocations: 463.7 kB / 4.255 GB, free: 31.8 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/9.872, allocations: 0.9237 MB / 4.256 GB, free: 31.23 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003554/9.875, allocations: 1.076 MB / 4.257 GB, free: 31.19 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/9.875, allocations: 6.875 kB / 4.257 GB, free: 31.19 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005552/9.881, allocations: 2.119 MB / 4.259 GB, free: 31.06 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001552/9.882, allocations: 5.407 MB / 4.264 GB, free: 25.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.257e-05/9.882, allocations: 13.03 kB / 4.264 GB, free: 25.39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001906/9.884, allocations: 0.6016 MB / 4.265 GB, free: 25.37 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008531/9.885, allocations: 244 kB / 4.265 GB, free: 25.37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/9.888, allocations: 1.631 MB / 4.267 GB, free: 24.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/9.889, allocations: 122.5 kB / 4.267 GB, free: 24.81 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/9.89, allocations: 68.16 kB / 4.267 GB, free: 24.81 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/9.89, allocations: 5.125 kB / 4.267 GB, free: 24.81 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004541/9.894, allocations: 1.762 MB / 4.268 GB, free: 24.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.953e-05/9.894, allocations: 14.38 kB / 4.268 GB, free: 24.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/9.895, allocations: 333.7 kB / 4.269 GB, free: 24.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/9.896, allocations: 286.5 kB / 4.269 GB, free: 24.74 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/9.897, allocations: 1.033 MB / 4.27 GB, free: 24.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/9.899, allocations: 108.6 kB / 4.27 GB, free: 24.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/9.899, allocations: 70.67 kB / 4.27 GB, free: 24.2 MB / 0.573 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($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,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete 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.0004346/9.899, allocations: 158.5 kB / 4.27 GB, free: 24.09 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/9.9, allocations: 112.6 kB / 4.27 GB, free: 24.03 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/9.904, allocations: 2.905 MB / 4.273 GB, free: 23.79 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.458e-05/9.904, allocations: 35.17 kB / 4.273 GB, free: 23.79 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/9.904, allocations: 3.938 kB / 4.273 GB, free: 23.79 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/9.904, allocations: 3.188 kB / 4.273 GB, free: 23.79 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007778/9.912, allocations: 4.565 MB / 4.278 GB, free: 23.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/9.912, allocations: 0 / 4.278 GB, free: 23.11 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/9.913, allocations: 136.8 kB / 4.278 GB, free: 23.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004508/9.917, allocations: 1.525 MB / 4.279 GB, free: 23.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.985e-05/9.917, allocations: 14.66 kB / 4.279 GB, free: 23.02 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/9.92, allocations: 2.269 MB / 4.282 GB, free: 21.96 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.328e-06/9.92, allocations: 3.406 kB / 4.282 GB, free: 21.96 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00592/9.925, allocations: 3.33 MB / 4.285 GB, free: 21.55 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/9.927, allocations: 358.4 kB / 4.285 GB, free: 21.38 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000652/9.928, allocations: 0 / 4.285 GB, free: 21.38 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/9.929, allocations: 74.34 kB / 4.285 GB, free: 21.38 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/9.929, allocations: 61.03 kB / 4.285 GB, free: 21.37 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.695e-05/9.929, allocations: 30.55 kB / 4.285 GB, free: 21.37 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001573/9.931, allocations: 0.6061 MB / 4.286 GB, free: 21.26 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.41e-07/9.931, allocations: 0 / 4.286 GB, free: 21.26 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01044/9.941, allocations: 1.942 MB / 4.288 GB, free: 21.21 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01376/9.955, allocations: 2.517 MB / 4.29 GB, free: 20.84 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005259/9.961, allocations: 2.091 MB / 4.292 GB, free: 20.79 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/9.961, allocations: 0.5625 kB / 4.292 GB, free: 20.79 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001377/9.962, allocations: 0.8082 MB / 4.293 GB, free: 20.79 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/9.965, allocations: 472.9 kB / 4.294 GB, free: 20.76 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/9.97, allocations: 2.319 MB / 4.296 GB, free: 20.17 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/9.971, allocations: 1.341 MB / 4.297 GB, free: 19.43 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003097/9.974, allocations: 1.196 MB / 4.298 GB, free: 19.39 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003178/9.975, allocations: 82.25 kB / 4.298 GB, free: 19.38 MB / 0.573 GB Notification: Performance of SimCode: time 1.924e-06/9.975, allocations: 4 kB / 4.298 GB, free: 19.38 MB / 0.573 GB Notification: Performance of Templates: time 0.08537/10.06, allocations: 54.41 MB / 4.352 GB, free: 14.18 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/jenkins/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