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.002201/0.002201, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.319/2.319, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 96.42 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3012/0.3012, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.898e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4762/0.4763, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.839/9.315, allocations: 2.829 GB / 3.295 GB, free: 103.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/9.316, allocations: 79.69 kB / 3.295 GB, free: 103.4 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.622/13.94, allocations: 0.8965 GB / 4.191 GB, free: 29.37 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.204e-06/13.94, allocations: 0 / 4.191 GB, free: 29.37 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003195/13.94, allocations: 71.66 kB / 4.191 GB, free: 29.35 MB / 0.5265 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.01809/13.96, allocations: 4.035 MB / 4.195 GB, free: 26.01 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/13.96, allocations: 12.03 kB / 4.195 GB, free: 26 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009118/13.97, allocations: 0.8707 MB / 4.196 GB, free: 25.3 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008371/13.97, allocations: 2.066 MB / 4.198 GB, free: 23.63 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/13.97, allocations: 102.4 kB / 4.198 GB, free: 23.54 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009794/13.97, allocations: 116 kB / 4.198 GB, free: 23.42 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007684/13.98, allocations: 2.674 MB / 4.201 GB, free: 21.04 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008433/13.99, allocations: 2.889 MB / 4.204 GB, free: 18.09 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.874e-05/13.99, allocations: 7.938 kB / 4.204 GB, free: 18.08 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/13.99, allocations: 12 kB / 4.204 GB, free: 18.07 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002961/13.99, allocations: 163.8 kB / 4.204 GB, free: 17.91 MB / 0.5265 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.8484/14.84, allocations: 126.2 MB / 4.327 GB, free: 19.8 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004595/14.84, allocations: 2.079 MB / 4.329 GB, free: 19.21 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/14.85, allocations: 0.9804 MB / 4.33 GB, free: 19.2 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05421/14.9, allocations: 17.01 MB / 4.347 GB, free: 24.13 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002797/14.9, allocations: 1.196 MB / 4.348 GB, free: 23.97 MB / 0.589 GB Notification: Performance of pre-optimization done (n=153): time 5.761e-06/14.9, allocations: 0 / 4.348 GB, free: 23.97 MB / 0.589 GB Notification: Performance of matching and sorting (n=169): time 0.03192/14.94, allocations: 7.957 MB / 4.356 GB, free: 22.41 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002262/14.94, allocations: 366 kB / 4.356 GB, free: 22 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002364/14.94, allocations: 1.145 MB / 4.357 GB, free: 21.84 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0005335/14.94, allocations: 30.39 kB / 4.357 GB, free: 21.81 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001025/14.94, allocations: 0.9957 MB / 4.358 GB, free: 21.39 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009332/14.94, allocations: 0.5438 MB / 4.359 GB, free: 21.11 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000218/14.94, allocations: 3.812 kB / 4.359 GB, free: 21.11 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.0002325/14.94, allocations: 390 kB / 4.359 GB, free: 20.8 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/14.94, allocations: 1.007 MB / 4.36 GB, free: 20.79 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/14.95, allocations: 1.423 MB / 4.362 GB, free: 20.33 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01951/14.97, allocations: 2.795 MB / 4.364 GB, free: 20.27 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.041e-05/14.97, allocations: 2.312 kB / 4.364 GB, free: 20.27 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02955/15, allocations: 4.431 MB / 4.369 GB, free: 20.07 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.001937/15, allocations: 4.337 MB / 4.373 GB, free: 15.53 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-05/15, allocations: 11.16 kB / 4.373 GB, free: 15.53 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000981/15, allocations: 220.4 kB / 4.373 GB, free: 15.49 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00441/15, allocations: 0.5084 MB / 4.374 GB, free: 15.49 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/15.01, allocations: 2.451 MB / 4.376 GB, free: 13.41 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004693/15.01, allocations: 280.6 kB / 4.376 GB, free: 13.38 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006599/15.01, allocations: 100.2 kB / 4.376 GB, free: 13.38 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/15.01, allocations: 3.688 kB / 4.376 GB, free: 13.38 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02311/15.03, allocations: 4.08 MB / 4.38 GB, free: 13.26 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.392e-05/15.03, allocations: 10.28 kB / 4.38 GB, free: 13.26 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008575/15.04, allocations: 219.5 kB / 4.381 GB, free: 13.22 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004168/15.04, allocations: 0.5057 MB / 4.381 GB, free: 13.22 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/15.04, allocations: 2.452 MB / 4.383 GB, free: 11.14 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003602/15.05, allocations: 250.6 kB / 4.384 GB, free: 11.11 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003879/15.05, allocations: 105.1 kB / 4.384 GB, free: 11.11 MB / 0.589 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,pipe1.statesFM[2].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,source.medium.phase,sink.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.0008881/15.05, allocations: 232 kB / 4.384 GB, free: 10.94 MB / 0.589 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009365/15.06, allocations: 2.548 MB / 4.387 GB, free: 10.74 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008818/15.06, allocations: 192.8 kB / 4.387 GB, free: 10.64 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/15.07, allocations: 6.393 MB / 4.393 GB, free: 10.11 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.744e-05/15.07, allocations: 73.08 kB / 4.393 GB, free: 10.11 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.481e-05/15.07, allocations: 7.391 kB / 4.393 GB, free: 10.11 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01131/15.08, allocations: 5.352 MB / 4.398 GB, free: 9.367 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02152/15.11, allocations: 9.152 MB / 4.407 GB, free: 8.598 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.066e-05/15.11, allocations: 0 / 4.407 GB, free: 8.598 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/15.11, allocations: 363.4 kB / 4.408 GB, free: 8.594 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/15.11, allocations: 326.3 kB / 4.408 GB, free: 8.543 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000448/15.11, allocations: 40.08 kB / 4.408 GB, free: 8.543 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002394/15.11, allocations: 2.628 MB / 4.41 GB, free: 6.449 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/15.11, allocations: 5.375 kB / 4.41 GB, free: 6.449 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/15.13, allocations: 6.364 MB / 4.417 GB, free: 5.855 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002695/15.13, allocations: 0.7052 MB / 4.417 GB, free: 5.562 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009242/15.13, allocations: 21.25 kB / 4.417 GB, free: 5.562 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003659/15.14, allocations: 175.4 kB / 4.418 GB, free: 5.539 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006463/15.14, allocations: 138 kB / 4.418 GB, free: 5.539 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/15.14, allocations: 74.88 kB / 4.418 GB, free: 5.539 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002639/15.14, allocations: 1.096 MB / 4.419 GB, free: 5.43 MB / 0.589 GB Notification: Performance of sort global known variables: time 6.81e-07/15.14, allocations: 0 / 4.419 GB, free: 5.43 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01406/15.15, allocations: 2.739 MB / 4.422 GB, free: 5.305 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (185): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.03879/15.19, allocations: 10.18 MB / 4.431 GB, free: 17.14 MB / 0.6046 GB Notification: Performance of simCode: created initialization part: time 0.01702/15.21, allocations: 4.679 MB / 4.436 GB, free: 14.43 MB / 0.6046 GB Notification: Performance of simCode: created event and clocks part: time 1.898e-05/15.21, allocations: 4 kB / 4.436 GB, free: 14.42 MB / 0.6046 GB Notification: Performance of simCode: created simulation system equations: time 0.007823/15.22, allocations: 2.154 MB / 4.438 GB, free: 13.29 MB / 0.6046 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/15.23, allocations: 0.8657 MB / 4.439 GB, free: 12.81 MB / 0.6046 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/15.26, allocations: 6.803 MB / 4.446 GB, free: 8.047 MB / 0.6046 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004831/15.26, allocations: 2.143 MB / 4.448 GB, free: 6.457 MB / 0.6046 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00466/15.27, allocations: 1.265 MB / 4.449 GB, free: 6.285 MB / 0.6046 GB Notification: Performance of SimCode: time 2.254e-06/15.27, allocations: 0 / 4.449 GB, free: 6.285 MB / 0.6046 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.467/20.74, allocations: 127.5 MB / 4.573 GB, free: 94.59 MB / 0.6046 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