Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, 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.197/1.197, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000849/0.0008491, allocations: 90.97 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1637/0.1637, allocations: 45.14 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.327e-05/2.331e-05, allocations: 8 kB / 460.5 MB, free: 69.96 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.07559, allocations: 63.24 MB / 0.5115 GB, free: 6.738 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.114/1.19, allocations: 0.5624 GB / 1.074 GB, free: 97.94 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/1.19, allocations: 83.89 kB / 1.074 GB, free: 97.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.55/2.74, allocations: 0.5079 GB / 1.582 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.373e-06/2.74, allocations: 0 / 1.582 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001532/2.74, allocations: 63.92 kB / 1.582 GB, free: 12.45 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.006597/2.746, allocations: 2.818 MB / 1.585 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/2.747, allocations: 12.02 kB / 1.585 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004219/2.747, allocations: 248.7 kB / 1.585 GB, free: 9.301 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002501/2.749, allocations: 442.1 kB / 1.585 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004261/2.754, allocations: 1.922 MB / 1.587 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.08e-05/2.754, allocations: 139 kB / 1.587 GB, free: 6.754 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003152/2.754, allocations: 167.9 kB / 1.587 GB, free: 6.59 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/2.758, allocations: 2.608 MB / 1.59 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.722e-05/2.758, allocations: 0 / 1.59 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/2.758, allocations: 75.97 kB / 1.59 GB, free: 3.754 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/2.758, allocations: 150.9 kB / 1.59 GB, free: 3.605 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/2.762, allocations: 2.194 MB / 1.592 GB, free: 1.406 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.01602/2.778, allocations: 11.1 MB / 1.603 GB, free: 5.496 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003023/2.781, allocations: 1.767 MB / 1.605 GB, free: 3.66 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/2.782, allocations: 1.048 MB / 1.606 GB, free: 2.613 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009297/2.783, allocations: 0.5065 MB / 1.606 GB, free: 2.016 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0022/2.786, allocations: 1.283 MB / 1.608 GB, free: 0.6914 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 4.188e-06/2.786, allocations: 3.938 kB / 1.608 GB, free: 0.6875 MB / 0.5573 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.323/3.109, allocations: 8.681 MB / 1.616 GB, free: 57.91 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/3.109, allocations: 361.4 kB / 1.616 GB, free: 57.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/3.111, allocations: 1.404 MB / 1.618 GB, free: 57.34 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003877/3.111, allocations: 62.2 kB / 1.618 GB, free: 57.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/3.112, allocations: 0.8704 MB / 1.619 GB, free: 57.06 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004639/3.112, allocations: 0.6213 MB / 1.619 GB, free: 56.75 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/3.112, allocations: 39.81 kB / 1.619 GB, free: 56.75 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/3.112, allocations: 387.7 kB / 1.62 GB, free: 56.45 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001375/3.114, allocations: 0.9997 MB / 1.621 GB, free: 56.44 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/3.115, allocations: 1.441 MB / 1.622 GB, free: 56.02 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/3.117, allocations: 1.271 MB / 1.623 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/3.117, allocations: 6 kB / 1.623 GB, free: 55.94 MB / 0.5573 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00501/3.122, allocations: 3.083 MB / 1.626 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006/3.123, allocations: 3.774 MB / 1.63 GB, free: 51.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/3.123, allocations: 10.91 kB / 1.63 GB, free: 51.71 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004122/3.124, allocations: 191.7 kB / 1.63 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/3.126, allocations: 0.5412 MB / 1.631 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/3.127, allocations: 2.325 MB / 1.633 GB, free: 49.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002543/3.13, allocations: 220.1 kB / 1.633 GB, free: 49.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003691/3.13, allocations: 191.1 kB / 1.633 GB, free: 49.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/3.13, allocations: 5.438 kB / 1.634 GB, free: 49.6 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004685/3.135, allocations: 2.804 MB / 1.636 GB, free: 49.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/3.135, allocations: 11.2 kB / 1.636 GB, free: 49.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000503/3.135, allocations: 190.9 kB / 1.636 GB, free: 49.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002113/3.137, allocations: 0.5334 MB / 1.637 GB, free: 49.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009608/3.138, allocations: 2.324 MB / 1.639 GB, free: 47.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/3.14, allocations: 213.9 kB / 1.639 GB, free: 47.35 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/3.141, allocations: 187.1 kB / 1.64 GB, free: 47.35 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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.0006184/3.141, allocations: 296.1 kB / 1.64 GB, free: 47.18 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000344/3.142, allocations: 217.2 kB / 1.64 GB, free: 47.07 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007241/3.149, allocations: 4.605 MB / 1.645 GB, free: 46.78 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/3.149, allocations: 17.81 kB / 1.645 GB, free: 46.78 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/3.149, allocations: 4.172 kB / 1.645 GB, free: 46.78 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003271/3.152, allocations: 2.739 MB / 1.647 GB, free: 46.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/3.162, allocations: 6.985 MB / 1.654 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/3.162, allocations: 12.17 kB / 1.654 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/3.164, allocations: 435.3 kB / 1.655 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003645/3.165, allocations: 192.6 kB / 1.655 GB, free: 44.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/3.165, allocations: 104.8 kB / 1.655 GB, free: 44.59 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/3.166, allocations: 3.067 MB / 1.658 GB, free: 41.78 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/3.166, allocations: 14.39 kB / 1.658 GB, free: 41.78 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005407/3.172, allocations: 4.721 MB / 1.662 GB, free: 40.41 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/3.173, allocations: 0.5365 MB / 1.663 GB, free: 40.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003263/3.173, allocations: 63.22 kB / 1.663 GB, free: 40.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/3.174, allocations: 135.5 kB / 1.663 GB, free: 40.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/3.175, allocations: 174.7 kB / 1.663 GB, free: 40.19 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/3.175, allocations: 162.9 kB / 1.663 GB, free: 40.19 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001314/3.176, allocations: 1.084 MB / 1.665 GB, free: 40.03 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2e-07/3.176, allocations: 5.969 kB / 1.665 GB, free: 40.03 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004848/3.181, allocations: 1.812 MB / 1.666 GB, free: 40.03 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009391/3.19, allocations: 9.073 MB / 1.675 GB, free: 36.32 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006058/3.196, allocations: 4.314 MB / 1.679 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/3.196, allocations: 3.25 kB / 1.679 GB, free: 36.02 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001828/3.198, allocations: 1.501 MB / 1.681 GB, free: 35.77 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004462/3.203, allocations: 0.9766 MB / 1.682 GB, free: 35.76 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009338/3.212, allocations: 4.976 MB / 1.687 GB, free: 34.73 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008991/3.213, allocations: 1.725 MB / 1.688 GB, free: 33.99 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006303/3.219, allocations: 3.23 MB / 1.692 GB, free: 33.93 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/3.221, allocations: 0.9966 MB / 1.692 GB, free: 33.93 MB / 0.5573 GB Notification: Performance of SimCode: time 7.92e-07/3.221, allocations: 0 / 1.692 GB, free: 33.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1264/3.347, allocations: 101.3 MB / 1.791 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/3.348, allocations: 238.3 kB / 1.792 GB, free: 2.246 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.369/8.717, allocations: 3.828 kB / 1.792 GB, free: 2.246 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)