Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",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.001317/0.001317, allocations: 177 kB / 17.06 MB, free: 5.094 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.47/1.47, allocations: 223.2 MB / 241 MB, free: 11.89 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.0009964/0.0009962, allocations: 89.98 kB / 292.1 MB, free: 10.92 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.4063/0.4063, allocations: 44.21 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003386, allocations: 8 kB / 460 MB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3582, allocations: 61.9 MB / 0.5096 GB, free: 37.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.236/6.595, allocations: 2.851 GB / 3.361 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/6.595, allocations: 83.38 kB / 3.361 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.369/9.964, allocations: 0.9201 GB / 4.281 GB, free: 35.05 MB / 0.5573 GB Notification: Performance of FrontEnd: time 6.172e-06/9.964, allocations: 0 / 4.281 GB, free: 35.05 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002515/9.964, allocations: 67.22 kB / 4.281 GB, free: 35.04 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.01916/9.983, allocations: 4.258 MB / 4.285 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/9.983, allocations: 6.812 kB / 4.285 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001871/9.985, allocations: 308 kB / 4.286 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007403/9.993, allocations: 0.888 MB / 4.286 GB, free: 32.97 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007437/10, allocations: 2.113 MB / 4.289 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002979/10, allocations: 185.1 kB / 4.289 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000741/10, allocations: 200.5 kB / 4.289 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008128/10.01, allocations: 3.672 MB / 4.293 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.045e-05/10.01, allocations: 8.406 kB / 4.293 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/10.01, allocations: 90.58 kB / 4.293 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/10.01, allocations: 171.1 kB / 4.293 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007193/10.02, allocations: 3.364 MB / 4.296 GB, free: 31.94 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.01973/10.04, allocations: 15.62 MB / 4.311 GB, free: 22.49 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00561/10.04, allocations: 2.827 MB / 4.314 GB, free: 21.88 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04582/10.09, allocations: 24.49 MB / 4.338 GB, free: 22.67 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00527/10.09, allocations: 1.752 MB / 4.34 GB, free: 22.52 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 6.382e-06/10.09, allocations: 3.469 kB / 4.34 GB, free: 22.52 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.02832/10.12, allocations: 9.393 MB / 4.349 GB, free: 21.17 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001773/10.12, allocations: 257.6 kB / 4.349 GB, free: 20.89 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/10.13, allocations: 1.419 MB / 4.351 GB, free: 20.71 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008181/10.13, allocations: 63.17 kB / 4.351 GB, free: 20.68 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001393/10.13, allocations: 0.9706 MB / 4.352 GB, free: 20.31 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/10.13, allocations: 0.634 MB / 4.352 GB, free: 19.91 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005322/10.13, allocations: 41.31 kB / 4.352 GB, free: 19.91 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003646/10.13, allocations: 388.6 kB / 4.353 GB, free: 19.6 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/10.13, allocations: 1.161 MB / 4.354 GB, free: 19.58 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002912/10.14, allocations: 1.609 MB / 4.355 GB, free: 19.11 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002798/10.14, allocations: 1.398 MB / 4.357 GB, free: 18.99 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/10.14, allocations: 3.906 kB / 4.357 GB, free: 18.99 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00805/10.15, allocations: 3.379 MB / 4.36 GB, free: 17.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002175/10.15, allocations: 4.489 MB / 4.364 GB, free: 12.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/10.15, allocations: 13.69 kB / 4.364 GB, free: 12.95 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009661/10.15, allocations: 245.1 kB / 4.365 GB, free: 12.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/10.15, allocations: 0.5219 MB / 4.365 GB, free: 12.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/10.15, allocations: 2.43 MB / 4.367 GB, free: 10.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/10.16, allocations: 321.9 kB / 4.368 GB, free: 10.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000658/10.16, allocations: 101.7 kB / 4.368 GB, free: 10.48 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/10.16, allocations: 3.5 kB / 4.368 GB, free: 10.48 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006855/10.17, allocations: 3.121 MB / 4.371 GB, free: 9.305 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.016e-05/10.17, allocations: 10.97 kB / 4.371 GB, free: 9.305 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008749/10.17, allocations: 251.8 kB / 4.371 GB, free: 9.219 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/10.17, allocations: 0.5163 MB / 4.372 GB, free: 9.164 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/10.17, allocations: 2.433 MB / 4.374 GB, free: 6.926 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003127/10.17, allocations: 298.3 kB / 4.374 GB, free: 6.863 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004399/10.17, allocations: 101.4 kB / 4.374 GB, free: 6.844 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.002239/10.18, allocations: 0.76 MB / 4.375 GB, free: 6.348 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007786/10.18, allocations: 217.5 kB / 4.375 GB, free: 6.238 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0111/10.19, allocations: 7.666 MB / 4.383 GB, free: 2.91 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.65e-05/10.19, allocations: 89.81 kB / 4.383 GB, free: 2.887 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/10.19, allocations: 0 / 4.383 GB, free: 2.887 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01003/10.2, allocations: 6.746 MB / 4.39 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/10.22, allocations: 12.38 MB / 4.402 GB, free: 3.801 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.851e-05/10.22, allocations: 4 kB / 4.402 GB, free: 3.797 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/10.22, allocations: 444.6 kB / 4.402 GB, free: 3.434 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/10.22, allocations: 370.5 kB / 4.402 GB, free: 3.148 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003074/10.22, allocations: 75.44 kB / 4.402 GB, free: 3.086 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/10.23, allocations: 2.524 MB / 4.405 GB, free: 0.5508 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/10.23, allocations: 4 kB / 4.405 GB, free: 0.5469 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4536/10.68, allocations: 7.922 MB / 4.413 GB, free: 64.99 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002105/10.68, allocations: 0.7779 MB / 4.413 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005876/10.68, allocations: 59.69 kB / 4.413 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001991/10.68, allocations: 222.5 kB / 4.414 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/10.68, allocations: 182.2 kB / 4.414 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001782/10.68, allocations: 86.09 kB / 4.414 GB, free: 64.89 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002054/10.69, allocations: 1.278 MB / 4.415 GB, free: 64.75 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.41e-07/10.69, allocations: 3.453 kB / 4.415 GB, free: 64.75 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01222/10.7, allocations: 2.781 MB / 4.418 GB, free: 64.75 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.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 (214): * Single equations (assignments): 185 * 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.0252/10.72, allocations: 12.59 MB / 4.43 GB, free: 61.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01064/10.73, allocations: 5.371 MB / 4.435 GB, free: 61.16 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.782e-05/10.73, allocations: 6.344 kB / 4.435 GB, free: 61.16 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005134/10.74, allocations: 2.771 MB / 4.438 GB, free: 61.01 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006222/10.75, allocations: 1.054 MB / 4.439 GB, free: 60.99 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02448/10.77, allocations: 18.79 MB / 4.458 GB, free: 48.96 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002415/10.77, allocations: 2.296 MB / 4.46 GB, free: 48.2 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.006911/10.78, allocations: 2.413 MB / 4.462 GB, free: 48.16 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002562/10.78, allocations: 1.336 MB / 4.463 GB, free: 48.16 MB / 0.5886 GB Notification: Performance of SimCode: time 1.152e-06/10.78, allocations: 0 / 4.463 GB, free: 48.16 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2013/10.98, allocations: 116.9 MB / 4.578 GB, free: 30.47 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/10.98, allocations: 255 kB / 4.578 GB, free: 30.12 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/17.97, allocations: 0 / 4.578 GB, free: 30.12 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat