Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001849/0.001849, allocations: 198.7 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.506/1.506, allocations: 227.2 MB / 245 MB, free: 5.793 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 107.7 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4002/0.4002, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003292/0.0003295, allocations: 12.22 kB / 468.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4012, allocations: 63.25 MB / 0.5193 GB, free: 37.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.268/1.669, allocations: 0.5625 GB / 1.082 GB, free: 19.68 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.67, allocations: 88.88 kB / 1.082 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.22/3.889, allocations: 0.5668 GB / 1.649 GB, free: 45.76 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.388e-06/3.889, allocations: 6.625 kB / 1.649 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003678/3.89, allocations: 67.98 kB / 1.649 GB, free: 45.74 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.0125/3.902, allocations: 3.258 MB / 1.652 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/3.902, allocations: 9.562 kB / 1.652 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001487/3.904, allocations: 271 kB / 1.652 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004018/3.908, allocations: 467.6 kB / 1.653 GB, free: 43.99 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007591/3.916, allocations: 2.015 MB / 1.655 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002265/3.916, allocations: 141.1 kB / 1.655 GB, free: 43.49 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/3.917, allocations: 181.1 kB / 1.655 GB, free: 43.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007447/3.924, allocations: 2.763 MB / 1.658 GB, free: 43.01 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/3.924, allocations: 8.094 kB / 1.658 GB, free: 43.01 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000742/3.925, allocations: 78 kB / 1.658 GB, free: 43.01 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/3.925, allocations: 158.6 kB / 1.658 GB, free: 43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005113/3.931, allocations: 2.362 MB / 1.66 GB, free: 42.54 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.02341/3.954, allocations: 11.67 MB / 1.672 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004785/3.959, allocations: 1.889 MB / 1.673 GB, free: 33.42 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001262/3.96, allocations: 0.51 MB / 1.674 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003478/3.964, allocations: 1.369 MB / 1.675 GB, free: 32.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 7.404e-06/3.964, allocations: 2.625 kB / 1.675 GB, free: 32.4 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.04578/4.009, allocations: 12.47 MB / 1.687 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001504/4.01, allocations: 367.2 kB / 1.688 GB, free: 27.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004279/4.014, allocations: 1.479 MB / 1.689 GB, free: 26.44 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007465/4.015, allocations: 66.52 kB / 1.689 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00127/4.016, allocations: 0.9162 MB / 1.69 GB, free: 25.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001171/4.017, allocations: 0.6688 MB / 1.691 GB, free: 25.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005186/4.018, allocations: 41.75 kB / 1.691 GB, free: 25.11 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002416/4.018, allocations: 399 kB / 1.691 GB, free: 24.77 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003023/4.021, allocations: 1.105 MB / 1.692 GB, free: 24.28 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/4.024, allocations: 1.587 MB / 1.694 GB, free: 22.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003389/4.028, allocations: 1.371 MB / 1.695 GB, free: 21.47 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.941e-05/4.028, allocations: 4 kB / 1.695 GB, free: 21.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.009294/4.037, allocations: 3.402 MB / 1.699 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009174/4.038, allocations: 4.345 MB / 1.703 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/4.038, allocations: 14.84 kB / 1.703 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008189/4.039, allocations: 299.4 kB / 1.703 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/4.042, allocations: 0.5655 MB / 1.704 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/4.043, allocations: 3.017 MB / 1.707 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003326/4.047, allocations: 221 kB / 1.707 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007023/4.047, allocations: 206.2 kB / 1.707 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/4.048, allocations: 4 kB / 1.707 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006396/4.054, allocations: 3.138 MB / 1.71 GB, free: 6.789 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/4.054, allocations: 14.84 kB / 1.71 GB, free: 6.777 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006994/4.055, allocations: 300.3 kB / 1.71 GB, free: 6.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/4.057, allocations: 0.5621 MB / 1.711 GB, free: 6.043 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/4.059, allocations: 3.004 MB / 1.714 GB, free: 3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002998/4.062, allocations: 221.9 kB / 1.714 GB, free: 2.828 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005909/4.062, allocations: 210.5 kB / 1.714 GB, free: 2.637 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002412/4.065, allocations: 0.6981 MB / 1.715 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009478/4.066, allocations: 225.3 kB / 1.715 GB, free: 1.75 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/4.078, allocations: 4.924 MB / 1.72 GB, free: 13.99 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/4.078, allocations: 24 kB / 1.72 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/4.078, allocations: 0 / 1.72 GB, free: 13.97 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006288/4.085, allocations: 3.051 MB / 1.723 GB, free: 11.15 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01778/4.102, allocations: 7.312 MB / 1.73 GB, free: 4.879 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/4.102, allocations: 7.891 kB / 1.73 GB, free: 4.875 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/4.105, allocations: 466.7 kB / 1.731 GB, free: 4.488 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000993/4.106, allocations: 319.5 kB / 1.731 GB, free: 4.227 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004734/4.106, allocations: 115.1 kB / 1.731 GB, free: 4.129 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003427/4.11, allocations: 3.761 MB / 1.735 GB, free: 264 kB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/4.11, allocations: 8 kB / 1.735 GB, free: 256 kB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/4.12, allocations: 5.147 MB / 1.74 GB, free: 11.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002446/4.123, allocations: 0.5604 MB / 1.74 GB, free: 10.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/4.124, allocations: 71.19 kB / 1.74 GB, free: 10.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002707/4.127, allocations: 140.3 kB / 1.74 GB, free: 10.62 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004595/4.127, allocations: 193.2 kB / 1.741 GB, free: 10.49 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005326/4.128, allocations: 186.3 kB / 1.741 GB, free: 10.32 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003111/4.131, allocations: 1.136 MB / 1.742 GB, free: 9.215 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.61e-07/4.131, allocations: 4 kB / 1.742 GB, free: 9.211 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01072/4.141, allocations: 1.915 MB / 1.744 GB, free: 7.297 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.417/4.558, allocations: 9.471 MB / 1.753 GB, free: 74.42 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00995/4.568, allocations: 4.655 MB / 1.758 GB, free: 74.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/4.569, allocations: 4.531 kB / 1.758 GB, free: 74.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/4.571, allocations: 1.666 MB / 1.759 GB, free: 73.88 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006291/4.578, allocations: 1.117 MB / 1.76 GB, free: 73.86 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/4.596, allocations: 15.19 MB / 1.775 GB, free: 63.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/4.598, allocations: 1.766 MB / 1.777 GB, free: 62.57 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.008193/4.606, allocations: 3.122 MB / 1.78 GB, free: 62.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00274/4.609, allocations: 1.092 MB / 1.781 GB, free: 62.5 MB / 0.573 GB Notification: Performance of SimCode: time 1.844e-06/4.609, allocations: 1.25 kB / 1.781 GB, free: 62.5 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1764/4.785, allocations: 102.1 MB / 1.881 GB, free: 55.21 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/4.785, allocations: 260 kB / 1.881 GB, free: 54.88 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.923/10.71, allocations: 0 / 1.881 GB, free: 54.88 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)