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.002677/0.002677, allocations: 176.5 kB / 17.06 MB, free: 5.098 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.553/1.553, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009494/0.0009492, allocations: 91.98 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4461/0.4461, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003972, allocations: 12 kB / 460 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4469/0.4473, allocations: 61.9 MB / 0.5096 GB, free: 37.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.747/7.194, allocations: 2.834 GB / 3.344 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/7.194, allocations: 90.27 kB / 3.344 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.7/10.89, allocations: 0.9166 GB / 4.261 GB, free: 37.15 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.625e-06/10.89, allocations: 0 / 4.261 GB, free: 37.15 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002023/10.89, allocations: 71.14 kB / 4.261 GB, free: 37.14 MB / 0.5573 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.01676/10.91, allocations: 4.318 MB / 4.265 GB, free: 35.27 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/10.91, allocations: 10.09 kB / 4.265 GB, free: 35.27 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001097/10.91, allocations: 307.9 kB / 4.265 GB, free: 35.22 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006225/10.92, allocations: 0.8794 MB / 4.266 GB, free: 35.08 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005693/10.92, allocations: 2.101 MB / 4.268 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/10.92, allocations: 176.7 kB / 4.268 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004095/10.92, allocations: 201.6 kB / 4.269 GB, free: 34.63 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007109/10.93, allocations: 3.703 MB / 4.272 GB, free: 34.11 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/10.93, allocations: 7.719 kB / 4.272 GB, free: 34.11 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/10.93, allocations: 90.66 kB / 4.272 GB, free: 34.11 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/10.93, allocations: 170.7 kB / 4.272 GB, free: 34.11 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00687/10.94, allocations: 3.451 MB / 4.276 GB, free: 34.09 MB / 0.5573 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.02056/10.96, allocations: 15.58 MB / 4.291 GB, free: 24.78 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005354/10.97, allocations: 2.312 MB / 4.293 GB, free: 24.74 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04513/11.01, allocations: 24.53 MB / 4.317 GB, free: 25.6 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005366/11.02, allocations: 1.728 MB / 4.319 GB, free: 25.47 MB / 0.573 GB Notification: Performance of pre-optimization done (n=163): time 6.261e-06/11.02, allocations: 0 / 4.319 GB, free: 25.47 MB / 0.573 GB Notification: Performance of matching and sorting (n=179): time 0.02716/11.04, allocations: 9.215 MB / 4.328 GB, free: 24.15 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001728/11.04, allocations: 259.9 kB / 4.328 GB, free: 23.87 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/11.05, allocations: 1.521 MB / 4.33 GB, free: 23.69 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003436/11.05, allocations: 60.33 kB / 4.33 GB, free: 23.65 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001091/11.05, allocations: 0.9794 MB / 4.331 GB, free: 23.27 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007185/11.05, allocations: 0.5998 MB / 4.331 GB, free: 22.89 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/11.05, allocations: 37.66 kB / 4.331 GB, free: 22.89 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002491/11.05, allocations: 384.3 kB / 4.332 GB, free: 22.58 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/11.05, allocations: 1.15 MB / 4.333 GB, free: 22.57 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/11.05, allocations: 1.577 MB / 4.334 GB, free: 22.1 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/11.06, allocations: 1.377 MB / 4.336 GB, free: 22 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/11.06, allocations: 3.844 kB / 4.336 GB, free: 22 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006846/11.06, allocations: 3.374 MB / 4.339 GB, free: 21.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002116/11.07, allocations: 4.488 MB / 4.343 GB, free: 16.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/11.07, allocations: 11.06 kB / 4.343 GB, free: 16.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009655/11.07, allocations: 250.5 kB / 4.344 GB, free: 16.92 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/11.07, allocations: 0.5095 MB / 4.344 GB, free: 16.91 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/11.07, allocations: 2.432 MB / 4.346 GB, free: 14.84 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/11.07, allocations: 276.4 kB / 4.347 GB, free: 14.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004199/11.07, allocations: 102.7 kB / 4.347 GB, free: 14.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/11.07, allocations: 3.938 kB / 4.347 GB, free: 14.8 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006316/11.08, allocations: 3.096 MB / 4.35 GB, free: 14.64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/11.08, allocations: 8.25 kB / 4.35 GB, free: 14.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008444/11.08, allocations: 258.2 kB / 4.35 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/11.08, allocations: 0.5066 MB / 4.351 GB, free: 14.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/11.09, allocations: 2.433 MB / 4.353 GB, free: 12.49 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/11.09, allocations: 272.1 kB / 4.353 GB, free: 12.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/11.09, allocations: 99.2 kB / 4.353 GB, free: 12.46 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 () * 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.001893/11.09, allocations: 0.7533 MB / 4.354 GB, free: 12.17 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006848/11.09, allocations: 215.8 kB / 4.354 GB, free: 12.06 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/11.1, allocations: 7.737 MB / 4.362 GB, free: 10.57 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.112e-05/11.1, allocations: 89.94 kB / 4.362 GB, free: 10.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.097e-05/11.1, allocations: 0 / 4.362 GB, free: 10.54 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00907/11.11, allocations: 6.759 MB / 4.369 GB, free: 7.383 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0169/11.13, allocations: 11.03 MB / 4.379 GB, free: 2.715 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/11.13, allocations: 0 / 4.379 GB, free: 2.715 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/11.13, allocations: 415.7 kB / 4.38 GB, free: 2.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/11.13, allocations: 367.5 kB / 4.38 GB, free: 2.562 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000236/11.13, allocations: 62.78 kB / 4.38 GB, free: 2.531 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/11.13, allocations: 2.527 MB / 4.383 GB, free: 252 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/11.13, allocations: 3.938 kB / 4.383 GB, free: 248 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01194/11.15, allocations: 7.298 MB / 4.39 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002688/11.15, allocations: 0.7832 MB / 4.39 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008885/11.15, allocations: 47.23 kB / 4.391 GB, free: 10.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002462/11.15, allocations: 210.8 kB / 4.391 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003727/11.15, allocations: 156.4 kB / 4.391 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/11.15, allocations: 75.83 kB / 4.391 GB, free: 10.29 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003105/11.16, allocations: 1.353 MB / 4.392 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.4e-07/11.16, allocations: 4 kB / 4.392 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0145/11.17, allocations: 2.88 MB / 4.395 GB, free: 6.316 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) * 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.03258/11.2, allocations: 10.95 MB / 4.406 GB, free: 13.77 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01251/11.22, allocations: 5.328 MB / 4.411 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/11.22, allocations: 3.938 kB / 4.411 GB, free: 9.027 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.004311/11.22, allocations: 2.482 MB / 4.413 GB, free: 6.766 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006081/11.23, allocations: 1.039 MB / 4.414 GB, free: 6.02 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4411/11.67, allocations: 18.65 MB / 4.433 GB, free: 69.68 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/11.67, allocations: 2.282 MB / 4.435 GB, free: 68.92 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.006253/11.68, allocations: 2.49 MB / 4.437 GB, free: 68.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/11.68, allocations: 1.327 MB / 4.439 GB, free: 68.9 MB / 0.6042 GB Notification: Performance of SimCode: time 1.694e-06/11.68, allocations: 0 / 4.439 GB, free: 68.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.203/11.88, allocations: 117 MB / 4.553 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002553/11.88, allocations: 253.9 kB / 4.553 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.618/18.5, allocations: 0 / 4.553 GB, free: 62.76 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