Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003342/0.003342, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.2 MB / 245 MB, free: 7.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001014/0.001014, allocations: 92.23 kB / 297.2 MB, free: 6.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3941/0.3941, allocations: 45.23 MB / 394.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003093, allocations: 4 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3932/0.3935, allocations: 63.25 MB / 0.5193 GB, free: 43.45 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.153/6.546, allocations: 2.853 GB / 3.372 GB, free: 50.68 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/6.547, allocations: 87.7 kB / 3.372 GB, free: 50.63 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.218/10.77, allocations: 1.028 GB / 4.4 GB, free: 34.88 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.776e-06/10.77, allocations: 2.688 kB / 4.4 GB, free: 34.88 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002902/10.77, allocations: 70.11 kB / 4.4 GB, free: 34.87 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01999/10.79, allocations: 4.558 MB / 4.405 GB, free: 32.8 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 6.564e-05/10.79, allocations: 13.47 kB / 4.405 GB, free: 32.8 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001681/10.79, allocations: 323.7 kB / 4.405 GB, free: 32.75 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00795/10.8, allocations: 0.9387 MB / 4.406 GB, free: 32.59 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007981/10.8, allocations: 2.228 MB / 4.408 GB, free: 32.11 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/10.8, allocations: 196.8 kB / 4.408 GB, free: 32.1 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/10.81, allocations: 223.8 kB / 4.408 GB, free: 32.1 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009405/10.81, allocations: 3.926 MB / 4.412 GB, free: 31.46 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.906e-05/10.81, allocations: 17.86 kB / 4.412 GB, free: 31.45 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003644/10.81, allocations: 96.55 kB / 4.412 GB, free: 31.45 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002301/10.82, allocations: 171.5 kB / 4.412 GB, free: 31.45 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008827/10.82, allocations: 3.623 MB / 4.416 GB, free: 31.38 MB / 0.573 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.02448/10.85, allocations: 16.96 MB / 4.433 GB, free: 21.14 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006622/10.86, allocations: 3.195 MB / 4.436 GB, free: 20.53 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04519/10.9, allocations: 26.91 MB / 4.462 GB, free: 18.46 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004868/10.91, allocations: 1.905 MB / 4.464 GB, free: 18.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=192): time 5.851e-06/10.91, allocations: 4 kB / 4.464 GB, free: 18.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=212): time 0.02617/10.93, allocations: 10.53 MB / 4.474 GB, free: 15.67 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/10.93, allocations: 257.5 kB / 4.474 GB, free: 15.39 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002369/10.93, allocations: 1.52 MB / 4.476 GB, free: 14.79 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003165/10.93, allocations: 74.23 kB / 4.476 GB, free: 14.73 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008656/10.94, allocations: 1.035 MB / 4.477 GB, free: 13.93 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006032/10.94, allocations: 0.7053 MB / 4.478 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/10.94, allocations: 47.22 kB / 4.478 GB, free: 13.36 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002441/10.94, allocations: 397.9 kB / 4.478 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002363/10.94, allocations: 1.291 MB / 4.479 GB, free: 12.59 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002622/10.94, allocations: 1.809 MB / 4.481 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/10.94, allocations: 1.544 MB / 4.483 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/10.94, allocations: 10.17 kB / 4.483 GB, free: 10.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.006834/10.95, allocations: 3.804 MB / 4.486 GB, free: 9.461 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.00205/10.95, allocations: 5.154 MB / 4.491 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/10.95, allocations: 11.81 kB / 4.491 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/10.95, allocations: 351.5 kB / 4.492 GB, free: 3.832 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/10.96, allocations: 0.5956 MB / 4.492 GB, free: 3.66 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/10.96, allocations: 3.102 MB / 4.495 GB, free: 16.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003762/10.96, allocations: 335.5 kB / 4.496 GB, free: 16.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004172/10.96, allocations: 125.6 kB / 4.496 GB, free: 16.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/10.96, allocations: 4 kB / 4.496 GB, free: 16.17 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007228/10.97, allocations: 3.531 MB / 4.499 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.776e-05/10.97, allocations: 12 kB / 4.499 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/10.97, allocations: 356.9 kB / 4.5 GB, free: 12.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/10.97, allocations: 0.5849 MB / 4.5 GB, free: 12.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/10.98, allocations: 3.096 MB / 4.503 GB, free: 9.156 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004387/10.98, allocations: 337.1 kB / 4.503 GB, free: 8.898 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007243/10.98, allocations: 120.9 kB / 4.504 GB, free: 8.793 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003345/10.99, allocations: 0.7856 MB / 4.504 GB, free: 8.055 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001146/10.99, allocations: 240.2 kB / 4.505 GB, free: 7.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/11, allocations: 8.351 MB / 4.513 GB, free: 428 kB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-05/11, allocations: 94.92 kB / 4.513 GB, free: 368 kB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/11, allocations: 7.938 kB / 4.513 GB, free: 360 kB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5142/11.52, allocations: 7.242 MB / 4.52 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02858/11.55, allocations: 13.39 MB / 4.533 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.708e-05/11.55, allocations: 4.5 kB / 4.533 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002339/11.55, allocations: 496.3 kB / 4.533 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/11.55, allocations: 483.1 kB / 4.534 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000474/11.55, allocations: 83.69 kB / 4.534 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/11.55, allocations: 3.226 MB / 4.537 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/11.55, allocations: 10.58 kB / 4.537 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/11.57, allocations: 8.658 MB / 4.546 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002788/11.57, allocations: 0.8282 MB / 4.546 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/11.57, allocations: 64.77 kB / 4.546 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003101/11.57, allocations: 244.2 kB / 4.547 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005658/11.57, allocations: 197.4 kB / 4.547 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003705/11.58, allocations: 95.11 kB / 4.547 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.003374/11.58, allocations: 1.347 MB / 4.548 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.8e-07/11.58, allocations: 0 / 4.548 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02029/11.6, allocations: 2.97 MB / 4.551 GB, free: 59.11 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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 (239): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03559/11.63, allocations: 13.49 MB / 4.564 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01547/11.65, allocations: 5.977 MB / 4.57 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-05/11.65, allocations: 3.344 kB / 4.57 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.006366/11.66, allocations: 3.06 MB / 4.573 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008023/11.66, allocations: 1.221 MB / 4.574 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03466/11.7, allocations: 20.78 MB / 4.595 GB, free: 41.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003718/11.7, allocations: 2.384 MB / 4.597 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.008263/11.71, allocations: 2.58 MB / 4.6 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003398/11.71, allocations: 1.443 MB / 4.601 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of SimCode: time 2.124e-06/11.71, allocations: 3.562 kB / 4.601 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2336/11.95, allocations: 127.6 MB / 4.726 GB, free: 2.027 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/11.95, allocations: 261.8 kB / 4.726 GB, free: 1.688 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.712/18.66, allocations: 0 / 4.726 GB, free: 1.688 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat does not exist to compare? outputFormat=mat