Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 197.5 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.201/1.201, allocations: 227.2 MB / 245 MB, free: 7.637 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008989/0.0008989, allocations: 95.3 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2976/0.2976, allocations: 45.24 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002638, allocations: 8 kB / 468.4 MB, free: 7.742 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3202, allocations: 63.24 MB / 0.5192 GB, free: 43.72 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.207/5.527, allocations: 2.832 GB / 3.351 GB, free: 154.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001819/5.528, allocations: 78.38 kB / 3.351 GB, free: 154.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.748/8.276, allocations: 0.8787 GB / 4.23 GB, free: 41.74 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.403e-06/8.276, allocations: 0 / 4.23 GB, free: 41.74 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002001/8.276, allocations: 64.31 kB / 4.23 GB, free: 41.73 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01233/8.289, allocations: 4.102 MB / 4.234 GB, free: 39.94 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/8.289, allocations: 7.188 kB / 4.234 GB, free: 39.94 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005251/8.294, allocations: 0.7878 MB / 4.235 GB, free: 39.81 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005006/8.299, allocations: 1.961 MB / 4.236 GB, free: 39.39 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/8.299, allocations: 165.5 kB / 4.237 GB, free: 39.38 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005902/8.3, allocations: 183.6 kB / 4.237 GB, free: 39.38 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00659/8.306, allocations: 3.316 MB / 4.24 GB, free: 38.91 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.648e-05/8.306, allocations: 4.219 kB / 4.24 GB, free: 38.91 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/8.307, allocations: 79.62 kB / 4.24 GB, free: 38.91 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/8.307, allocations: 153.7 kB / 4.24 GB, free: 38.91 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005796/8.313, allocations: 3.033 MB / 4.243 GB, free: 38.89 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.0149/8.328, allocations: 14.23 MB / 4.257 GB, free: 30.39 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004022/8.332, allocations: 2.06 MB / 4.259 GB, free: 30.36 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03969/8.371, allocations: 27.09 MB / 4.286 GB, free: 28.71 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00378/8.375, allocations: 1.583 MB / 4.287 GB, free: 28.58 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001364/8.377, allocations: 178.9 kB / 4.287 GB, free: 28.5 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=146): time 7.775e-06/8.377, allocations: 8.641 kB / 4.287 GB, free: 28.5 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158): time 0.01933/8.396, allocations: 8.403 MB / 4.296 GB, free: 27.23 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/8.396, allocations: 256.8 kB / 4.296 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/8.398, allocations: 1.412 MB / 4.297 GB, free: 26.77 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001575/8.398, allocations: 55.27 kB / 4.297 GB, free: 26.74 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000634/8.399, allocations: 0.8966 MB / 4.298 GB, free: 26.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003613/8.399, allocations: 0.5289 MB / 4.299 GB, free: 26.06 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/8.399, allocations: 39.47 kB / 4.299 GB, free: 26.06 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000155/8.4, allocations: 368.6 kB / 4.299 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/8.401, allocations: 1.033 MB / 4.3 GB, free: 25.75 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/8.403, allocations: 1.41 MB / 4.301 GB, free: 25.34 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00175/8.405, allocations: 1.251 MB / 4.303 GB, free: 25.25 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/8.405, allocations: 0 / 4.303 GB, free: 25.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005316/8.41, allocations: 3.205 MB / 4.306 GB, free: 24.95 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001246/8.411, allocations: 3.846 MB / 4.309 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/8.411, allocations: 11.41 kB / 4.309 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002706/8.414, allocations: 0.6066 MB / 4.31 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/8.416, allocations: 432.2 kB / 4.31 GB, free: 20.83 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/8.418, allocations: 2.833 MB / 4.313 GB, free: 18.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/8.42, allocations: 228.8 kB / 4.313 GB, free: 18.72 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002413/8.42, allocations: 94.03 kB / 4.314 GB, free: 18.72 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/8.42, allocations: 3.969 kB / 4.314 GB, free: 18.72 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004989/8.425, allocations: 2.813 MB / 4.316 GB, free: 18.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/8.425, allocations: 13.83 kB / 4.316 GB, free: 18.56 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007203/8.426, allocations: 215.2 kB / 4.317 GB, free: 18.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/8.428, allocations: 448.3 kB / 4.317 GB, free: 18.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/8.429, allocations: 1.879 MB / 4.319 GB, free: 16.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/8.431, allocations: 241.4 kB / 4.319 GB, free: 16.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/8.431, allocations: 92.19 kB / 4.319 GB, free: 16.93 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (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_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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001175/8.432, allocations: 0.698 MB / 4.32 GB, free: 16.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/8.433, allocations: 193.2 kB / 4.32 GB, free: 16.58 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007874/8.44, allocations: 7.571 MB / 4.327 GB, free: 15.84 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/8.441, allocations: 85.66 kB / 4.327 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/8.441, allocations: 0 / 4.327 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006179/8.447, allocations: 6.617 MB / 4.334 GB, free: 13.44 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/8.458, allocations: 10.51 MB / 4.344 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/8.458, allocations: 3.516 kB / 4.344 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/8.459, allocations: 343.2 kB / 4.344 GB, free: 8.992 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00262/8.462, allocations: 1.362 MB / 4.346 GB, free: 8.711 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/8.462, allocations: 57.92 kB / 4.346 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/8.464, allocations: 3.472 MB / 4.349 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/8.464, allocations: 0 / 4.349 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007543/8.471, allocations: 7.385 MB / 4.356 GB, free: 2.828 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/8.473, allocations: 0.7391 MB / 4.357 GB, free: 2.367 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/8.473, allocations: 48.53 kB / 4.357 GB, free: 2.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/8.474, allocations: 193.8 kB / 4.357 GB, free: 2.289 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/8.475, allocations: 130.7 kB / 4.358 GB, free: 2.273 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/8.475, allocations: 79.89 kB / 4.358 GB, free: 2.25 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001588/8.476, allocations: 1.279 MB / 4.359 GB, free: 1.531 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.4e-07/8.476, allocations: 3.844 kB / 4.359 GB, free: 1.531 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007937/8.484, allocations: 2.757 MB / 4.362 GB, free: 14.85 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.007701/8.492, allocations: 2.906 MB / 4.364 GB, free: 12.63 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007524/8.5, allocations: 4.852 MB / 4.369 GB, free: 8.344 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/8.5, allocations: 0 / 4.369 GB, free: 8.344 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002884/8.502, allocations: 2.314 MB / 4.371 GB, free: 6.234 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/8.506, allocations: 0.9684 MB / 4.372 GB, free: 5.547 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2672/8.774, allocations: 8.046 MB / 4.38 GB, free: 67.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/8.776, allocations: 2.185 MB / 4.382 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.003681/8.78, allocations: 2.215 MB / 4.385 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/8.78, allocations: 178.9 kB / 4.385 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of SimCode: time 8.52e-07/8.78, allocations: 2.812 kB / 4.385 GB, free: 66.51 MB / 0.6042 GB Notification: Performance of Templates: time 0.09711/8.877, allocations: 83.96 MB / 4.467 GB, free: 63.45 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches