Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001075/0.001075, allocations: 202.2 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.545/1.545, allocations: 225.6 MB / 234.8 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.00108, allocations: 97.11 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 45.14 MB / 383.7 MB, free: 316 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.982e-05/1.977e-05, allocations: 0 / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1446, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.937/2.082, allocations: 0.5617 GB / 1.066 GB, free: 81.51 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/2.083, allocations: 82.39 kB / 1.066 GB, free: 81.47 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.671/4.754, allocations: 0.5026 GB / 1.569 GB, free: 49.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.346e-06/4.754, allocations: 3.344 kB / 1.569 GB, free: 49.92 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003606/4.754, allocations: 64.19 kB / 1.569 GB, free: 49.92 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01666/4.771, allocations: 2.813 MB / 1.572 GB, free: 49.08 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.859e-05/4.771, allocations: 11.56 kB / 1.572 GB, free: 49.08 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004795/4.776, allocations: 441.4 kB / 1.572 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007476/4.783, allocations: 1.936 MB / 1.574 GB, free: 48.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/4.783, allocations: 51.34 kB / 1.574 GB, free: 48.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005676/4.784, allocations: 101.8 kB / 1.574 GB, free: 48.61 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004277/4.788, allocations: 2.131 MB / 1.576 GB, free: 48.61 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006272/4.795, allocations: 2.375 MB / 1.579 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.628e-05/4.795, allocations: 6.469 kB / 1.579 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/4.795, allocations: 5.562 kB / 1.579 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004452/4.796, allocations: 159 kB / 1.579 GB, free: 48.18 MB / 0.5417 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.0231/4.819, allocations: 11.18 MB / 1.59 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00345/4.822, allocations: 1.722 MB / 1.591 GB, free: 41.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/4.824, allocations: 0.978 MB / 1.592 GB, free: 41.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009179/4.825, allocations: 0.5081 MB / 1.593 GB, free: 41.06 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002297/4.827, allocations: 1.161 MB / 1.594 GB, free: 40.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=153): time 4.258e-06/4.827, allocations: 2.688 kB / 1.594 GB, free: 40.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=176): time 0.04077/4.868, allocations: 9.059 MB / 1.603 GB, free: 40.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001925/4.868, allocations: 365.7 kB / 1.603 GB, free: 39.66 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/4.871, allocations: 1.071 MB / 1.604 GB, free: 39.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000873/4.872, allocations: 29.61 kB / 1.604 GB, free: 39.46 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/4.873, allocations: 0.9059 MB / 1.605 GB, free: 39.12 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001063/4.874, allocations: 0.5724 MB / 1.606 GB, free: 38.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/4.874, allocations: 3.219 kB / 1.606 GB, free: 38.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001909/4.874, allocations: 385 kB / 1.606 GB, free: 38.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/4.876, allocations: 0.9883 MB / 1.607 GB, free: 38.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/4.878, allocations: 1.403 MB / 1.608 GB, free: 38.02 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008974/4.887, allocations: 2.189 MB / 1.61 GB, free: 38 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.349e-05/4.887, allocations: 3.75 kB / 1.61 GB, free: 38 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.0132/4.9, allocations: 3.858 MB / 1.614 GB, free: 37.79 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001121/4.901, allocations: 3.714 MB / 1.618 GB, free: 34.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/4.901, allocations: 8.219 kB / 1.618 GB, free: 34.01 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004058/4.902, allocations: 168.9 kB / 1.618 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/4.904, allocations: 0.5405 MB / 1.619 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/4.905, allocations: 2.345 MB / 1.621 GB, free: 31.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/4.908, allocations: 171 kB / 1.621 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003906/4.909, allocations: 191.4 kB / 1.621 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/4.909, allocations: 3.562 kB / 1.621 GB, free: 31.89 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01128/4.92, allocations: 3.374 MB / 1.624 GB, free: 31.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/4.92, allocations: 10.84 kB / 1.624 GB, free: 31.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/4.921, allocations: 171.8 kB / 1.625 GB, free: 31.78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/4.923, allocations: 0.5361 MB / 1.625 GB, free: 31.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/4.924, allocations: 2.344 MB / 1.627 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003/4.927, allocations: 173.4 kB / 1.628 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/4.928, allocations: 185.6 kB / 1.628 GB, free: 29.69 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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.001009/4.929, allocations: 221.2 kB / 1.628 GB, free: 29.52 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01189/4.941, allocations: 3.253 MB / 1.631 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005532/4.941, allocations: 196.1 kB / 1.631 GB, free: 29.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01504/4.956, allocations: 4.427 MB / 1.636 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/4.956, allocations: 17.91 kB / 1.636 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/4.956, allocations: 3.375 kB / 1.636 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01165/4.968, allocations: 3.496 MB / 1.639 GB, free: 28.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02026/4.988, allocations: 7.008 MB / 1.646 GB, free: 27.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.041e-05/4.989, allocations: 5.594 kB / 1.646 GB, free: 27.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/4.99, allocations: 422.2 kB / 1.646 GB, free: 27.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004595/4.991, allocations: 164.1 kB / 1.647 GB, free: 27.31 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002959/4.991, allocations: 72.11 kB / 1.647 GB, free: 27.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/4.993, allocations: 3.037 MB / 1.65 GB, free: 24.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.387e-06/4.993, allocations: 5.75 kB / 1.65 GB, free: 24.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0165/5.01, allocations: 5.23 MB / 1.655 GB, free: 23.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002612/5.013, allocations: 0.5014 MB / 1.655 GB, free: 23.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001233/5.014, allocations: 27.83 kB / 1.655 GB, free: 23.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00287/5.017, allocations: 96.78 kB / 1.655 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004258/5.017, allocations: 160.9 kB / 1.655 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004208/5.018, allocations: 147 kB / 1.656 GB, free: 23.32 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002275/5.02, allocations: 0.7975 MB / 1.656 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.563e-06/5.02, allocations: 0 / 1.656 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01048/5.03, allocations: 1.661 MB / 1.658 GB, free: 23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 180 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02617/5.057, allocations: 9.48 MB / 1.667 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01027/5.067, allocations: 4.129 MB / 1.671 GB, free: 35.32 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/5.067, allocations: 0 / 1.671 GB, free: 35.32 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00301/5.07, allocations: 1.409 MB / 1.673 GB, free: 35.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005951/5.076, allocations: 0.785 MB / 1.673 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/5.095, allocations: 4.7 MB / 1.678 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002508/5.098, allocations: 1.724 MB / 1.68 GB, free: 33.14 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009398/5.107, allocations: 2.976 MB / 1.683 GB, free: 33.08 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/5.11, allocations: 0.9723 MB / 1.684 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of SimCode: time 1.302e-06/5.11, allocations: 0 / 1.684 GB, free: 33.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/5.272, allocations: 77.95 MB / 1.76 GB, free: 1.508 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002895/5.272, allocations: 170.8 kB / 1.76 GB, free: 1.32 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.264/10.54, allocations: 0 / 1.76 GB, free: 1.32 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)