Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.0015/0.0015, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 221.4 MB / 236 MB, free: 2.973 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.0009047/0.0009044, allocations: 84.06 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2649/0.265, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.464e-05/4.498e-05, allocations: 224 / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1795, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.975/2.155, allocations: 0.5615 GB / 1.063 GB, free: 74.99 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/2.155, allocations: 77.78 kB / 1.063 GB, free: 74.92 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.909/5.064, allocations: 0.5634 GB / 1.627 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.136e-06/5.064, allocations: 3.875 kB / 1.627 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002735/5.064, allocations: 62.11 kB / 1.627 GB, free: 49.66 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01313/5.077, allocations: 2.946 MB / 1.63 GB, free: 48.49 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.461e-05/5.078, allocations: 13.66 kB / 1.63 GB, free: 48.49 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001081/5.079, allocations: 259.5 kB / 1.63 GB, free: 48.45 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003809/5.082, allocations: 462.2 kB / 1.63 GB, free: 48.32 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00674/5.089, allocations: 1.988 MB / 1.632 GB, free: 47.87 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/5.089, allocations: 138.1 kB / 1.632 GB, free: 47.87 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005384/5.09, allocations: 184.2 kB / 1.633 GB, free: 47.86 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006046/5.096, allocations: 2.723 MB / 1.635 GB, free: 47.41 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.461e-05/5.096, allocations: 6.188 kB / 1.635 GB, free: 47.41 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003053/5.096, allocations: 82.03 kB / 1.635 GB, free: 47.41 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002459/5.097, allocations: 159.9 kB / 1.636 GB, free: 47.4 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004339/5.101, allocations: 2.289 MB / 1.638 GB, free: 47.39 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.01775/5.119, allocations: 11.6 MB / 1.649 GB, free: 41.14 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003103/5.122, allocations: 1.841 MB / 1.651 GB, free: 40.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0017/5.124, allocations: 1.112 MB / 1.652 GB, free: 40.8 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009791/5.125, allocations: 0.51 MB / 1.653 GB, free: 40.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002296/5.127, allocations: 1.338 MB / 1.654 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 4.989e-06/5.127, allocations: 0 / 1.654 GB, free: 40.16 MB / 0.5417 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.02791/5.155, allocations: 9.687 MB / 1.663 GB, free: 38.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/5.155, allocations: 364.1 kB / 1.664 GB, free: 38.49 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004089/5.159, allocations: 1.462 MB / 1.665 GB, free: 38.26 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003952/5.16, allocations: 67.02 kB / 1.665 GB, free: 38.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001423/5.161, allocations: 0.9082 MB / 1.666 GB, free: 37.91 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009322/5.162, allocations: 0.6761 MB / 1.667 GB, free: 37.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/5.162, allocations: 47.72 kB / 1.667 GB, free: 37.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002119/5.163, allocations: 389.2 kB / 1.667 GB, free: 37.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/5.164, allocations: 1.053 MB / 1.668 GB, free: 37.17 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/5.167, allocations: 1.537 MB / 1.67 GB, free: 36.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002289/5.169, allocations: 1.332 MB / 1.671 GB, free: 36.61 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/5.169, allocations: 2.781 kB / 1.671 GB, free: 36.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006959/5.176, allocations: 3.32 MB / 1.674 GB, free: 36.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001776/5.178, allocations: 4.334 MB / 1.678 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/5.178, allocations: 10.75 kB / 1.678 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/5.179, allocations: 308.3 kB / 1.679 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/5.181, allocations: 0.5703 MB / 1.679 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/5.183, allocations: 2.997 MB / 1.682 GB, free: 29.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003072/5.186, allocations: 223.6 kB / 1.682 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003947/5.186, allocations: 207.5 kB / 1.683 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/5.186, allocations: 6.297 kB / 1.683 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005251/5.192, allocations: 3.037 MB / 1.686 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/5.192, allocations: 10.34 kB / 1.686 GB, free: 29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006786/5.192, allocations: 300.9 kB / 1.686 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/5.195, allocations: 0.5605 MB / 1.686 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/5.197, allocations: 3.013 MB / 1.689 GB, free: 26.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002997/5.2, allocations: 216.3 kB / 1.69 GB, free: 26.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004557/5.2, allocations: 201.6 kB / 1.69 GB, free: 26.36 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001019/5.201, allocations: 298.8 kB / 1.69 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009727/5.202, allocations: 231.3 kB / 1.69 GB, free: 26.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/5.213, allocations: 4.794 MB / 1.695 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.482e-05/5.213, allocations: 20.47 kB / 1.695 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/5.213, allocations: 2.594 kB / 1.695 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004825/5.218, allocations: 2.985 MB / 1.698 GB, free: 24.58 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/5.234, allocations: 7.24 MB / 1.705 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.85e-05/5.234, allocations: 7.719 kB / 1.705 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/5.236, allocations: 465.8 kB / 1.705 GB, free: 21.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009829/5.237, allocations: 325.8 kB / 1.706 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003485/5.238, allocations: 110.2 kB / 1.706 GB, free: 21.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003389/5.241, allocations: 3.741 MB / 1.709 GB, free: 17.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/5.241, allocations: 15.27 kB / 1.709 GB, free: 17.65 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008677/5.25, allocations: 5.038 MB / 1.714 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/5.252, allocations: 0.5699 MB / 1.715 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/5.253, allocations: 62.98 kB / 1.715 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002566/5.256, allocations: 136.6 kB / 1.715 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004274/5.256, allocations: 192.9 kB / 1.715 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004595/5.257, allocations: 193.9 kB / 1.716 GB, free: 14.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002732/5.259, allocations: 1.11 MB / 1.717 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.61e-07/5.259, allocations: 1.781 kB / 1.717 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009685/5.269, allocations: 1.91 MB / 1.718 GB, free: 13.72 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01726/5.286, allocations: 9.38 MB / 1.728 GB, free: 23.02 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009488/5.296, allocations: 4.595 MB / 1.732 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/5.296, allocations: 4 kB / 1.732 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00283/5.299, allocations: 1.637 MB / 1.734 GB, free: 17.25 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006847/5.306, allocations: 1.127 MB / 1.735 GB, free: 16.45 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/5.324, allocations: 5.241 MB / 1.74 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003108/5.328, allocations: 1.767 MB / 1.742 GB, free: 10.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01193/5.34, allocations: 3.319 MB / 1.745 GB, free: 8.266 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003393/5.343, allocations: 1.073 MB / 1.746 GB, free: 7.312 MB / 0.5573 GB Notification: Performance of SimCode: time 1.943e-06/5.343, allocations: 0 / 1.746 GB, free: 7.312 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7904/6.133, allocations: 110 MB / 1.853 GB, free: 70.57 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/6.134, allocations: 225.6 kB / 1.854 GB, free: 70.27 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.382/12.52, allocations: 0 / 1.854 GB, free: 70.27 MB / 0.573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)