Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001559/0.001559, 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.458/1.458, allocations: 227.2 MB / 245 MB, free: 5.789 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 99.69 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4612/0.4612, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 8 kB / 468.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4154, allocations: 63.25 MB / 0.5193 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.284/1.7, allocations: 0.5625 GB / 1.082 GB, free: 19.76 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/1.7, allocations: 92.23 kB / 1.082 GB, free: 19.71 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.245/3.945, allocations: 0.509 GB / 1.591 GB, free: 48.17 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.745e-06/3.945, allocations: 0 / 1.591 GB, free: 48.17 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004391/3.946, allocations: 60.58 kB / 1.591 GB, free: 48.16 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.01348/3.959, allocations: 3.115 MB / 1.594 GB, free: 46.92 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/3.959, allocations: 10.3 kB / 1.594 GB, free: 46.92 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001709/3.961, allocations: 249 kB / 1.594 GB, free: 46.87 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004335/3.965, allocations: 450.8 kB / 1.595 GB, free: 46.75 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007943/3.973, allocations: 1.95 MB / 1.596 GB, free: 46.31 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003028/3.974, allocations: 126.2 kB / 1.597 GB, free: 46.31 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/3.975, allocations: 178.1 kB / 1.597 GB, free: 46.31 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008354/3.983, allocations: 2.653 MB / 1.599 GB, free: 45.88 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001537/3.984, allocations: 5.75 kB / 1.599 GB, free: 45.88 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/3.985, allocations: 71.55 kB / 1.599 GB, free: 45.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003359/3.985, allocations: 147.4 kB / 1.6 GB, free: 45.88 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006129/3.991, allocations: 2.269 MB / 1.602 GB, free: 45.86 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.02131/4.013, allocations: 11.1 MB / 1.613 GB, free: 39.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003681/4.016, allocations: 1.817 MB / 1.614 GB, free: 39.54 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009631/4.017, allocations: 0.5072 MB / 1.615 GB, free: 39.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002564/4.02, allocations: 1.301 MB / 1.616 GB, free: 38.91 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 4.899e-06/4.02, allocations: 0 / 1.616 GB, free: 38.91 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.02992/4.05, allocations: 11.24 MB / 1.627 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/4.05, allocations: 357.8 kB / 1.627 GB, free: 36.52 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003151/4.053, allocations: 1.421 MB / 1.629 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004919/4.054, allocations: 61.05 kB / 1.629 GB, free: 36.32 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009843/4.055, allocations: 0.8758 MB / 1.63 GB, free: 36.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008259/4.056, allocations: 0.6164 MB / 1.63 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/4.056, allocations: 42.03 kB / 1.63 GB, free: 35.62 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001718/4.056, allocations: 387.5 kB / 1.631 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00198/4.058, allocations: 1.041 MB / 1.632 GB, free: 35.31 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002345/4.06, allocations: 1.492 MB / 1.633 GB, free: 34.89 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002403/4.063, allocations: 1.302 MB / 1.635 GB, free: 34.81 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/4.063, allocations: 9.734 kB / 1.635 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.006427/4.069, allocations: 3.171 MB / 1.638 GB, free: 34.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009411/4.07, allocations: 3.778 MB / 1.641 GB, free: 30.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/4.07, allocations: 9.812 kB / 1.641 GB, free: 30.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005057/4.071, allocations: 189.4 kB / 1.642 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002539/4.073, allocations: 0.546 MB / 1.642 GB, free: 30.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/4.075, allocations: 2.326 MB / 1.644 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/4.078, allocations: 222.4 kB / 1.645 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006014/4.079, allocations: 186 kB / 1.645 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/4.079, allocations: 5.938 kB / 1.645 GB, free: 28.46 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005787/4.084, allocations: 2.896 MB / 1.648 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/4.084, allocations: 8.906 kB / 1.648 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/4.085, allocations: 188.9 kB / 1.648 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/4.087, allocations: 0.5346 MB / 1.648 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/4.089, allocations: 2.327 MB / 1.651 GB, free: 26.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002943/4.091, allocations: 211.7 kB / 1.651 GB, free: 26.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000565/4.092, allocations: 183.5 kB / 1.651 GB, free: 26.2 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.002038/4.094, allocations: 0.6926 MB / 1.652 GB, free: 25.94 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008153/4.095, allocations: 215.3 kB / 1.652 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00925/4.104, allocations: 4.671 MB / 1.656 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/4.104, allocations: 20.95 kB / 1.656 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/4.104, allocations: 3.062 kB / 1.656 GB, free: 25.54 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004095/4.108, allocations: 2.8 MB / 1.659 GB, free: 24.96 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/4.123, allocations: 7.053 MB / 1.666 GB, free: 21.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/4.123, allocations: 6.156 kB / 1.666 GB, free: 21.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/4.125, allocations: 429.8 kB / 1.666 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004672/4.125, allocations: 187.5 kB / 1.667 GB, free: 21.83 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003009/4.126, allocations: 105.2 kB / 1.667 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001818/4.128, allocations: 3.079 MB / 1.67 GB, free: 18.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/4.128, allocations: 15.05 kB / 1.67 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008091/4.136, allocations: 4.801 MB / 1.674 GB, free: 16.23 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002118/4.138, allocations: 0.542 MB / 1.675 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009769/4.139, allocations: 62.31 kB / 1.675 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/4.141, allocations: 134.8 kB / 1.675 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/4.142, allocations: 172.1 kB / 1.675 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003743/4.142, allocations: 169.8 kB / 1.675 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002402/4.144, allocations: 1.107 MB / 1.677 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.01e-07/4.144, allocations: 0 / 1.677 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008646/4.153, allocations: 1.812 MB / 1.678 GB, free: 14.98 MB / 0.5417 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.01661/4.17, allocations: 9.154 MB / 1.687 GB, free: 25.71 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009934/4.18, allocations: 4.368 MB / 1.691 GB, free: 24.13 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-05/4.18, allocations: 3.5 kB / 1.692 GB, free: 24.13 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003078/4.183, allocations: 1.532 MB / 1.693 GB, free: 23.46 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005912/4.189, allocations: 0.9784 MB / 1.694 GB, free: 23.27 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0212/4.21, allocations: 13.75 MB / 1.707 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002878/4.213, allocations: 1.722 MB / 1.709 GB, free: 9.406 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008099/4.221, allocations: 3.038 MB / 1.712 GB, free: 7.48 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002776/4.224, allocations: 1.029 MB / 1.713 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of SimCode: time 8.51e-07/4.224, allocations: 0 / 1.713 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5169/4.741, allocations: 93.92 MB / 1.805 GB, free: 68.35 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/4.741, allocations: 268.5 kB / 1.805 GB, free: 68 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.909/10.65, allocations: 3.938 kB / 1.805 GB, free: 68 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)