Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 197 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.263/1.263, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008011/0.0008011, allocations: 94.06 kB / 292.1 MB, free: 5.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2001/0.2001, allocations: 45.16 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.283e-05/3.285e-05, allocations: 0 / 460.4 MB, free: 70.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 63.24 MB / 0.5114 GB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.508/6.626, allocations: 2.835 GB / 3.347 GB, free: 145.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/6.627, allocations: 81.45 kB / 3.347 GB, free: 145.4 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.74/9.366, allocations: 0.9132 GB / 4.26 GB, free: 41.67 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.423e-06/9.366, allocations: 0 / 4.26 GB, free: 41.67 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002622/9.367, allocations: 66.95 kB / 4.26 GB, free: 41.66 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01267/9.379, allocations: 4.041 MB / 4.264 GB, free: 39.88 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/9.379, allocations: 12.44 kB / 4.264 GB, free: 39.88 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006121/9.386, allocations: 0.8801 MB / 4.265 GB, free: 39.74 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005439/9.391, allocations: 2.082 MB / 4.267 GB, free: 39.3 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/9.391, allocations: 180 kB / 4.267 GB, free: 39.29 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000744/9.392, allocations: 202.1 kB / 4.267 GB, free: 39.29 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007429/9.399, allocations: 3.675 MB / 4.271 GB, free: 38.77 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/9.4, allocations: 8.688 kB / 4.271 GB, free: 38.77 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002522/9.4, allocations: 103.2 kB / 4.271 GB, free: 38.77 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/9.4, allocations: 164.1 kB / 4.271 GB, free: 38.76 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005328/9.405, allocations: 3.302 MB / 4.274 GB, free: 38.75 MB / 0.573 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.0146/9.42, allocations: 15.58 MB / 4.29 GB, free: 29.43 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003871/9.424, allocations: 2.189 MB / 4.292 GB, free: 29.39 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/9.425, allocations: 1.066 MB / 4.293 GB, free: 29.37 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03967/9.465, allocations: 27.2 MB / 4.319 GB, free: 27.43 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00383/9.468, allocations: 1.717 MB / 4.321 GB, free: 27.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 3.887e-06/9.469, allocations: 0 / 4.321 GB, free: 27.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.01651/9.485, allocations: 7.657 MB / 4.328 GB, free: 26.21 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/9.485, allocations: 259.4 kB / 4.329 GB, free: 25.93 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/9.487, allocations: 1.494 MB / 4.33 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001689/9.487, allocations: 56.33 kB / 4.33 GB, free: 25.72 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006179/9.488, allocations: 0.9867 MB / 4.331 GB, free: 25.33 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003766/9.488, allocations: 0.599 MB / 4.332 GB, free: 24.95 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/9.488, allocations: 39.91 kB / 4.332 GB, free: 24.95 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001622/9.489, allocations: 391.9 kB / 4.332 GB, free: 24.64 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/9.49, allocations: 1.028 MB / 4.333 GB, free: 24.63 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/9.491, allocations: 1.456 MB / 4.335 GB, free: 24.17 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/9.493, allocations: 1.264 MB / 4.336 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.862e-06/9.493, allocations: 3.906 kB / 4.336 GB, free: 24.07 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004263/9.497, allocations: 3.12 MB / 4.339 GB, free: 23.78 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001428/9.498, allocations: 4.484 MB / 4.343 GB, free: 19.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/9.498, allocations: 18.12 kB / 4.343 GB, free: 19.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007305/9.499, allocations: 230.5 kB / 4.344 GB, free: 19.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/9.501, allocations: 0.5119 MB / 4.344 GB, free: 19 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/9.502, allocations: 2.427 MB / 4.346 GB, free: 16.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002227/9.505, allocations: 273.5 kB / 4.347 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/9.505, allocations: 106.8 kB / 4.347 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/9.505, allocations: 4.625 kB / 4.347 GB, free: 16.88 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003786/9.509, allocations: 2.854 MB / 4.35 GB, free: 16.17 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/9.509, allocations: 8.469 kB / 4.35 GB, free: 16.17 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006345/9.509, allocations: 233.3 kB / 4.35 GB, free: 16.09 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/9.511, allocations: 0.5058 MB / 4.35 GB, free: 16.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/9.512, allocations: 2.433 MB / 4.353 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/9.515, allocations: 277.4 kB / 4.353 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/9.515, allocations: 102.2 kB / 4.353 GB, free: 13.71 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000607/9.515, allocations: 295.7 kB / 4.353 GB, free: 13.44 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/9.516, allocations: 217.9 kB / 4.353 GB, free: 13.33 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00792/9.524, allocations: 7.638 MB / 4.361 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.187e-05/9.524, allocations: 83.03 kB / 4.361 GB, free: 9.906 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/9.524, allocations: 0 / 4.361 GB, free: 9.906 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005833/9.53, allocations: 6.656 MB / 4.368 GB, free: 5.363 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01647/9.546, allocations: 11.14 MB / 4.378 GB, free: 12.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/9.546, allocations: 3.953 kB / 4.378 GB, free: 12.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/9.548, allocations: 412.5 kB / 4.379 GB, free: 12.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/9.549, allocations: 345.9 kB / 4.379 GB, free: 11.98 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/9.549, allocations: 59.64 kB / 4.379 GB, free: 11.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001548/9.551, allocations: 2.525 MB / 4.382 GB, free: 9.391 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/9.551, allocations: 0 / 4.382 GB, free: 9.391 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008797/9.56, allocations: 6.92 MB / 4.388 GB, free: 3.004 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/9.561, allocations: 0.7803 MB / 4.389 GB, free: 2.312 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006016/9.562, allocations: 54.25 kB / 4.389 GB, free: 2.266 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/9.564, allocations: 215.7 kB / 4.389 GB, free: 2.102 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003064/9.564, allocations: 158.2 kB / 4.39 GB, free: 2.004 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/9.564, allocations: 78.31 kB / 4.39 GB, free: 1.938 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002494/9.567, allocations: 1.324 MB / 4.391 GB, free: 0.7109 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.8e-07/9.567, allocations: 0 / 4.391 GB, free: 0.7109 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.3191/9.886, allocations: 2.904 MB / 4.394 GB, free: 72.41 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008717/9.895, allocations: 2.986 MB / 4.397 GB, free: 72.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007082/9.902, allocations: 5.113 MB / 4.402 GB, free: 71.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/9.902, allocations: 0 / 4.402 GB, free: 71.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002626/9.905, allocations: 2.383 MB / 4.404 GB, free: 71.76 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004753/9.909, allocations: 1.045 MB / 4.405 GB, free: 71.75 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008009/9.917, allocations: 5.998 MB / 4.411 GB, free: 70.64 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002005/9.919, allocations: 2.283 MB / 4.413 GB, free: 69.88 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005354/9.925, allocations: 2.687 MB / 4.416 GB, free: 69.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005063/9.925, allocations: 180.1 kB / 4.416 GB, free: 69.86 MB / 0.6042 GB Notification: Performance of SimCode: time 7.31e-07/9.925, allocations: 6.688 kB / 4.416 GB, free: 69.86 MB / 0.6042 GB Notification: Performance of Templates: time 0.1012/10.03, allocations: 92.99 MB / 4.507 GB, free: 65.52 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches