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.001123/0.001124, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.2 MB / 245 MB, free: 7.641 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009044/0.0009043, allocations: 97.25 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3275/0.3275, allocations: 45.23 MB / 394.7 MB, free: 31.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002608, allocations: 8 kB / 468.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3467, allocations: 63.23 MB / 0.5192 GB, free: 43.72 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.966/5.313, allocations: 2.852 GB / 3.372 GB, free: 134.7 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/5.313, allocations: 78.38 kB / 3.372 GB, free: 134.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.549/7.862, allocations: 0.9201 GB / 4.292 GB, free: 39.7 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.443e-06/7.862, allocations: 0 / 4.292 GB, free: 39.7 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002202/7.862, allocations: 67.38 kB / 4.292 GB, free: 39.68 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.01317/7.876, allocations: 4.252 MB / 4.296 GB, free: 37.56 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/7.876, allocations: 12.34 kB / 4.296 GB, free: 37.56 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005971/7.882, allocations: 0.8773 MB / 4.297 GB, free: 37.42 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005686/7.887, allocations: 2.125 MB / 4.299 GB, free: 36.9 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/7.888, allocations: 183.3 kB / 4.299 GB, free: 36.9 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006454/7.888, allocations: 205.1 kB / 4.299 GB, free: 36.9 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007372/7.896, allocations: 3.687 MB / 4.303 GB, free: 36.32 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.125e-05/7.896, allocations: 10.81 kB / 4.303 GB, free: 36.31 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/7.896, allocations: 87.17 kB / 4.303 GB, free: 36.31 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001733/7.896, allocations: 164.4 kB / 4.303 GB, free: 36.31 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006712/7.903, allocations: 3.364 MB / 4.306 GB, free: 35.78 MB / 0.573 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.01655/7.92, allocations: 15.62 MB / 4.322 GB, free: 23.96 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004844/7.924, allocations: 2.825 MB / 4.324 GB, free: 22.72 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03915/7.964, allocations: 27.05 MB / 4.351 GB, free: 19.99 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004242/7.968, allocations: 1.753 MB / 4.353 GB, free: 19.44 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=173): time 4.939e-06/7.968, allocations: 4 kB / 4.353 GB, free: 19.43 MB / 0.5886 GB Notification: Performance of matching and sorting (n=189): time 0.022/7.99, allocations: 9.391 MB / 4.362 GB, free: 13.47 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/7.99, allocations: 261.2 kB / 4.362 GB, free: 13.16 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/7.992, allocations: 1.416 MB / 4.363 GB, free: 11.97 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002036/7.992, allocations: 65.7 kB / 4.363 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007408/7.993, allocations: 0.9646 MB / 4.364 GB, free: 11.02 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005469/7.993, allocations: 0.6319 MB / 4.365 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/7.994, allocations: 36 kB / 4.365 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000174/7.994, allocations: 392.4 kB / 4.365 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/7.996, allocations: 1.151 MB / 4.367 GB, free: 9.086 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002302/7.998, allocations: 1.615 MB / 4.368 GB, free: 7.523 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002216/8, allocations: 1.397 MB / 4.369 GB, free: 6.273 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/8, allocations: 4 kB / 4.369 GB, free: 6.27 MB / 0.5886 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005901/8.006, allocations: 3.388 MB / 4.373 GB, free: 3.258 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.2523/8.258, allocations: 4.481 MB / 4.377 GB, free: 53.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.116e-05/8.259, allocations: 11.47 kB / 4.377 GB, free: 53.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009342/8.26, allocations: 252.6 kB / 4.377 GB, free: 53.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/8.262, allocations: 0.5248 MB / 4.378 GB, free: 53.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/8.263, allocations: 2.434 MB / 4.38 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/8.266, allocations: 305.7 kB / 4.381 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004869/8.266, allocations: 105.3 kB / 4.381 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/8.266, allocations: 3.875 kB / 4.381 GB, free: 51.8 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005267/8.272, allocations: 3.122 MB / 4.384 GB, free: 51.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/8.272, allocations: 10.94 kB / 4.384 GB, free: 51.67 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007012/8.272, allocations: 247.8 kB / 4.384 GB, free: 51.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/8.274, allocations: 0.5179 MB / 4.384 GB, free: 51.64 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008848/8.275, allocations: 2.432 MB / 4.387 GB, free: 49.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/8.277, allocations: 306.1 kB / 4.387 GB, free: 49.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002217/8.277, allocations: 104.2 kB / 4.387 GB, free: 49.57 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.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 () * Number of clocked 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.001301/8.279, allocations: 0.7583 MB / 4.388 GB, free: 49.32 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000424/8.279, allocations: 223.2 kB / 4.388 GB, free: 49.31 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008691/8.288, allocations: 7.653 MB / 4.396 GB, free: 48.78 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.877e-05/8.288, allocations: 89.28 kB / 4.396 GB, free: 48.78 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/8.288, allocations: 2.844 kB / 4.396 GB, free: 48.78 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006449/8.294, allocations: 6.681 MB / 4.402 GB, free: 47.88 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/8.309, allocations: 12.39 MB / 4.414 GB, free: 46.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/8.309, allocations: 4.906 kB / 4.414 GB, free: 46.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/8.31, allocations: 442.1 kB / 4.415 GB, free: 46.43 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/8.311, allocations: 370 kB / 4.415 GB, free: 46.39 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/8.312, allocations: 74.36 kB / 4.415 GB, free: 46.39 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000977/8.313, allocations: 2.532 MB / 4.418 GB, free: 44.32 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/8.313, allocations: 11.16 kB / 4.418 GB, free: 44.32 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009699/8.322, allocations: 7.918 MB / 4.425 GB, free: 42.95 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/8.324, allocations: 0.7798 MB / 4.426 GB, free: 42.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005491/8.325, allocations: 63.73 kB / 4.426 GB, free: 42.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001905/8.326, allocations: 218.4 kB / 4.426 GB, free: 42.67 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/8.327, allocations: 181.7 kB / 4.427 GB, free: 42.67 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/8.327, allocations: 88.27 kB / 4.427 GB, free: 42.67 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001531/8.328, allocations: 1.281 MB / 4.428 GB, free: 42.52 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.9e-07/8.328, allocations: 0.5625 kB / 4.428 GB, free: 42.52 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0083/8.337, allocations: 2.797 MB / 4.431 GB, free: 42.52 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 185 * 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.01027/8.347, allocations: 2.881 MB / 4.434 GB, free: 42.32 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008431/8.355, allocations: 5.38 MB / 4.439 GB, free: 41.98 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/8.356, allocations: 0 / 4.439 GB, free: 41.98 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003035/8.359, allocations: 2.766 MB / 4.441 GB, free: 41.84 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/8.363, allocations: 1.052 MB / 4.443 GB, free: 41.82 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008713/8.371, allocations: 8.913 MB / 4.451 GB, free: 38.39 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/8.373, allocations: 2.291 MB / 4.453 GB, free: 37.62 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.003943/8.377, allocations: 2.423 MB / 4.456 GB, free: 37.61 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005792/8.378, allocations: 205.6 kB / 4.456 GB, free: 37.6 MB / 0.5886 GB Notification: Performance of SimCode: time 4.01e-07/8.378, allocations: 0 / 4.456 GB, free: 37.6 MB / 0.5886 GB Notification: Performance of Templates: time 0.09723/8.475, allocations: 86.97 MB / 4.541 GB, free: 32.89 MB / 0.5886 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