Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, 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.0009894/0.0009895, allocations: 98.7 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.93e-05, allocations: 3.75 kB / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.13, allocations: 63.24 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.43/7.56, allocations: 2.852 GB / 3.356 GB, free: 64.73 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/7.561, allocations: 79.95 kB / 3.356 GB, free: 64.66 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.069/10.63, allocations: 0.9099 GB / 4.266 GB, free: 3.34 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.883e-06/10.63, allocations: 4 kB / 4.266 GB, free: 3.336 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002636/10.63, allocations: 59.91 kB / 4.266 GB, free: 3.281 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.3916/11.02, allocations: 3.974 MB / 4.27 GB, free: 40.49 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/11.02, allocations: 8.438 kB / 4.27 GB, free: 40.49 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006985/11.03, allocations: 0.8798 MB / 4.271 GB, free: 40.35 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00628/11.03, allocations: 2.097 MB / 4.273 GB, free: 40 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/11.04, allocations: 92.36 kB / 4.273 GB, free: 40 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006245/11.04, allocations: 122.6 kB / 4.273 GB, free: 40 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004557/11.04, allocations: 2.629 MB / 4.276 GB, free: 39.99 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00442/11.04, allocations: 2.864 MB / 4.278 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/11.04, allocations: 9.844 kB / 4.278 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/11.05, allocations: 11.69 kB / 4.278 GB, free: 39.45 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002192/11.05, allocations: 163.5 kB / 4.279 GB, free: 39.44 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.2293/11.27, allocations: 138.8 MB / 4.414 GB, free: 28.26 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002688/11.28, allocations: 2.114 MB / 4.416 GB, free: 27.66 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/11.28, allocations: 1.078 MB / 4.417 GB, free: 27.64 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03113/11.31, allocations: 18.8 MB / 4.436 GB, free: 30.68 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002301/11.31, allocations: 1.255 MB / 4.437 GB, free: 30.52 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=163): time 5.37e-06/11.31, allocations: 0 / 4.437 GB, free: 30.52 MB / 0.6667 GB Notification: Performance of matching and sorting (n=179): time 0.03277/11.34, allocations: 9.662 MB / 4.446 GB, free: 28.8 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/11.35, allocations: 362.6 kB / 4.447 GB, free: 28.39 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/11.35, allocations: 1.091 MB / 4.448 GB, free: 28.23 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0002074/11.35, allocations: 29.23 kB / 4.448 GB, free: 28.2 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007247/11.35, allocations: 1.012 MB / 4.449 GB, free: 27.86 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004557/11.35, allocations: 0.5757 MB / 4.449 GB, free: 27.49 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/11.35, allocations: 0 / 4.449 GB, free: 27.49 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000157/11.35, allocations: 394.6 kB / 4.45 GB, free: 27.18 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/11.35, allocations: 1.012 MB / 4.451 GB, free: 27.17 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/11.35, allocations: 1.458 MB / 4.452 GB, free: 26.71 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007651/11.36, allocations: 1.973 MB / 4.454 GB, free: 26.66 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/11.36, allocations: 6.938 kB / 4.454 GB, free: 26.66 MB / 0.6667 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01075/11.37, allocations: 3.713 MB / 4.458 GB, free: 26.43 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001349/11.37, allocations: 4.415 MB / 4.462 GB, free: 21.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/11.37, allocations: 10.25 kB / 4.462 GB, free: 21.88 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005042/11.37, allocations: 219.9 kB / 4.462 GB, free: 21.85 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/11.37, allocations: 0.5259 MB / 4.463 GB, free: 21.84 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/11.37, allocations: 2.445 MB / 4.465 GB, free: 19.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/11.38, allocations: 318.8 kB / 4.465 GB, free: 19.72 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002481/11.38, allocations: 106.5 kB / 4.465 GB, free: 19.72 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/11.38, allocations: 5.062 kB / 4.465 GB, free: 19.72 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009227/11.39, allocations: 3.266 MB / 4.469 GB, free: 19.62 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/11.39, allocations: 8.562 kB / 4.469 GB, free: 19.62 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004624/11.39, allocations: 223.6 kB / 4.469 GB, free: 19.58 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/11.39, allocations: 0.5117 MB / 4.469 GB, free: 19.58 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001485/11.39, allocations: 2.457 MB / 4.472 GB, free: 17.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/11.39, allocations: 284.2 kB / 4.472 GB, free: 17.45 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002479/11.39, allocations: 109.6 kB / 4.472 GB, free: 17.45 MB / 0.6667 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0006189/11.39, allocations: 234.5 kB / 4.472 GB, free: 17.28 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004525/11.39, allocations: 188.5 kB / 4.473 GB, free: 17.19 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01386/11.41, allocations: 7.08 MB / 4.479 GB, free: 16.59 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.058e-05/11.41, allocations: 75.38 kB / 4.48 GB, free: 16.59 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/11.41, allocations: 2.594 kB / 4.48 GB, free: 16.59 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01171/11.42, allocations: 6.156 MB / 4.486 GB, free: 15.83 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/11.44, allocations: 11.24 MB / 4.496 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/11.44, allocations: 5.188 kB / 4.496 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/11.44, allocations: 398.3 kB / 4.497 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007411/11.44, allocations: 320.2 kB / 4.497 GB, free: 14.35 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/11.44, allocations: 50.03 kB / 4.497 GB, free: 14.34 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/11.44, allocations: 2.643 MB / 4.5 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.946e-06/11.44, allocations: 9.875 kB / 4.5 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0132/11.46, allocations: 7.644 MB / 4.507 GB, free: 8.484 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/11.46, allocations: 0.7106 MB / 4.508 GB, free: 7.988 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004947/11.46, allocations: 32.72 kB / 4.508 GB, free: 7.969 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/11.46, allocations: 177.3 kB / 4.508 GB, free: 7.84 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/11.46, allocations: 160 kB / 4.508 GB, free: 7.762 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/11.46, allocations: 88.41 kB / 4.508 GB, free: 7.703 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001419/11.46, allocations: 1.046 MB / 4.509 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.8e-07/11.46, allocations: 0.75 kB / 4.509 GB, free: 7.086 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.01003/11.47, allocations: 2.654 MB / 4.512 GB, free: 4.848 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,junctionIdeal.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 (198): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.01045/11.48, allocations: 3.075 MB / 4.515 GB, free: 2.77 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.007092/11.49, allocations: 4.759 MB / 4.52 GB, free: 8 kB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/11.49, allocations: 5.062 kB / 4.52 GB, free: 4 kB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.343/11.83, allocations: 2.476 MB / 4.522 GB, free: 133.4 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004679/11.84, allocations: 0.849 MB / 4.523 GB, free: 133.4 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008533/11.85, allocations: 5.633 MB / 4.528 GB, free: 132.2 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/11.85, allocations: 2.203 MB / 4.531 GB, free: 131.4 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.004947/11.85, allocations: 2.637 MB / 4.533 GB, free: 131.4 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00066/11.85, allocations: 175 kB / 4.533 GB, free: 131.4 MB / 0.6667 GB Notification: Performance of SimCode: time 9.61e-07/11.85, allocations: 0 / 4.533 GB, free: 131.4 MB / 0.6667 GB Notification: Performance of Templates: time 0.09822/11.95, allocations: 73.83 MB / 4.605 GB, free: 128.2 MB / 0.6667 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches