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.001163/0.001163, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009677/0.0009679, allocations: 93.12 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2581/0.2581, allocations: 45.15 MB / 383.8 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.942e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1499, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.942/2.092, allocations: 0.5618 GB / 1.066 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/2.092, allocations: 75.97 kB / 1.066 GB, free: 100.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.914/5.006, allocations: 0.5595 GB / 1.626 GB, free: 46.77 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.677e-06/5.006, allocations: 2.156 kB / 1.626 GB, free: 46.77 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0005431/5.007, allocations: 64.77 kB / 1.626 GB, free: 46.77 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.01657/5.023, allocations: 2.953 MB / 1.629 GB, free: 45.61 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.687e-05/5.023, allocations: 9.781 kB / 1.629 GB, free: 45.61 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005734/5.029, allocations: 461.7 kB / 1.629 GB, free: 45.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00892/5.038, allocations: 1.999 MB / 1.631 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/5.038, allocations: 63.62 kB / 1.631 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/5.04, allocations: 104.1 kB / 1.631 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006477/5.046, allocations: 2.215 MB / 1.634 GB, free: 45.08 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008466/5.055, allocations: 2.493 MB / 1.636 GB, free: 44.62 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/5.055, allocations: 5.156 kB / 1.636 GB, free: 44.62 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009339/5.056, allocations: 6.125 kB / 1.636 GB, free: 44.62 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003431/5.056, allocations: 159.4 kB / 1.636 GB, free: 44.62 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.02149/5.078, allocations: 11.38 MB / 1.647 GB, free: 38.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003327/5.081, allocations: 1.769 MB / 1.649 GB, free: 37.96 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/5.083, allocations: 1.061 MB / 1.65 GB, free: 37.95 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/5.084, allocations: 0.5086 MB / 1.65 GB, free: 37.48 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002339/5.086, allocations: 1.247 MB / 1.652 GB, free: 37.31 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=167): time 7.665e-06/5.087, allocations: 2.812 kB / 1.652 GB, free: 37.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=195): time 0.04946/5.136, allocations: 9.865 MB / 1.661 GB, free: 36.35 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002113/5.136, allocations: 360.6 kB / 1.662 GB, free: 35.94 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003039/5.139, allocations: 1.102 MB / 1.663 GB, free: 35.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008638/5.14, allocations: 25.7 kB / 1.663 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001314/5.142, allocations: 0.9383 MB / 1.664 GB, free: 35.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001514/5.143, allocations: 0.6337 MB / 1.664 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006476/5.144, allocations: 0 / 1.664 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003247/5.144, allocations: 399.8 kB / 1.665 GB, free: 34.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002653/5.147, allocations: 1.025 MB / 1.666 GB, free: 34.61 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003112/5.15, allocations: 1.498 MB / 1.667 GB, free: 34.15 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/5.161, allocations: 2.244 MB / 1.669 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-05/5.161, allocations: 6.25 kB / 1.669 GB, free: 34.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01826/5.179, allocations: 4.072 MB / 1.673 GB, free: 33.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002038/5.182, allocations: 4.256 MB / 1.677 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.655e-05/5.182, allocations: 9.438 kB / 1.678 GB, free: 29.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000992/5.183, allocations: 277.3 kB / 1.678 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003238/5.186, allocations: 0.5707 MB / 1.678 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002327/5.188, allocations: 3.028 MB / 1.681 GB, free: 26.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004037/5.192, allocations: 182.3 kB / 1.681 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001101/5.194, allocations: 206 kB / 1.682 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/5.194, allocations: 3.531 kB / 1.682 GB, free: 26.93 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01637/5.21, allocations: 3.583 MB / 1.685 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.974e-05/5.21, allocations: 11.81 kB / 1.685 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00081/5.211, allocations: 274.5 kB / 1.685 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003013/5.214, allocations: 0.5589 MB / 1.686 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/5.217, allocations: 3.034 MB / 1.689 GB, free: 24.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003991/5.221, allocations: 171.1 kB / 1.689 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/5.222, allocations: 205 kB / 1.689 GB, free: 24.2 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 () * 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.002253/5.224, allocations: 231.6 kB / 1.69 GB, free: 24.02 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01742/5.242, allocations: 3.522 MB / 1.693 GB, free: 23.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001634/5.243, allocations: 205.8 kB / 1.693 GB, free: 23.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02433/5.268, allocations: 5.224 MB / 1.698 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-05/5.268, allocations: 20.91 kB / 1.698 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.119e-05/5.268, allocations: 0 / 1.698 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01747/5.286, allocations: 3.797 MB / 1.702 GB, free: 22.96 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03028/5.316, allocations: 7.571 MB / 1.709 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-05/5.316, allocations: 7.156 kB / 1.709 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/5.319, allocations: 462.4 kB / 1.71 GB, free: 21.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001001/5.32, allocations: 292.9 kB / 1.71 GB, free: 21.71 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007275/5.321, allocations: 88.7 kB / 1.71 GB, free: 21.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005039/5.326, allocations: 3.716 MB / 1.714 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.64e-05/5.326, allocations: 14.22 kB / 1.714 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/5.349, allocations: 5.665 MB / 1.719 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003151/5.353, allocations: 0.5261 MB / 1.72 GB, free: 33.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001629/5.354, allocations: 29.05 kB / 1.72 GB, free: 33.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003438/5.358, allocations: 107.7 kB / 1.72 GB, free: 33.19 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007199/5.359, allocations: 178.2 kB / 1.72 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007376/5.359, allocations: 186.1 kB / 1.72 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002707/5.362, allocations: 0.804 MB / 1.721 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/5.362, allocations: 2.719 kB / 1.721 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01342/5.376, allocations: 1.74 MB / 1.723 GB, free: 32.87 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 196 * 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.03174/5.407, allocations: 10.07 MB / 1.733 GB, free: 28.58 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01232/5.42, allocations: 4.401 MB / 1.737 GB, free: 26.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.138e-05/5.42, allocations: 6.953 kB / 1.737 GB, free: 26.66 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003665/5.424, allocations: 1.548 MB / 1.738 GB, free: 25.22 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006996/5.431, allocations: 0.9367 MB / 1.739 GB, free: 24.6 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/5.453, allocations: 4.982 MB / 1.744 GB, free: 20.23 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003202/5.456, allocations: 1.763 MB / 1.746 GB, free: 18.81 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01064/5.467, allocations: 3.136 MB / 1.749 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003338/5.47, allocations: 1.061 MB / 1.75 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of SimCode: time 1.062e-06/5.47, allocations: 0 / 1.75 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7339/6.204, allocations: 85.1 MB / 1.833 GB, free: 71.64 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/6.205, allocations: 180.2 kB / 1.833 GB, free: 71.45 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.377/11.58, allocations: 0 / 1.833 GB, free: 71.45 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)