Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001878/0.001878, allocations: 186.6 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001197, allocations: 100.6 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5406/0.5406, allocations: 43.56 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004883, allocations: 12 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1413, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.946/9.088, allocations: 2.83 GB / 3.308 GB, free: 85.09 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/9.088, allocations: 82.45 kB / 3.308 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.12/14.21, allocations: 0.9068 GB / 4.215 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.745e-06/14.21, allocations: 0.6562 kB / 4.215 GB, free: 35.32 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0004082/14.21, allocations: 68.39 kB / 4.215 GB, free: 35.32 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.0232/14.23, allocations: 4.321 MB / 4.22 GB, free: 33.53 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/14.23, allocations: 7.125 kB / 4.22 GB, free: 33.53 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001788/14.23, allocations: 308.8 kB / 4.22 GB, free: 33.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009838/14.24, allocations: 0.8753 MB / 4.221 GB, free: 33.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009086/14.25, allocations: 2.089 MB / 4.223 GB, free: 32.9 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003912/14.25, allocations: 183.6 kB / 4.223 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/14.25, allocations: 200.1 kB / 4.223 GB, free: 32.89 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/14.27, allocations: 3.71 MB / 4.227 GB, free: 32.37 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.783e-05/14.27, allocations: 7.844 kB / 4.227 GB, free: 32.37 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000453/14.27, allocations: 91.59 kB / 4.227 GB, free: 32.37 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003289/14.27, allocations: 168.5 kB / 4.227 GB, free: 32.37 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/14.28, allocations: 3.447 MB / 4.23 GB, free: 32.35 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.0332/14.32, allocations: 15.58 MB / 4.246 GB, free: 23.05 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009687/14.33, allocations: 2.304 MB / 4.248 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08054/14.41, allocations: 24.53 MB / 4.272 GB, free: 23.98 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008274/14.41, allocations: 1.726 MB / 4.273 GB, free: 23.86 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=163): time 7.264e-06/14.41, allocations: 1.125 kB / 4.273 GB, free: 23.86 MB / 0.5573 GB Notification: Performance of matching and sorting (n=179): time 0.04704/14.46, allocations: 9.222 MB / 4.282 GB, free: 22.63 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002223/14.46, allocations: 255.7 kB / 4.283 GB, free: 22.35 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003963/14.47, allocations: 1.515 MB / 4.284 GB, free: 22.17 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007153/14.47, allocations: 59.58 kB / 4.284 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001119/14.47, allocations: 0.9042 MB / 4.285 GB, free: 21.7 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/14.47, allocations: 0.6007 MB / 4.286 GB, free: 21.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003146/14.47, allocations: 43.28 kB / 4.286 GB, free: 21.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003249/14.47, allocations: 393.9 kB / 4.286 GB, free: 21.01 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004377/14.47, allocations: 1.146 MB / 4.287 GB, free: 21 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004984/14.48, allocations: 1.574 MB / 4.289 GB, free: 20.55 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004922/14.48, allocations: 1.381 MB / 4.29 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.5e-05/14.48, allocations: 3.906 kB / 4.29 GB, free: 20.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.012/14.5, allocations: 3.248 MB / 4.293 GB, free: 20.25 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001942/14.5, allocations: 4.331 MB / 4.298 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.754e-05/14.5, allocations: 9.906 kB / 4.298 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/14.5, allocations: 254.2 kB / 4.298 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/14.5, allocations: 0.5098 MB / 4.298 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/14.51, allocations: 2.433 MB / 4.301 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004757/14.51, allocations: 273.2 kB / 4.301 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007207/14.51, allocations: 105 kB / 4.301 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/14.51, allocations: 6.312 kB / 4.301 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0109/14.52, allocations: 3.098 MB / 4.304 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.945e-05/14.52, allocations: 12.12 kB / 4.304 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/14.53, allocations: 245.7 kB / 4.304 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004368/14.53, allocations: 0.5041 MB / 4.305 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/14.53, allocations: 2.431 MB / 4.307 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003659/14.54, allocations: 272.6 kB / 4.307 GB, free: 11.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004035/14.54, allocations: 105.7 kB / 4.308 GB, free: 11.36 MB / 0.5573 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.002463/14.54, allocations: 0.7534 MB / 4.308 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008051/14.54, allocations: 211.7 kB / 4.308 GB, free: 10.99 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01827/14.56, allocations: 7.735 MB / 4.316 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/14.56, allocations: 94.59 kB / 4.316 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/14.56, allocations: 0 / 4.316 GB, free: 10.24 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01566/14.57, allocations: 6.746 MB / 4.323 GB, free: 9.332 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02676/14.6, allocations: 11.04 MB / 4.333 GB, free: 8.551 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.072e-05/14.6, allocations: 0 / 4.333 GB, free: 8.551 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003583/14.6, allocations: 425.6 kB / 4.334 GB, free: 8.547 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002432/14.61, allocations: 360.4 kB / 4.334 GB, free: 8.508 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006632/14.61, allocations: 61.06 kB / 4.334 GB, free: 8.508 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/14.61, allocations: 2.525 MB / 4.337 GB, free: 22.43 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/14.61, allocations: 0 / 4.337 GB, free: 22.43 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0201/14.63, allocations: 7.28 MB / 4.344 GB, free: 21.77 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003183/14.63, allocations: 0.7769 MB / 4.345 GB, free: 21.45 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001267/14.63, allocations: 55.88 kB / 4.345 GB, free: 21.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004051/14.64, allocations: 212.8 kB / 4.345 GB, free: 21.43 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007224/14.64, allocations: 159.8 kB / 4.345 GB, free: 21.42 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/14.64, allocations: 74.36 kB / 4.345 GB, free: 21.42 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003269/14.64, allocations: 1.359 MB / 4.346 GB, free: 21.28 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.012e-06/14.64, allocations: 0 / 4.346 GB, free: 21.28 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01415/14.66, allocations: 2.873 MB / 4.349 GB, free: 20.88 MB / 0.573 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.03405/14.69, allocations: 10.66 MB / 4.36 GB, free: 19.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01539/14.71, allocations: 5.329 MB / 4.365 GB, free: 18.86 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/14.71, allocations: 0 / 4.365 GB, free: 18.86 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005726/14.71, allocations: 2.483 MB / 4.367 GB, free: 18.71 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009548/14.72, allocations: 1.04 MB / 4.368 GB, free: 18.67 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03245/14.75, allocations: 18.67 MB / 4.387 GB, free: 5.039 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/14.76, allocations: 2.235 MB / 4.389 GB, free: 4.16 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003345/14.76, allocations: 1.345 MB / 4.39 GB, free: 3.102 MB / 0.573 GB Notification: Performance of SimCode: time 1.674e-06/14.76, allocations: 0 / 4.39 GB, free: 3.102 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.663/20.42, allocations: 130.5 MB / 4.517 GB, free: 74.41 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat