Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001814, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 98.5 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.488/0.488, allocations: 45.22 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004151/0.0004149, allocations: 8 kB / 468.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.514/0.5144, allocations: 63.24 MB / 0.5193 GB, free: 43.86 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.505/8.02, allocations: 2.835 GB / 3.355 GB, free: 70.21 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/8.02, allocations: 87.11 kB / 3.355 GB, free: 70.17 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.551/11.57, allocations: 0.9156 GB / 4.27 GB, free: 15.83 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.106e-06/11.57, allocations: 4 kB / 4.27 GB, free: 15.82 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004387/11.57, allocations: 63.92 kB / 4.27 GB, free: 15.76 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02263/11.59, allocations: 4.33 MB / 4.275 GB, free: 11.36 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.177e-05/11.59, allocations: 12.03 kB / 4.275 GB, free: 11.34 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002398/11.6, allocations: 307.6 kB / 4.275 GB, free: 11.03 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00804/11.61, allocations: 0.8749 MB / 4.276 GB, free: 10.15 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008668/11.61, allocations: 2.094 MB / 4.278 GB, free: 8.004 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003681/11.61, allocations: 183.9 kB / 4.278 GB, free: 7.824 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/11.62, allocations: 204 kB / 4.278 GB, free: 7.625 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009702/11.63, allocations: 3.701 MB / 4.282 GB, free: 3.73 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.382e-05/11.63, allocations: 11.84 kB / 4.282 GB, free: 3.719 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002631/11.63, allocations: 91.97 kB / 4.282 GB, free: 3.629 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002089/11.63, allocations: 167.8 kB / 4.282 GB, free: 3.465 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00773/11.63, allocations: 3.446 MB / 4.286 GB, free: 16 kB / 0.573 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.5088/12.14, allocations: 15.57 MB / 4.301 GB, free: 27.65 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00587/12.15, allocations: 2.315 MB / 4.303 GB, free: 27.62 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04915/12.2, allocations: 27.09 MB / 4.329 GB, free: 25.98 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005145/12.2, allocations: 1.726 MB / 4.331 GB, free: 25.87 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 4.969e-06/12.2, allocations: 0 / 4.331 GB, free: 25.87 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.0279/12.23, allocations: 9.229 MB / 4.34 GB, free: 24.71 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002059/12.23, allocations: 256.9 kB / 4.34 GB, free: 24.43 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/12.23, allocations: 1.515 MB / 4.342 GB, free: 24.26 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000276/12.23, allocations: 58.27 kB / 4.342 GB, free: 24.23 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001156/12.24, allocations: 0.9802 MB / 4.343 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006239/12.24, allocations: 0.5969 MB / 4.343 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/12.24, allocations: 43.34 kB / 4.344 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002173/12.24, allocations: 383.4 kB / 4.344 GB, free: 23.33 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/12.24, allocations: 1.15 MB / 4.345 GB, free: 23.32 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002581/12.24, allocations: 1.576 MB / 4.347 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/12.24, allocations: 1.384 MB / 4.348 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/12.24, allocations: 1.875 kB / 4.348 GB, free: 22.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008068/12.25, allocations: 3.373 MB / 4.351 GB, free: 22.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001711/12.25, allocations: 4.486 MB / 4.356 GB, free: 17.81 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.108e-05/12.25, allocations: 11.28 kB / 4.356 GB, free: 17.81 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009824/12.26, allocations: 255.2 kB / 4.356 GB, free: 17.77 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/12.26, allocations: 0.5117 MB / 4.356 GB, free: 17.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/12.26, allocations: 2.434 MB / 4.359 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/12.26, allocations: 271.7 kB / 4.359 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/12.26, allocations: 106.1 kB / 4.359 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/12.26, allocations: 3.844 kB / 4.359 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006779/12.27, allocations: 3.103 MB / 4.362 GB, free: 15.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/12.27, allocations: 9.969 kB / 4.362 GB, free: 15.55 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008595/12.27, allocations: 246.8 kB / 4.362 GB, free: 15.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/12.27, allocations: 0.5084 MB / 4.363 GB, free: 15.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002332/12.28, allocations: 2.43 MB / 4.365 GB, free: 29.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/12.28, allocations: 266.5 kB / 4.365 GB, free: 29.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005475/12.28, allocations: 99.55 kB / 4.366 GB, free: 29.44 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.002177/12.28, allocations: 0.7574 MB / 4.366 GB, free: 29.18 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006991/12.28, allocations: 219.2 kB / 4.366 GB, free: 29.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/12.29, allocations: 7.737 MB / 4.374 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.139e-05/12.29, allocations: 84.86 kB / 4.374 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/12.29, allocations: 3.953 kB / 4.374 GB, free: 28.41 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008361/12.3, allocations: 6.754 MB / 4.381 GB, free: 27.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/12.32, allocations: 11.03 MB / 4.392 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/12.32, allocations: 3.938 kB / 4.392 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/12.32, allocations: 418.5 kB / 4.392 GB, free: 26.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001309/12.32, allocations: 359.7 kB / 4.392 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/12.32, allocations: 64.81 kB / 4.392 GB, free: 26.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/12.32, allocations: 2.525 MB / 4.395 GB, free: 24.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/12.32, allocations: 0 / 4.395 GB, free: 24.62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009606/12.33, allocations: 7.289 MB / 4.402 GB, free: 23.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002547/12.34, allocations: 0.7829 MB / 4.403 GB, free: 23.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006197/12.34, allocations: 50.38 kB / 4.403 GB, free: 23.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001919/12.34, allocations: 215 kB / 4.403 GB, free: 23.61 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003636/12.34, allocations: 155.6 kB / 4.403 GB, free: 23.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/12.34, allocations: 82.17 kB / 4.403 GB, free: 23.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002244/12.34, allocations: 1.346 MB / 4.404 GB, free: 23.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/12.34, allocations: 0 / 4.404 GB, free: 23.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01431/12.35, allocations: 2.903 MB / 4.407 GB, free: 23.34 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 Backend phase and start with SimCode phase: time 0.02499/12.38, allocations: 10.68 MB / 4.418 GB, free: 21.94 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01002/12.39, allocations: 5.33 MB / 4.423 GB, free: 21.59 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/12.39, allocations: 2.734 kB / 4.423 GB, free: 21.59 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003611/12.39, allocations: 2.491 MB / 4.425 GB, free: 21.45 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005377/12.4, allocations: 1.033 MB / 4.426 GB, free: 21.43 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/12.42, allocations: 18.66 MB / 4.445 GB, free: 9.316 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002047/12.43, allocations: 2.283 MB / 4.447 GB, free: 8.512 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004917/12.43, allocations: 2.488 MB / 4.449 GB, free: 8.438 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001953/12.43, allocations: 1.324 MB / 4.451 GB, free: 8.434 MB / 0.6042 GB Notification: Performance of SimCode: time 1.272e-06/12.43, allocations: 0 / 4.451 GB, free: 8.434 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6079/13.04, allocations: 117.5 MB / 4.565 GB, free: 81.51 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/13.04, allocations: 260.4 kB / 4.566 GB, free: 81.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.033/20.07, allocations: 0 / 4.566 GB, free: 81.17 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat