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.001253/0.001253, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008268/0.0008268, allocations: 96.67 kB / 292.1 MB, free: 6.008 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2129/0.2129, allocations: 45.15 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.537e-05/3.541e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1353, allocations: 63.25 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.452/6.587, allocations: 2.852 GB / 3.364 GB, free: 137.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/6.587, allocations: 80.75 kB / 3.364 GB, free: 137.2 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.772/9.36, allocations: 0.9177 GB / 4.282 GB, free: 34.7 MB / 0.5573 GB Notification: Performance of FrontEnd: time 9.02e-07/9.36, allocations: 0 / 4.282 GB, free: 34.7 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002025/9.36, allocations: 63.41 kB / 4.282 GB, free: 34.69 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.01187/9.372, allocations: 3.983 MB / 4.285 GB, free: 32.74 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/9.372, allocations: 7.062 kB / 4.285 GB, free: 32.74 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001306/9.373, allocations: 307.5 kB / 4.286 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/9.38, allocations: 0.8747 MB / 4.287 GB, free: 32.54 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005453/9.385, allocations: 2.093 MB / 4.289 GB, free: 32.04 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/9.385, allocations: 185.7 kB / 4.289 GB, free: 32.04 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007411/9.386, allocations: 212.7 kB / 4.289 GB, free: 32.02 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007256/9.393, allocations: 3.651 MB / 4.293 GB, free: 31.45 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/9.393, allocations: 7.531 kB / 4.293 GB, free: 31.44 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003746/9.394, allocations: 91.88 kB / 4.293 GB, free: 31.44 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001862/9.394, allocations: 169.2 kB / 4.293 GB, free: 31.43 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005743/9.4, allocations: 3.215 MB / 4.296 GB, free: 31.3 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.01522/9.415, allocations: 15.64 MB / 4.311 GB, free: 19.47 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004189/9.419, allocations: 2.707 MB / 4.314 GB, free: 18.18 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/9.42, allocations: 1.173 MB / 4.315 GB, free: 17.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04014/9.461, allocations: 27.13 MB / 4.342 GB, free: 14.46 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004245/9.465, allocations: 1.736 MB / 4.343 GB, free: 13.1 MB / 0.573 GB Notification: Performance of pre-optimization done (n=173): time 4.038e-06/9.465, allocations: 0 / 4.343 GB, free: 13.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=189): time 0.01924/9.484, allocations: 7.88 MB / 4.351 GB, free: 6.371 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/9.484, allocations: 257.3 kB / 4.351 GB, free: 6.062 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/9.487, allocations: 1.401 MB / 4.353 GB, free: 4.809 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002226/9.487, allocations: 65.7 kB / 4.353 GB, free: 4.738 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000876/9.488, allocations: 0.9637 MB / 4.354 GB, free: 3.859 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006207/9.488, allocations: 0.6327 MB / 4.354 GB, free: 3.285 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/9.488, allocations: 36 kB / 4.354 GB, free: 3.25 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001688/9.489, allocations: 391.5 kB / 4.355 GB, free: 2.887 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001619/9.49, allocations: 1.032 MB / 4.356 GB, free: 1.961 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/9.492, allocations: 1.494 MB / 4.357 GB, free: 436 kB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004099/9.496, allocations: 1.476 MB / 4.358 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/9.496, allocations: 7.938 kB / 4.358 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005183/9.502, allocations: 3.145 MB / 4.362 GB, free: 13 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001606/9.503, allocations: 4.486 MB / 4.366 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/9.503, allocations: 11.94 kB / 4.366 GB, free: 8.129 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007856/9.504, allocations: 229.9 kB / 4.366 GB, free: 7.934 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/9.506, allocations: 0.5247 MB / 4.367 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/9.508, allocations: 2.436 MB / 4.369 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/9.51, allocations: 306.3 kB / 4.369 GB, free: 4.801 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/9.51, allocations: 99.36 kB / 4.369 GB, free: 4.711 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/9.51, allocations: 5.562 kB / 4.369 GB, free: 4.707 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004659/9.515, allocations: 2.881 MB / 4.372 GB, free: 2.141 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/9.515, allocations: 15.8 kB / 4.372 GB, free: 2.129 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/9.516, allocations: 231.8 kB / 4.373 GB, free: 1.93 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/9.518, allocations: 0.5171 MB / 4.373 GB, free: 1.492 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3155/9.833, allocations: 2.427 MB / 4.375 GB, free: 64.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002965/9.836, allocations: 306.4 kB / 4.376 GB, free: 64.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000259/9.836, allocations: 102.5 kB / 4.376 GB, free: 64.2 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 () * 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.0006298/9.837, allocations: 314.2 kB / 4.376 GB, free: 64.03 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004161/9.838, allocations: 216.2 kB / 4.376 GB, free: 64.03 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008778/9.846, allocations: 7.555 MB / 4.384 GB, free: 63.48 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.76e-05/9.846, allocations: 85.36 kB / 4.384 GB, free: 63.48 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/9.846, allocations: 3.594 kB / 4.384 GB, free: 63.48 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006977/9.853, allocations: 6.571 MB / 4.39 GB, free: 62.55 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/9.87, allocations: 12.25 MB / 4.402 GB, free: 61.11 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/9.871, allocations: 3.625 kB / 4.402 GB, free: 61.11 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/9.872, allocations: 441.9 kB / 4.403 GB, free: 61.11 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/9.873, allocations: 349.4 kB / 4.403 GB, free: 61.07 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/9.873, allocations: 80.25 kB / 4.403 GB, free: 61.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009898/9.874, allocations: 2.528 MB / 4.405 GB, free: 59 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/9.874, allocations: 9.609 kB / 4.405 GB, free: 59 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007106/9.882, allocations: 7.569 MB / 4.413 GB, free: 57.61 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/9.883, allocations: 0.7791 MB / 4.414 GB, free: 57.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/9.883, allocations: 61.52 kB / 4.414 GB, free: 57.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/9.885, allocations: 225 kB / 4.414 GB, free: 57.33 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002873/9.885, allocations: 177.3 kB / 4.414 GB, free: 57.33 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/9.885, allocations: 91.69 kB / 4.414 GB, free: 57.33 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001499/9.887, allocations: 1.253 MB / 4.415 GB, free: 57.17 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4e-07/9.887, allocations: 3.688 kB / 4.415 GB, free: 57.17 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007741/9.895, allocations: 2.796 MB / 4.418 GB, free: 57.17 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) * 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.01526/9.91, allocations: 12.24 MB / 4.43 GB, free: 53.81 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006748/9.917, allocations: 5.168 MB / 4.435 GB, free: 53.46 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/9.917, allocations: 0 / 4.435 GB, free: 53.46 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003013/9.92, allocations: 2.677 MB / 4.438 GB, free: 53.32 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00483/9.924, allocations: 1.057 MB / 4.439 GB, free: 53.29 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/9.937, allocations: 7.594 MB / 4.446 GB, free: 51.79 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/9.939, allocations: 2.297 MB / 4.448 GB, free: 51.02 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004176/9.943, allocations: 2.597 MB / 4.451 GB, free: 50.99 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/9.944, allocations: 1.312 MB / 4.452 GB, free: 50.98 MB / 0.5886 GB Notification: Performance of SimCode: time 6.11e-07/9.944, allocations: 0 / 4.452 GB, free: 50.98 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/10.09, allocations: 125.2 MB / 4.574 GB, free: 5.746 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/10.09, allocations: 221.7 kB / 4.575 GB, free: 5.523 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.697/15.79, allocations: 0 / 4.575 GB, free: 5.523 MB / 0.5886 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