Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009853/0.0009853, 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.184/1.184, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009415/0.0009416, allocations: 87.36 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1858/0.1858, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.09e-05/4.112e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 63.25 MB / 0.5115 GB, free: 6.691 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.141/1.257, allocations: 0.5625 GB / 1.074 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/1.257, allocations: 75.97 kB / 1.074 GB, free: 116.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.898/3.155, allocations: 0.5655 GB / 1.639 GB, free: 49.59 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.052e-06/3.155, allocations: 0 / 1.639 GB, free: 49.59 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001736/3.156, allocations: 64 kB / 1.64 GB, free: 49.59 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.006877/3.162, allocations: 2.958 MB / 1.642 GB, free: 48.66 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/3.162, allocations: 9.562 kB / 1.642 GB, free: 48.66 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003461/3.163, allocations: 256.4 kB / 1.643 GB, free: 48.61 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/3.165, allocations: 458.5 kB / 1.643 GB, free: 48.48 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004199/3.169, allocations: 1.996 MB / 1.645 GB, free: 48.13 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/3.17, allocations: 148 kB / 1.645 GB, free: 48.13 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003482/3.17, allocations: 180.8 kB / 1.645 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004074/3.174, allocations: 2.715 MB / 1.648 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/3.174, allocations: 6.906 kB / 1.648 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/3.174, allocations: 76.84 kB / 1.648 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002142/3.175, allocations: 160.2 kB / 1.648 GB, free: 47.66 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003461/3.178, allocations: 2.288 MB / 1.65 GB, free: 47.65 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.01212/3.19, allocations: 11.68 MB / 1.662 GB, free: 41.4 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002386/3.193, allocations: 1.845 MB / 1.664 GB, free: 41.07 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/3.194, allocations: 1.107 MB / 1.665 GB, free: 41.06 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007696/3.195, allocations: 0.5087 MB / 1.665 GB, free: 40.59 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00159/3.196, allocations: 1.339 MB / 1.667 GB, free: 40.42 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=172): time 3.326e-06/3.196, allocations: 0 / 1.667 GB, free: 40.42 MB / 0.5573 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.02213/3.218, allocations: 9.688 MB / 1.676 GB, free: 39.24 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.684e-05/3.219, allocations: 362 kB / 1.676 GB, free: 38.83 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/3.22, allocations: 1.463 MB / 1.678 GB, free: 38.61 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002642/3.221, allocations: 68.98 kB / 1.678 GB, free: 38.58 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005723/3.221, allocations: 0.9123 MB / 1.679 GB, free: 38.27 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000458/3.222, allocations: 0.6734 MB / 1.679 GB, free: 37.84 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001602/3.222, allocations: 45.72 kB / 1.679 GB, free: 37.84 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001047/3.222, allocations: 393.7 kB / 1.68 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/3.223, allocations: 1.049 MB / 1.681 GB, free: 37.53 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/3.225, allocations: 1.539 MB / 1.682 GB, free: 37.05 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001757/3.227, allocations: 1.332 MB / 1.684 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/3.227, allocations: 3.875 kB / 1.684 GB, free: 36.97 MB / 0.5573 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004807/3.232, allocations: 3.317 MB / 1.687 GB, free: 36.67 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006669/3.232, allocations: 4.337 MB / 1.691 GB, free: 32.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/3.232, allocations: 12.34 kB / 1.691 GB, free: 32.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006668/3.233, allocations: 303 kB / 1.691 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/3.235, allocations: 0.5698 MB / 1.692 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/3.237, allocations: 3.003 MB / 1.695 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002821/3.239, allocations: 229.7 kB / 1.695 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003871/3.24, allocations: 205.8 kB / 1.695 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/3.24, allocations: 3.719 kB / 1.695 GB, free: 29.51 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004563/3.244, allocations: 3.04 MB / 1.698 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/3.244, allocations: 11.59 kB / 1.698 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006171/3.245, allocations: 307.5 kB / 1.699 GB, free: 29.32 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/3.247, allocations: 0.5567 MB / 1.699 GB, free: 29.32 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/3.248, allocations: 3 MB / 1.702 GB, free: 26.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002476/3.251, allocations: 218.3 kB / 1.702 GB, free: 26.72 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002855/3.251, allocations: 201.9 kB / 1.703 GB, free: 26.72 MB / 0.5573 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.0007798/3.252, allocations: 309.1 kB / 1.703 GB, free: 26.54 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005827/3.253, allocations: 231.9 kB / 1.703 GB, free: 26.43 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007933/3.261, allocations: 4.785 MB / 1.708 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/3.261, allocations: 21.66 kB / 1.708 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/3.261, allocations: 0 / 1.708 GB, free: 26.13 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00379/3.264, allocations: 2.991 MB / 1.711 GB, free: 25.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/3.276, allocations: 7.239 MB / 1.718 GB, free: 24.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/3.276, allocations: 10.19 kB / 1.718 GB, free: 24.12 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/3.277, allocations: 468.8 kB / 1.718 GB, free: 24.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/3.278, allocations: 315.7 kB / 1.718 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002103/3.278, allocations: 116.2 kB / 1.719 GB, free: 24.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00259/3.281, allocations: 3.749 MB / 1.722 GB, free: 36.75 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/3.281, allocations: 12.91 kB / 1.722 GB, free: 36.75 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006085/3.287, allocations: 5.043 MB / 1.727 GB, free: 35.43 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001324/3.288, allocations: 0.5668 MB / 1.728 GB, free: 35.21 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006962/3.289, allocations: 62.5 kB / 1.728 GB, free: 35.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/3.291, allocations: 139.8 kB / 1.728 GB, free: 35.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003053/3.291, allocations: 189.7 kB / 1.728 GB, free: 35.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/3.292, allocations: 190.3 kB / 1.728 GB, free: 35.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001638/3.293, allocations: 1.114 MB / 1.729 GB, free: 35.04 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/3.293, allocations: 0 / 1.729 GB, free: 35.04 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006068/3.299, allocations: 1.918 MB / 1.731 GB, free: 34.83 MB / 0.573 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.01242/3.312, allocations: 9.391 MB / 1.74 GB, free: 31.04 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.007522/3.319, allocations: 4.608 MB / 1.745 GB, free: 30.71 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.776e-05/3.319, allocations: 0 / 1.745 GB, free: 30.71 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002688/3.322, allocations: 1.632 MB / 1.747 GB, free: 30.46 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0056/3.328, allocations: 1.131 MB / 1.748 GB, free: 30.45 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009929/3.338, allocations: 5.254 MB / 1.753 GB, free: 29.17 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/3.339, allocations: 1.769 MB / 1.754 GB, free: 28.43 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00669/3.345, allocations: 3.313 MB / 1.758 GB, free: 28.36 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001756/3.347, allocations: 1.063 MB / 1.759 GB, free: 28.36 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/3.347, allocations: 6.344 kB / 1.759 GB, free: 28.36 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4718/3.819, allocations: 110.1 MB / 1.866 GB, free: 73.96 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/3.819, allocations: 222.9 kB / 1.866 GB, free: 73.71 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.765/9.584, allocations: 0 / 1.866 GB, free: 73.71 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)