Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.605/1.605, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000939/0.000939, allocations: 95.78 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2296/0.2296, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.694e-05, allocations: 0 / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.172, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.826/8.998, allocations: 2.834 GB / 3.336 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/8.998, allocations: 79.95 kB / 3.336 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.568/12.57, allocations: 0.9141 GB / 4.25 GB, free: 3.988 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.794e-06/12.57, allocations: 0 / 4.25 GB, free: 3.988 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002001/12.57, allocations: 63.98 kB / 4.25 GB, free: 3.926 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01647/12.58, allocations: 4.035 MB / 4.254 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.725e-05/12.58, allocations: 11.97 kB / 4.254 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001218/12.58, allocations: 299.6 kB / 4.255 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007092/12.59, allocations: 0.8788 MB / 4.255 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00683/12.6, allocations: 2.077 MB / 4.258 GB, free: 12.49 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/12.6, allocations: 179.8 kB / 4.258 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006614/12.6, allocations: 204 kB / 4.258 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007883/12.61, allocations: 3.681 MB / 4.261 GB, free: 8.246 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.105e-05/12.61, allocations: 11.88 kB / 4.261 GB, free: 8.234 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/12.61, allocations: 91.95 kB / 4.262 GB, free: 8.145 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002141/12.61, allocations: 171.7 kB / 4.262 GB, free: 7.977 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006702/12.61, allocations: 3.294 MB / 4.265 GB, free: 4.68 MB / 0.5573 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.5269/13.14, allocations: 15.58 MB / 4.28 GB, free: 27.48 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005632/13.15, allocations: 2.197 MB / 4.282 GB, free: 27.44 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002248/13.15, allocations: 1.058 MB / 4.283 GB, free: 27.43 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04981/13.2, allocations: 24.62 MB / 4.307 GB, free: 28.43 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004898/13.2, allocations: 1.726 MB / 4.309 GB, free: 28.3 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 5.39e-06/13.2, allocations: 0 / 4.309 GB, free: 28.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.02337/13.23, allocations: 7.656 MB / 4.317 GB, free: 27.36 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/13.23, allocations: 258.7 kB / 4.317 GB, free: 27.08 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/13.23, allocations: 1.498 MB / 4.318 GB, free: 26.91 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004995/13.23, allocations: 58.11 kB / 4.318 GB, free: 26.88 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001029/13.23, allocations: 0.9776 MB / 4.319 GB, free: 26.58 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000828/13.23, allocations: 0.6018 MB / 4.32 GB, free: 26.28 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/13.23, allocations: 40.53 kB / 4.32 GB, free: 26.28 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002026/13.23, allocations: 389 kB / 4.32 GB, free: 25.97 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/13.24, allocations: 1.031 MB / 4.321 GB, free: 25.96 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/13.24, allocations: 1.457 MB / 4.323 GB, free: 25.52 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/13.24, allocations: 1.263 MB / 4.324 GB, free: 25.43 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/13.24, allocations: 5.469 kB / 4.324 GB, free: 25.43 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006274/13.25, allocations: 3.123 MB / 4.327 GB, free: 25.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002138/13.25, allocations: 4.487 MB / 4.331 GB, free: 20.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.658e-05/13.25, allocations: 15.22 kB / 4.331 GB, free: 20.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009068/13.25, allocations: 233.5 kB / 4.332 GB, free: 20.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/13.25, allocations: 0.5136 MB / 4.332 GB, free: 20.41 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/13.25, allocations: 2.425 MB / 4.334 GB, free: 18.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003614/13.26, allocations: 272.9 kB / 4.335 GB, free: 18.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006931/13.26, allocations: 108.7 kB / 4.335 GB, free: 18.33 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/13.26, allocations: 3.625 kB / 4.335 GB, free: 18.33 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006881/13.26, allocations: 2.849 MB / 4.338 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.621e-05/13.27, allocations: 10.56 kB / 4.338 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008072/13.27, allocations: 233.5 kB / 4.338 GB, free: 18.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/13.27, allocations: 0.5044 MB / 4.338 GB, free: 18.16 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/13.27, allocations: 2.431 MB / 4.341 GB, free: 16.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003114/13.27, allocations: 267.7 kB / 4.341 GB, free: 16.08 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005655/13.27, allocations: 106.1 kB / 4.341 GB, free: 16.08 MB / 0.573 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 () * 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.001372/13.27, allocations: 298.1 kB / 4.341 GB, free: 15.91 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/13.28, allocations: 214.9 kB / 4.342 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/13.29, allocations: 7.643 MB / 4.349 GB, free: 15.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.537e-05/13.29, allocations: 86.16 kB / 4.349 GB, free: 15.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.135e-05/13.29, allocations: 0 / 4.349 GB, free: 15.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008517/13.3, allocations: 6.642 MB / 4.356 GB, free: 14.17 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01784/13.31, allocations: 10.91 MB / 4.366 GB, free: 13.44 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/13.31, allocations: 0 / 4.366 GB, free: 13.44 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001768/13.32, allocations: 416 kB / 4.367 GB, free: 13.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001188/13.32, allocations: 345.3 kB / 4.367 GB, free: 13.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003402/13.32, allocations: 63.75 kB / 4.367 GB, free: 13.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/13.32, allocations: 2.514 MB / 4.37 GB, free: 27.33 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/13.32, allocations: 0.9375 kB / 4.37 GB, free: 27.33 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/13.33, allocations: 6.936 MB / 4.376 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/13.34, allocations: 0.7754 MB / 4.377 GB, free: 26.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00093/13.34, allocations: 52.27 kB / 4.377 GB, free: 26.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002788/13.34, allocations: 220.5 kB / 4.377 GB, free: 26.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004562/13.34, allocations: 150.5 kB / 4.377 GB, free: 26.31 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002493/13.34, allocations: 76.41 kB / 4.378 GB, free: 26.31 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00302/13.34, allocations: 1.326 MB / 4.379 GB, free: 26.15 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.41e-07/13.34, allocations: 0 / 4.379 GB, free: 26.15 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01404/13.36, allocations: 2.888 MB / 4.382 GB, free: 26.03 MB / 0.5886 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) * 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.02815/13.39, allocations: 10.31 MB / 4.392 GB, free: 24.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01153/13.4, allocations: 5.119 MB / 4.397 GB, free: 24.27 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 8.717e-06/13.4, allocations: 0 / 4.397 GB, free: 24.27 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003887/13.4, allocations: 2.38 MB / 4.399 GB, free: 24.13 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006337/13.41, allocations: 1.033 MB / 4.4 GB, free: 24.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01902/13.43, allocations: 7.453 MB / 4.407 GB, free: 22.77 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002448/13.43, allocations: 2.289 MB / 4.41 GB, free: 22 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006354/13.43, allocations: 2.682 MB / 4.412 GB, free: 21.96 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00223/13.44, allocations: 1.3 MB / 4.413 GB, free: 21.95 MB / 0.5886 GB Notification: Performance of SimCode: time 1.442e-06/13.44, allocations: 0 / 4.413 GB, free: 21.95 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6486/14.09, allocations: 125.2 MB / 4.536 GB, free: 81.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/14.09, allocations: 234.5 kB / 4.536 GB, free: 81.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.936/21.02, allocations: 0 / 4.536 GB, free: 81.54 MB / 0.6042 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat