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.001281/0.00128, allocations: 197.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009293/0.0009293, allocations: 100.2 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2708/0.2708, allocations: 45.15 MB / 383.8 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.895e-05, allocations: 4 kB / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1648, allocations: 63.25 MB / 0.5044 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.364/8.529, allocations: 2.852 GB / 3.357 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/8.529, allocations: 77.11 kB / 3.357 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.614/12.14, allocations: 1.016 GB / 4.373 GB, free: 20.44 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.513e-06/12.14, allocations: 0 / 4.373 GB, free: 20.44 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000214/12.14, allocations: 70.42 kB / 4.373 GB, free: 20.43 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01597/12.16, allocations: 4.257 MB / 4.377 GB, free: 17.7 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/12.16, allocations: 8.031 kB / 4.377 GB, free: 17.69 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007225/12.17, allocations: 0.9401 MB / 4.378 GB, free: 16.94 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/12.17, allocations: 2.206 MB / 4.38 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/12.17, allocations: 100.2 kB / 4.38 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005595/12.17, allocations: 128 kB / 4.38 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004285/12.18, allocations: 2.816 MB / 4.383 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004463/12.18, allocations: 3.031 MB / 4.386 GB, free: 9.676 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.194e-05/12.18, allocations: 7.938 kB / 4.386 GB, free: 9.668 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003415/12.18, allocations: 11.94 kB / 4.386 GB, free: 9.656 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002074/12.18, allocations: 174.6 kB / 4.386 GB, free: 9.504 MB / 0.5573 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.5016/12.68, allocations: 68.77 MB / 4.454 GB, free: 35.98 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004538/12.69, allocations: 2.356 MB / 4.456 GB, free: 35.39 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002238/12.69, allocations: 1.198 MB / 4.457 GB, free: 35.38 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03185/12.72, allocations: 18.67 MB / 4.475 GB, free: 23.19 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003094/12.73, allocations: 1.385 MB / 4.477 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=186): time 7.113e-06/12.73, allocations: 0 / 4.477 GB, free: 23.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=206): time 0.03866/12.77, allocations: 10.55 MB / 4.487 GB, free: 21.36 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/12.77, allocations: 365.1 kB / 4.487 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/12.77, allocations: 1.151 MB / 4.488 GB, free: 20.79 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0003447/12.77, allocations: 31.2 kB / 4.488 GB, free: 20.76 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007391/12.77, allocations: 1.072 MB / 4.489 GB, free: 20.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005636/12.77, allocations: 0.6583 MB / 4.49 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/12.77, allocations: 3.406 kB / 4.49 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001138/12.77, allocations: 397.1 kB / 4.49 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/12.77, allocations: 1.116 MB / 4.492 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/12.77, allocations: 1.611 MB / 4.493 GB, free: 19.24 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008377/12.78, allocations: 2.119 MB / 4.495 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.258e-05/12.78, allocations: 3.688 kB / 4.495 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.01297/12.79, allocations: 4.085 MB / 4.499 GB, free: 19 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000881/12.79, allocations: 5.059 MB / 4.504 GB, free: 13.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/12.79, allocations: 13.34 kB / 4.504 GB, free: 13.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007941/12.8, allocations: 315.1 kB / 4.504 GB, free: 13.82 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/12.8, allocations: 0.5976 MB / 4.505 GB, free: 13.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0017/12.8, allocations: 3.142 MB / 4.508 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/12.8, allocations: 329.4 kB / 4.508 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002654/12.8, allocations: 126.1 kB / 4.509 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/12.8, allocations: 7.375 kB / 4.509 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/12.81, allocations: 3.598 MB / 4.512 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.738e-05/12.81, allocations: 16.84 kB / 4.512 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000704/12.81, allocations: 320.3 kB / 4.512 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/12.82, allocations: 0.5827 MB / 4.513 GB, free: 11.08 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/12.82, allocations: 3.144 MB / 4.516 GB, free: 24.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003139/12.82, allocations: 307.1 kB / 4.516 GB, free: 24.47 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/12.82, allocations: 120.4 kB / 4.516 GB, free: 24.47 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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,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,junctionIdeal.medium.phase,junctionVolume.medium.phase,source.medium.phase,sink.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 () * 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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000784/12.82, allocations: 250.8 kB / 4.517 GB, free: 24.3 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01068/12.83, allocations: 3.503 MB / 4.52 GB, free: 24.07 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004921/12.83, allocations: 204.6 kB / 4.52 GB, free: 23.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/12.85, allocations: 8.133 MB / 4.528 GB, free: 23.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-05/12.85, allocations: 83.58 kB / 4.528 GB, free: 23.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/12.85, allocations: 3.5 kB / 4.528 GB, free: 23.34 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0147/12.86, allocations: 7.036 MB / 4.535 GB, free: 22.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/12.89, allocations: 12.7 MB / 4.548 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/12.89, allocations: 7.062 kB / 4.548 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/12.89, allocations: 453.5 kB / 4.548 GB, free: 21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009895/12.89, allocations: 437.8 kB / 4.548 GB, free: 20.95 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002025/12.89, allocations: 53.53 kB / 4.548 GB, free: 20.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/12.89, allocations: 3.374 MB / 4.552 GB, free: 18.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/12.89, allocations: 12.28 kB / 4.552 GB, free: 18.33 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/12.91, allocations: 8.514 MB / 4.56 GB, free: 16.82 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/12.91, allocations: 0.8094 MB / 4.561 GB, free: 16.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003733/12.91, allocations: 28.67 kB / 4.561 GB, free: 16.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/12.91, allocations: 187.4 kB / 4.561 GB, free: 16.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/12.91, allocations: 190.9 kB / 4.561 GB, free: 16.46 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/12.91, allocations: 94.8 kB / 4.561 GB, free: 16.46 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001374/12.91, allocations: 1.154 MB / 4.563 GB, free: 16.31 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/12.91, allocations: 0 / 4.563 GB, free: 16.31 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01013/12.92, allocations: 2.809 MB / 4.565 GB, free: 16.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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: 51 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse49.phase,$cse49.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,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (230): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 21 * 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.02616/12.95, allocations: 13.86 MB / 4.579 GB, free: 12.25 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007782/12.96, allocations: 5.354 MB / 4.584 GB, free: 11.92 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/12.96, allocations: 3.844 kB / 4.584 GB, free: 11.92 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003664/12.96, allocations: 2.705 MB / 4.587 GB, free: 11.78 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005248/12.97, allocations: 1.008 MB / 4.588 GB, free: 11.72 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/12.98, allocations: 7.589 MB / 4.595 GB, free: 9.848 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/12.98, allocations: 2.348 MB / 4.597 GB, free: 9.035 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005369/12.99, allocations: 2.748 MB / 4.6 GB, free: 8.941 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/12.99, allocations: 1.366 MB / 4.601 GB, free: 8.934 MB / 0.6042 GB Notification: Performance of SimCode: time 7.91e-07/12.99, allocations: 1.312 kB / 4.601 GB, free: 8.934 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5571/13.55, allocations: 112.1 MB / 4.711 GB, free: 84.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/13.55, allocations: 179.1 kB / 4.711 GB, free: 84.66 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.677/20.22, allocations: 0 / 4.711 GB, free: 84.66 MB / 0.6198 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