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.001748/0.001747, allocations: 198.6 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.418/1.418, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 90.73 kB / 297.2 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4454/0.4454, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003253/0.0003252, allocations: 8.219 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4475/0.4478, allocations: 63.26 MB / 0.5193 GB, free: 43.81 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.264/1.712, allocations: 0.5625 GB / 1.082 GB, free: 37.09 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/1.712, allocations: 86.69 kB / 1.082 GB, free: 37.05 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.297/4.009, allocations: 0.509 GB / 1.591 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.376e-06/4.009, allocations: 0 / 1.591 GB, free: 45.81 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002983/4.009, allocations: 66.77 kB / 1.591 GB, free: 45.81 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.01452/4.024, allocations: 3.112 MB / 1.594 GB, free: 44.61 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/4.024, allocations: 11.53 kB / 1.594 GB, free: 44.61 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001547/4.025, allocations: 247 kB / 1.594 GB, free: 44.56 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004078/4.029, allocations: 450.3 kB / 1.595 GB, free: 44.44 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007037/4.037, allocations: 1.955 MB / 1.596 GB, free: 44.08 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/4.037, allocations: 131.3 kB / 1.597 GB, free: 44.07 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007439/4.037, allocations: 165.4 kB / 1.597 GB, free: 44.07 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00481/4.042, allocations: 2.649 MB / 1.599 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.029e-05/4.042, allocations: 6.688 kB / 1.599 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003264/4.043, allocations: 73.08 kB / 1.599 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/4.043, allocations: 158.7 kB / 1.6 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00412/4.047, allocations: 2.258 MB / 1.602 GB, free: 43.62 MB / 0.5417 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.01973/4.067, allocations: 11.11 MB / 1.613 GB, free: 37.62 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003524/4.07, allocations: 1.817 MB / 1.614 GB, free: 37.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008664/4.071, allocations: 0.5081 MB / 1.615 GB, free: 36.84 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002209/4.073, allocations: 1.308 MB / 1.616 GB, free: 36.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 3.196e-06/4.073, allocations: 0 / 1.616 GB, free: 36.66 MB / 0.5417 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 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02533/4.099, allocations: 11.24 MB / 1.627 GB, free: 34.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/4.099, allocations: 363.5 kB / 1.628 GB, free: 34.29 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/4.101, allocations: 1.417 MB / 1.629 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003734/4.101, allocations: 67.66 kB / 1.629 GB, free: 34.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/4.102, allocations: 0.864 MB / 1.63 GB, free: 33.79 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005094/4.103, allocations: 0.6247 MB / 1.63 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/4.103, allocations: 39.66 kB / 1.63 GB, free: 33.39 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001135/4.103, allocations: 384.7 kB / 1.631 GB, free: 33.08 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/4.104, allocations: 1.05 MB / 1.632 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001832/4.106, allocations: 1.482 MB / 1.633 GB, free: 32.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/4.108, allocations: 1.308 MB / 1.635 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/4.108, allocations: 3.656 kB / 1.635 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004877/4.113, allocations: 3.173 MB / 1.638 GB, free: 32.29 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000706/4.114, allocations: 3.777 MB / 1.641 GB, free: 28.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/4.114, allocations: 7.688 kB / 1.641 GB, free: 28.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004108/4.114, allocations: 189.1 kB / 1.642 GB, free: 28.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/4.116, allocations: 0.5445 MB / 1.642 GB, free: 28.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/4.117, allocations: 2.321 MB / 1.644 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/4.12, allocations: 219.9 kB / 1.645 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/4.121, allocations: 197.7 kB / 1.645 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/4.121, allocations: 3.406 kB / 1.645 GB, free: 26.23 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004489/4.125, allocations: 2.892 MB / 1.648 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/4.125, allocations: 11.52 kB / 1.648 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003401/4.126, allocations: 193.2 kB / 1.648 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002216/4.128, allocations: 0.5324 MB / 1.648 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/4.129, allocations: 2.332 MB / 1.651 GB, free: 23.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/4.132, allocations: 211.6 kB / 1.651 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003598/4.133, allocations: 183.1 kB / 1.651 GB, free: 23.97 MB / 0.5417 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 () * Number of clocked 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.001984/4.135, allocations: 0.693 MB / 1.652 GB, free: 23.71 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006293/4.135, allocations: 213.4 kB / 1.652 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008103/4.143, allocations: 4.663 MB / 1.656 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/4.143, allocations: 18.38 kB / 1.656 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/4.143, allocations: 3.781 kB / 1.656 GB, free: 23.31 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003471/4.147, allocations: 2.796 MB / 1.659 GB, free: 22.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/4.159, allocations: 7.055 MB / 1.666 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/4.159, allocations: 10.23 kB / 1.666 GB, free: 21.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/4.16, allocations: 437.4 kB / 1.666 GB, free: 21.13 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003886/4.161, allocations: 186.8 kB / 1.667 GB, free: 21.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002022/4.161, allocations: 102.3 kB / 1.667 GB, free: 21.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/4.163, allocations: 3.076 MB / 1.67 GB, free: 34.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/4.163, allocations: 10.78 kB / 1.67 GB, free: 34.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006174/4.169, allocations: 4.809 MB / 1.674 GB, free: 32.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/4.171, allocations: 0.5463 MB / 1.675 GB, free: 32.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004494/4.172, allocations: 58.5 kB / 1.675 GB, free: 32.72 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/4.173, allocations: 136.7 kB / 1.675 GB, free: 32.71 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003033/4.174, allocations: 178.7 kB / 1.675 GB, free: 32.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002994/4.174, allocations: 167.4 kB / 1.675 GB, free: 32.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00152/4.175, allocations: 1.104 MB / 1.677 GB, free: 32.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.31e-07/4.175, allocations: 0 / 1.677 GB, free: 32.55 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006071/4.181, allocations: 1.811 MB / 1.678 GB, free: 32.35 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) * Number of clocked states: 0 () * 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.01255/4.194, allocations: 9.15 MB / 1.687 GB, free: 28.21 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0072/4.201, allocations: 4.369 MB / 1.692 GB, free: 26.72 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/4.201, allocations: 4.594 kB / 1.692 GB, free: 26.72 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002219/4.204, allocations: 1.54 MB / 1.693 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004778/4.208, allocations: 0.97 MB / 1.694 GB, free: 25.89 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/4.224, allocations: 13.75 MB / 1.707 GB, free: 15.26 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/4.225, allocations: 1.72 MB / 1.709 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.006534/4.232, allocations: 3.036 MB / 1.712 GB, free: 14.15 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001903/4.233, allocations: 1.027 MB / 1.713 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of SimCode: time 8.52e-07/4.233, allocations: 0 / 1.713 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5152/4.749, allocations: 93.99 MB / 1.805 GB, free: 71.07 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/4.749, allocations: 251.9 kB / 1.805 GB, free: 70.73 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.663/10.41, allocations: 0 / 1.805 GB, free: 70.73 MB / 0.573 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)