Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 198.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 227.2 MB / 245 MB, free: 5.914 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 105 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4606/0.4606, allocations: 45.24 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002931, allocations: 8.219 kB / 468.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.402, allocations: 63.26 MB / 0.5193 GB, free: 37.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.254/6.656, allocations: 2.852 GB / 3.372 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/6.656, allocations: 85.88 kB / 3.372 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.157/9.813, allocations: 0.9201 GB / 4.292 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.933e-06/9.813, allocations: 4 kB / 4.292 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001809/9.813, allocations: 68.16 kB / 4.292 GB, free: 17.86 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.01587/9.829, allocations: 4.255 MB / 4.296 GB, free: 13.56 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/9.829, allocations: 12.03 kB / 4.296 GB, free: 13.55 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001206/9.83, allocations: 309 kB / 4.296 GB, free: 13.24 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00654/9.837, allocations: 0.8702 MB / 4.297 GB, free: 12.37 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006293/9.843, allocations: 2.126 MB / 4.299 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001862/9.843, allocations: 180.3 kB / 4.299 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005263/9.844, allocations: 211.4 kB / 4.3 GB, free: 9.871 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007451/9.851, allocations: 3.679 MB / 4.303 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.714e-05/9.851, allocations: 7.938 kB / 4.303 GB, free: 6 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002826/9.852, allocations: 88.91 kB / 4.303 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001993/9.852, allocations: 167.7 kB / 4.303 GB, free: 5.758 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007141/9.859, allocations: 3.359 MB / 4.307 GB, free: 2.398 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.02475/9.884, allocations: 15.64 MB / 4.322 GB, free: 1.59 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4805/10.36, allocations: 2.813 MB / 4.325 GB, free: 40.07 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04778/10.41, allocations: 27.05 MB / 4.351 GB, free: 22.44 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005007/10.42, allocations: 1.746 MB / 4.353 GB, free: 22.32 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 6.533e-06/10.42, allocations: 0 / 4.353 GB, free: 22.32 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.02629/10.44, allocations: 9.393 MB / 4.362 GB, free: 21.36 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/10.44, allocations: 261.2 kB / 4.362 GB, free: 21.07 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003282/10.45, allocations: 1.42 MB / 4.364 GB, free: 20.91 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004309/10.45, allocations: 60.27 kB / 4.364 GB, free: 20.88 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001209/10.45, allocations: 0.975 MB / 4.365 GB, free: 20.58 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001005/10.45, allocations: 0.6297 MB / 4.365 GB, free: 20.27 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/10.45, allocations: 39.69 kB / 4.365 GB, free: 20.27 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001952/10.45, allocations: 388.1 kB / 4.366 GB, free: 19.96 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/10.45, allocations: 1.151 MB / 4.367 GB, free: 19.95 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002694/10.46, allocations: 1.616 MB / 4.368 GB, free: 19.51 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/10.46, allocations: 1.395 MB / 4.37 GB, free: 19.42 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.601e-05/10.46, allocations: 3.047 kB / 4.37 GB, free: 19.42 MB / 0.573 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00748/10.47, allocations: 3.383 MB / 4.373 GB, free: 19.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00101/10.47, allocations: 4.49 MB / 4.378 GB, free: 14.45 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/10.47, allocations: 15.84 kB / 4.378 GB, free: 14.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/10.47, allocations: 244.5 kB / 4.378 GB, free: 14.42 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002315/10.47, allocations: 0.5238 MB / 4.378 GB, free: 14.42 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/10.47, allocations: 2.435 MB / 4.381 GB, free: 28.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/10.48, allocations: 313.3 kB / 4.381 GB, free: 28.33 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004013/10.48, allocations: 106.7 kB / 4.381 GB, free: 28.33 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/10.48, allocations: 4.031 kB / 4.381 GB, free: 28.33 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007089/10.48, allocations: 3.122 MB / 4.384 GB, free: 28.19 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/10.48, allocations: 11.28 kB / 4.384 GB, free: 28.19 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009251/10.48, allocations: 250.5 kB / 4.384 GB, free: 28.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/10.49, allocations: 0.5165 MB / 4.385 GB, free: 28.16 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/10.49, allocations: 2.431 MB / 4.387 GB, free: 26.09 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/10.49, allocations: 308.4 kB / 4.388 GB, free: 26.08 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003898/10.49, allocations: 105.1 kB / 4.388 GB, free: 26.08 MB / 0.5886 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.002112/10.49, allocations: 0.7562 MB / 4.388 GB, free: 25.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006434/10.5, allocations: 216.4 kB / 4.389 GB, free: 25.71 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.012/10.51, allocations: 7.658 MB / 4.396 GB, free: 25.06 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/10.51, allocations: 88.47 kB / 4.396 GB, free: 25.06 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/10.51, allocations: 1.25 kB / 4.396 GB, free: 25.06 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009145/10.52, allocations: 6.683 MB / 4.403 GB, free: 24.15 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/10.54, allocations: 12.39 MB / 4.415 GB, free: 22.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-05/10.54, allocations: 3.875 kB / 4.415 GB, free: 22.6 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/10.54, allocations: 440.1 kB / 4.415 GB, free: 22.6 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/10.54, allocations: 367.4 kB / 4.416 GB, free: 22.56 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006149/10.55, allocations: 72.09 kB / 4.416 GB, free: 22.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/10.55, allocations: 2.536 MB / 4.418 GB, free: 20.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.587e-05/10.55, allocations: 8.938 kB / 4.418 GB, free: 20.48 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/10.56, allocations: 7.911 MB / 4.426 GB, free: 19.08 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002608/10.56, allocations: 0.7741 MB / 4.427 GB, free: 18.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/10.57, allocations: 64.89 kB / 4.427 GB, free: 18.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/10.57, allocations: 234 kB / 4.427 GB, free: 18.77 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005435/10.57, allocations: 173 kB / 4.427 GB, free: 18.76 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003674/10.57, allocations: 89 kB / 4.427 GB, free: 18.76 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002738/10.57, allocations: 1.278 MB / 4.428 GB, free: 18.61 MB / 0.5886 GB Notification: Performance of sort global known variables: time 8.01e-07/10.57, allocations: 5.375 kB / 4.428 GB, free: 18.61 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01564/10.59, allocations: 2.802 MB / 4.431 GB, free: 18.5 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.02919/10.62, allocations: 12.6 MB / 4.443 GB, free: 15.07 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01197/10.63, allocations: 5.382 MB / 4.449 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/10.63, allocations: 0 / 4.449 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.004617/10.63, allocations: 2.769 MB / 4.451 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006905/10.64, allocations: 1.06 MB / 4.452 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/10.67, allocations: 18.8 MB / 4.471 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002344/10.68, allocations: 2.296 MB / 4.473 GB, free: 17.33 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.00482/10.68, allocations: 2.412 MB / 4.475 GB, free: 17.25 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/10.68, allocations: 1.337 MB / 4.477 GB, free: 17.24 MB / 0.6042 GB Notification: Performance of SimCode: time 1.463e-06/10.68, allocations: 0 / 4.477 GB, free: 17.24 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6815/11.36, allocations: 117 MB / 4.591 GB, free: 68.95 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002926/11.36, allocations: 261.2 kB / 4.591 GB, free: 68.61 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/18.51, allocations: 5.531 kB / 4.591 GB, free: 68.61 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat does not exist to compare? outputFormat=mat