Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 198.6 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.668/1.668, allocations: 227.2 MB / 245 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001029/0.001029, allocations: 103.5 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4739/0.4739, allocations: 45.23 MB / 394.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003154/0.0003154, allocations: 8 kB / 468.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4944/0.4947, allocations: 63.25 MB / 0.5193 GB, free: 43.65 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.229/7.724, allocations: 2.849 GB / 3.368 GB, free: 137.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/7.725, allocations: 89.08 kB / 3.368 GB, free: 137.7 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.437/11.16, allocations: 0.885 GB / 4.253 GB, free: 40.6 MB / 0.573 GB Notification: Performance of FrontEnd: time 5.59e-06/11.16, allocations: 6.219 kB / 4.253 GB, free: 40.6 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002049/11.16, allocations: 63.45 kB / 4.253 GB, free: 40.59 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01786/11.18, allocations: 4.033 MB / 4.257 GB, free: 38.57 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 8.661e-05/11.18, allocations: 9.344 kB / 4.257 GB, free: 38.57 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00196/11.18, allocations: 279.6 kB / 4.257 GB, free: 38.52 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007824/11.19, allocations: 0.7897 MB / 4.258 GB, free: 38.39 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007353/11.2, allocations: 1.991 MB / 4.26 GB, free: 37.94 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002338/11.2, allocations: 172.2 kB / 4.26 GB, free: 37.93 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006044/11.2, allocations: 187 kB / 4.26 GB, free: 37.93 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006573/11.2, allocations: 3.285 MB / 4.263 GB, free: 37.44 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.886e-05/11.2, allocations: 6.75 kB / 4.263 GB, free: 37.44 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/11.2, allocations: 85.31 kB / 4.264 GB, free: 37.44 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001837/11.2, allocations: 143.1 kB / 4.264 GB, free: 37.44 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006387/11.21, allocations: 2.96 MB / 4.267 GB, free: 37.42 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.01597/11.23, allocations: 14.07 MB / 4.28 GB, free: 28.94 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004433/11.23, allocations: 2.075 MB / 4.282 GB, free: 28.9 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04419/11.28, allocations: 27.16 MB / 4.309 GB, free: 26.95 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004445/11.28, allocations: 1.619 MB / 4.31 GB, free: 26.81 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001634/11.28, allocations: 174.9 kB / 4.311 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=155): time 5.05e-06/11.28, allocations: 1.5 kB / 4.311 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of matching and sorting (n=167): time 0.02069/11.3, allocations: 8.532 MB / 4.319 GB, free: 25.41 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/11.3, allocations: 256.6 kB / 4.319 GB, free: 25.13 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/11.3, allocations: 1.343 MB / 4.321 GB, free: 24.95 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002187/11.31, allocations: 59.19 kB / 4.321 GB, free: 24.92 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/11.31, allocations: 0.8833 MB / 4.321 GB, free: 24.59 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/11.31, allocations: 0.5545 MB / 4.322 GB, free: 24.24 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/11.31, allocations: 32.97 kB / 4.322 GB, free: 24.24 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001651/11.31, allocations: 378.1 kB / 4.322 GB, free: 23.93 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/11.31, allocations: 1.044 MB / 4.323 GB, free: 23.91 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/11.31, allocations: 1.436 MB / 4.325 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/11.31, allocations: 1.266 MB / 4.326 GB, free: 22.91 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/11.31, allocations: 3.5 kB / 4.326 GB, free: 22.91 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00587/11.32, allocations: 3.188 MB / 4.329 GB, free: 21.74 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001493/11.32, allocations: 3.846 MB / 4.333 GB, free: 17.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/11.32, allocations: 7.469 kB / 4.333 GB, free: 17.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002606/11.32, allocations: 0.5331 MB / 4.333 GB, free: 17.48 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002185/11.32, allocations: 449 kB / 4.334 GB, free: 17.43 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/11.33, allocations: 2.713 MB / 4.337 GB, free: 15.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003212/11.33, allocations: 270.2 kB / 4.337 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002595/11.33, allocations: 96.81 kB / 4.337 GB, free: 15.02 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/11.33, allocations: 7.562 kB / 4.337 GB, free: 15.02 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004844/11.33, allocations: 2.823 MB / 4.34 GB, free: 13.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/11.33, allocations: 7.719 kB / 4.34 GB, free: 13.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006442/11.34, allocations: 212.5 kB / 4.34 GB, free: 13.89 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/11.34, allocations: 457.7 kB / 4.34 GB, free: 13.85 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/11.34, allocations: 1.879 MB / 4.342 GB, free: 12.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002531/11.34, allocations: 263.1 kB / 4.342 GB, free: 12.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/11.34, allocations: 90.83 kB / 4.342 GB, free: 12.08 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001558/11.34, allocations: 0.7155 MB / 4.343 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003953/11.34, allocations: 203.9 kB / 4.343 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00947/11.35, allocations: 7.565 MB / 4.351 GB, free: 8.168 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.265e-05/11.35, allocations: 79.52 kB / 4.351 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/11.35, allocations: 0 / 4.351 GB, free: 8.145 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007597/11.36, allocations: 6.618 MB / 4.357 GB, free: 4.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02136/11.38, allocations: 11.48 MB / 4.368 GB, free: 10.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.936e-05/11.38, allocations: 4 kB / 4.368 GB, free: 10.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/11.38, allocations: 364.9 kB / 4.369 GB, free: 10.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003159/11.39, allocations: 1.177 MB / 4.37 GB, free: 9.492 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002931/11.39, allocations: 66.27 kB / 4.37 GB, free: 9.438 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002767/11.39, allocations: 3.187 MB / 4.373 GB, free: 6.32 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/11.39, allocations: 11.89 kB / 4.373 GB, free: 6.309 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4721/11.86, allocations: 7.893 MB / 4.381 GB, free: 69.81 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002694/11.86, allocations: 0.7382 MB / 4.382 GB, free: 69.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005305/11.87, allocations: 54.16 kB / 4.382 GB, free: 69.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/11.87, allocations: 198.6 kB / 4.382 GB, free: 69.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/11.87, allocations: 157.6 kB / 4.382 GB, free: 69.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002335/11.87, allocations: 79.23 kB / 4.382 GB, free: 69.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.002162/11.87, allocations: 1.222 MB / 4.383 GB, free: 69.57 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/11.87, allocations: 0 / 4.383 GB, free: 69.57 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01234/11.88, allocations: 2.651 MB / 4.386 GB, free: 69.57 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02409/11.91, allocations: 11.7 MB / 4.397 GB, free: 66.89 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.009008/11.92, allocations: 4.88 MB / 4.402 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/11.92, allocations: 0 / 4.402 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003634/11.92, allocations: 2.525 MB / 4.405 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005396/11.92, allocations: 0.9797 MB / 4.405 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/11.95, allocations: 16.83 MB / 4.422 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/11.95, allocations: 2.186 MB / 4.424 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005215/11.95, allocations: 2.311 MB / 4.426 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002055/11.96, allocations: 1.234 MB / 4.428 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of SimCode: time 1.382e-06/11.96, allocations: 0 / 4.428 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1952/12.15, allocations: 111.5 MB / 4.536 GB, free: 49.21 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/12.15, allocations: 252.4 kB / 4.537 GB, free: 48.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.154/18.31, allocations: 3.875 kB / 4.537 GB, free: 48.88 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat