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.001178/0.001178, allocations: 177.9 kB / 17.06 MB, free: 5.098 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.422/1.422, allocations: 223.2 MB / 241 MB, free: 10.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 89.08 kB / 292.1 MB, free: 10.64 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.3708/0.3708, allocations: 44.21 MB / 387.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003497, allocations: 11.98 kB / 460 MB, free: 1.371 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3425, allocations: 61.9 MB / 0.5096 GB, free: 37.9 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.055/1.397, allocations: 0.5615 GB / 1.071 GB, free: 9.191 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/1.397, allocations: 97.03 kB / 1.071 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.209/3.607, allocations: 0.5648 GB / 1.636 GB, free: 37.95 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.004e-06/3.607, allocations: 0 / 1.636 GB, free: 37.95 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000273/3.607, allocations: 63.67 kB / 1.636 GB, free: 37.93 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01165/3.619, allocations: 3.26 MB / 1.639 GB, free: 36.01 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/3.619, allocations: 11.09 kB / 1.639 GB, free: 36.01 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001219/3.62, allocations: 259.4 kB / 1.64 GB, free: 35.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003873/3.624, allocations: 467.1 kB / 1.64 GB, free: 35.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006881/3.631, allocations: 2.019 MB / 1.642 GB, free: 34.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/3.631, allocations: 137 kB / 1.642 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009945/3.632, allocations: 178.8 kB / 1.642 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008487/3.64, allocations: 2.771 MB / 1.645 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001697/3.641, allocations: 3.688 kB / 1.645 GB, free: 33.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/3.642, allocations: 80.08 kB / 1.645 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003252/3.642, allocations: 159.9 kB / 1.645 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005074/3.647, allocations: 2.363 MB / 1.647 GB, free: 30.48 MB / 0.5261 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.01554/3.663, allocations: 11.61 MB / 1.659 GB, free: 18.06 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002815/3.666, allocations: 1.888 MB / 1.661 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007851/3.666, allocations: 0.5105 MB / 1.661 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001902/3.668, allocations: 1.366 MB / 1.663 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 4.869e-06/3.668, allocations: 0 / 1.663 GB, free: 14.11 MB / 0.5261 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: junctionIdeal.medium.T 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.02845/3.697, allocations: 12.47 MB / 1.675 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/3.697, allocations: 368.1 kB / 1.675 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/3.699, allocations: 1.485 MB / 1.676 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003023/3.7, allocations: 65.7 kB / 1.677 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009396/3.701, allocations: 0.9099 MB / 1.677 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006667/3.701, allocations: 0.6739 MB / 1.678 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/3.701, allocations: 44 kB / 1.678 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002055/3.702, allocations: 394.3 kB / 1.679 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/3.704, allocations: 1.097 MB / 1.68 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00252/3.706, allocations: 1.591 MB / 1.681 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/3.709, allocations: 1.372 MB / 1.682 GB, free: 9.035 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/3.709, allocations: 7.953 kB / 1.682 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006836/3.716, allocations: 3.403 MB / 1.686 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002047/3.718, allocations: 4.344 MB / 1.69 GB, free: 0.8984 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/3.718, allocations: 8 kB / 1.69 GB, free: 0.8906 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008952/3.719, allocations: 304 kB / 1.69 GB, free: 0.5781 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002652/3.721, allocations: 0.5617 MB / 1.691 GB, free: 16 kB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/3.724, allocations: 3.016 MB / 1.694 GB, free: 12.87 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00343/3.727, allocations: 219.8 kB / 1.694 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006686/3.728, allocations: 203.9 kB / 1.694 GB, free: 12.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/3.728, allocations: 4 kB / 1.694 GB, free: 12.45 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006476/3.735, allocations: 3.135 MB / 1.697 GB, free: 9.289 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-05/3.735, allocations: 12 kB / 1.697 GB, free: 9.277 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007659/3.735, allocations: 310.5 kB / 1.698 GB, free: 8.965 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/3.738, allocations: 0.5617 MB / 1.698 GB, free: 8.402 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/3.74, allocations: 3.008 MB / 1.701 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002771/3.743, allocations: 223.6 kB / 1.701 GB, free: 5.047 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000489/3.743, allocations: 207.9 kB / 1.702 GB, free: 4.844 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 () * Number of clocked 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.001956/3.745, allocations: 0.7031 MB / 1.702 GB, free: 4.117 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/3.746, allocations: 229.3 kB / 1.702 GB, free: 3.891 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4001/4.146, allocations: 4.85 MB / 1.707 GB, free: 68.39 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/4.146, allocations: 20.41 kB / 1.707 GB, free: 68.39 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/4.146, allocations: 2.781 kB / 1.707 GB, free: 68.39 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005479/4.152, allocations: 3.055 MB / 1.71 GB, free: 67.82 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01552/4.167, allocations: 7.294 MB / 1.717 GB, free: 66.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/4.167, allocations: 7.906 kB / 1.717 GB, free: 66.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/4.17, allocations: 468 kB / 1.718 GB, free: 66.47 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000893/4.17, allocations: 323.9 kB / 1.718 GB, free: 66.43 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003472/4.171, allocations: 113.2 kB / 1.718 GB, free: 66.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/4.173, allocations: 3.759 MB / 1.722 GB, free: 63.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/4.173, allocations: 8.531 kB / 1.722 GB, free: 63.12 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008427/4.182, allocations: 5.135 MB / 1.727 GB, free: 61.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002315/4.184, allocations: 0.5671 MB / 1.727 GB, free: 61.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006073/4.185, allocations: 63.86 kB / 1.727 GB, free: 61.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/4.186, allocations: 138 kB / 1.728 GB, free: 61.83 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/4.187, allocations: 197.3 kB / 1.728 GB, free: 61.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003074/4.187, allocations: 186.5 kB / 1.728 GB, free: 61.82 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001746/4.189, allocations: 1.133 MB / 1.729 GB, free: 61.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.272e-06/4.189, allocations: 1.5 kB / 1.729 GB, free: 61.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007167/4.196, allocations: 1.914 MB / 1.731 GB, free: 61.68 MB / 0.5573 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) * Number of clocked states: 0 () * 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.01482/4.211, allocations: 9.462 MB / 1.74 GB, free: 58.16 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009/4.22, allocations: 4.652 MB / 1.745 GB, free: 57.86 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/4.22, allocations: 2.656 kB / 1.745 GB, free: 57.86 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003399/4.223, allocations: 1.673 MB / 1.746 GB, free: 57.61 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007416/4.231, allocations: 1.121 MB / 1.747 GB, free: 57.59 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02569/4.257, allocations: 15.18 MB / 1.762 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002795/4.259, allocations: 1.765 MB / 1.764 GB, free: 46.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009857/4.269, allocations: 3.124 MB / 1.767 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/4.273, allocations: 1.091 MB / 1.768 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of SimCode: time 1.453e-06/4.273, allocations: 0 / 1.768 GB, free: 46.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1878/4.461, allocations: 102.1 MB / 1.868 GB, free: 21.78 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/4.461, allocations: 263 kB / 1.868 GB, free: 21.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.069/10.53, allocations: 0 / 1.868 GB, free: 21.41 MB / 0.5573 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)