Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 172.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 221.5 MB / 230.7 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009353/0.0009358, allocations: 96.31 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2581/0.2581, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.309e-05, allocations: 4.219 kB / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1593, allocations: 61.92 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.957/2.116, allocations: 0.5607 GB / 1.055 GB, free: 43.38 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/2.116, allocations: 79.95 kB / 1.056 GB, free: 43.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.553/4.669, allocations: 0.5008 GB / 1.556 GB, free: 51.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.986e-06/4.669, allocations: 3.062 kB / 1.556 GB, free: 51.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002573/4.67, allocations: 64.69 kB / 1.556 GB, free: 51.19 MB / 0.5261 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.01787/4.687, allocations: 2.814 MB / 1.559 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 9.685e-05/4.688, allocations: 10.92 kB / 1.559 GB, free: 50.06 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005846/4.693, allocations: 441.2 kB / 1.56 GB, free: 49.94 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01087/4.704, allocations: 1.938 MB / 1.561 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002441/4.705, allocations: 58.75 kB / 1.562 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/4.706, allocations: 94.75 kB / 1.562 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005735/4.712, allocations: 2.133 MB / 1.564 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006755/4.719, allocations: 2.38 MB / 1.566 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-05/4.719, allocations: 11.27 kB / 1.566 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006077/4.719, allocations: 3.594 kB / 1.566 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002604/4.72, allocations: 156.2 kB / 1.566 GB, free: 49.09 MB / 0.5261 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.02104/4.741, allocations: 11.1 MB / 1.577 GB, free: 42.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003361/4.744, allocations: 1.728 MB / 1.579 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/4.746, allocations: 0.9824 MB / 1.58 GB, free: 42.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001085/4.747, allocations: 0.5001 MB / 1.58 GB, free: 42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00239/4.749, allocations: 1.161 MB / 1.581 GB, free: 41.83 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 9.237e-06/4.75, allocations: 0 / 1.581 GB, free: 41.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=176): time 0.03874/4.788, allocations: 9.015 MB / 1.59 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/4.789, allocations: 363.9 kB / 1.59 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/4.791, allocations: 1.07 MB / 1.591 GB, free: 40.35 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004514/4.792, allocations: 32.77 kB / 1.592 GB, free: 40.32 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001251/4.793, allocations: 0.9007 MB / 1.592 GB, free: 39.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008677/4.794, allocations: 0.5672 MB / 1.593 GB, free: 39.56 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/4.794, allocations: 4.906 kB / 1.593 GB, free: 39.56 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002887/4.795, allocations: 386.8 kB / 1.593 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/4.797, allocations: 0.979 MB / 1.594 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002439/4.799, allocations: 1.412 MB / 1.596 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009832/4.809, allocations: 2.167 MB / 1.598 GB, free: 38.81 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.588e-05/4.809, allocations: 2.625 kB / 1.598 GB, free: 38.81 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.01424/4.823, allocations: 3.846 MB / 1.602 GB, free: 38.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001937/4.825, allocations: 3.711 MB / 1.605 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.572e-05/4.825, allocations: 9.562 kB / 1.605 GB, free: 34.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005338/4.826, allocations: 170 kB / 1.605 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/4.828, allocations: 0.5456 MB / 1.606 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/4.83, allocations: 2.343 MB / 1.608 GB, free: 32.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/4.834, allocations: 173.5 kB / 1.608 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006054/4.834, allocations: 186.2 kB / 1.608 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/4.834, allocations: 3.562 kB / 1.609 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0116/4.846, allocations: 3.366 MB / 1.612 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.702e-05/4.846, allocations: 13.86 kB / 1.612 GB, free: 32.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004029/4.846, allocations: 162.9 kB / 1.612 GB, free: 32.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002408/4.849, allocations: 0.5438 MB / 1.612 GB, free: 32.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/4.851, allocations: 2.332 MB / 1.615 GB, free: 30.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0031/4.854, allocations: 166.1 kB / 1.615 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005178/4.854, allocations: 189.3 kB / 1.615 GB, free: 30.5 MB / 0.5261 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.001203/4.855, allocations: 232.2 kB / 1.615 GB, free: 30.32 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0121/4.868, allocations: 3.242 MB / 1.618 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009886/4.869, allocations: 194.3 kB / 1.619 GB, free: 30.02 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01567/4.884, allocations: 4.411 MB / 1.623 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/4.884, allocations: 17.59 kB / 1.623 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/4.884, allocations: 0 / 1.623 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01158/4.896, allocations: 3.471 MB / 1.626 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02264/4.919, allocations: 6.997 MB / 1.633 GB, free: 28.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/4.919, allocations: 8.812 kB / 1.633 GB, free: 28.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/4.921, allocations: 413.6 kB / 1.634 GB, free: 28.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004458/4.921, allocations: 165.7 kB / 1.634 GB, free: 28.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/4.921, allocations: 70.36 kB / 1.634 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/4.924, allocations: 3.036 MB / 1.637 GB, free: 25.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.156e-05/4.924, allocations: 12.77 kB / 1.637 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/4.939, allocations: 5.191 MB / 1.642 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002348/4.942, allocations: 0.5128 MB / 1.642 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001107/4.943, allocations: 19.91 kB / 1.642 GB, free: 22.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002625/4.945, allocations: 98.45 kB / 1.643 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004513/4.946, allocations: 164.7 kB / 1.643 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004523/4.946, allocations: 145.2 kB / 1.643 GB, free: 22.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002619/4.949, allocations: 0.797 MB / 1.644 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.01e-07/4.949, allocations: 0 / 1.644 GB, free: 22.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01228/4.961, allocations: 1.643 MB / 1.645 GB, free: 22.01 MB / 0.5261 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.02597/4.987, allocations: 9.455 MB / 1.654 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00982/4.997, allocations: 4.12 MB / 1.658 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.926e-05/4.997, allocations: 4 kB / 1.658 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00253/5, allocations: 1.414 MB / 1.66 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0052/5.005, allocations: 0.7812 MB / 1.661 GB, free: 9.824 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/5.019, allocations: 4.695 MB / 1.665 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/5.021, allocations: 1.718 MB / 1.667 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008567/5.03, allocations: 2.973 MB / 1.67 GB, free: 2.422 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002588/5.033, allocations: 0.973 MB / 1.671 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of SimCode: time 1.392e-06/5.033, allocations: 0 / 1.671 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7187/5.751, allocations: 77.89 MB / 1.747 GB, free: 74.26 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/5.752, allocations: 183.4 kB / 1.747 GB, free: 74.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.409/11.16, allocations: 3.844 kB / 1.747 GB, free: 74.07 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)