Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001516/0.001517, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 226.5 MB / 244.1 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008454/0.0008452, allocations: 103.8 kB / 296.1 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3167/0.3167, allocations: 44.81 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002636, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3121, allocations: 62.95 MB / 0.5165 GB, free: 37.31 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9747/1.287, allocations: 0.5626 GB / 1.079 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/1.287, allocations: 89 kB / 1.079 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.82/3.107, allocations: 0.5055 GB / 1.585 GB, free: 64.12 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.154e-06/3.108, allocations: 0 / 1.585 GB, free: 64.12 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002479/3.108, allocations: 69.77 kB / 1.585 GB, free: 64.11 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.0117/3.12, allocations: 3.081 MB / 1.588 GB, free: 62.86 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/3.12, allocations: 6.781 kB / 1.588 GB, free: 62.86 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003314/3.123, allocations: 452.2 kB / 1.588 GB, free: 62.73 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007504/3.13, allocations: 3.354 MB / 1.591 GB, free: 62.27 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/3.131, allocations: 133.5 kB / 1.592 GB, free: 62.26 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005307/3.131, allocations: 170.9 kB / 1.592 GB, free: 62.26 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004117/3.135, allocations: 2.662 MB / 1.594 GB, free: 61.83 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.462e-05/3.135, allocations: 5.719 kB / 1.594 GB, free: 61.82 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002318/3.136, allocations: 75.86 kB / 1.594 GB, free: 61.82 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/3.136, allocations: 151.2 kB / 1.595 GB, free: 61.82 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003454/3.139, allocations: 2.262 MB / 1.597 GB, free: 61.8 MB / 0.5573 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.01352/3.153, allocations: 11.09 MB / 1.608 GB, free: 55.81 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/3.155, allocations: 1.816 MB / 1.609 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/3.157, allocations: 1.08 MB / 1.61 GB, free: 55.49 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007388/3.158, allocations: 0.5082 MB / 1.611 GB, free: 55.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001734/3.159, allocations: 1.318 MB / 1.612 GB, free: 54.85 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=162): time 3.877e-06/3.159, allocations: 0 / 1.612 GB, free: 54.85 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: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02369/3.183, allocations: 10.91 MB / 1.623 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.19e-05/3.183, allocations: 361.8 kB / 1.623 GB, free: 52.86 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/3.185, allocations: 1.6 MB / 1.625 GB, free: 52.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002592/3.185, allocations: 65.2 kB / 1.625 GB, free: 52.64 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/3.186, allocations: 0.8612 MB / 1.626 GB, free: 52.34 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/3.186, allocations: 0.6219 MB / 1.626 GB, free: 51.95 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/3.187, allocations: 39.56 kB / 1.626 GB, free: 51.95 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.955e-05/3.187, allocations: 390 kB / 1.627 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/3.188, allocations: 1.05 MB / 1.628 GB, free: 51.63 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/3.19, allocations: 1.492 MB / 1.629 GB, free: 51.21 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/3.193, allocations: 2.661 MB / 1.632 GB, free: 50.73 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/3.193, allocations: 3.656 kB / 1.632 GB, free: 50.73 MB / 0.5573 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004723/3.198, allocations: 3.177 MB / 1.635 GB, free: 50.45 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001784/3.198, allocations: 429.8 kB / 1.635 GB, free: 49.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/3.198, allocations: 7.094 kB / 1.635 GB, free: 49.97 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/3.199, allocations: 199.9 kB / 1.636 GB, free: 49.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/3.201, allocations: 0.5441 MB / 1.636 GB, free: 49.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/3.202, allocations: 2.325 MB / 1.638 GB, free: 47.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/3.204, allocations: 222.3 kB / 1.639 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/3.204, allocations: 191.1 kB / 1.639 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/3.204, allocations: 9.125 kB / 1.639 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004232/3.209, allocations: 2.895 MB / 1.642 GB, free: 47.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/3.209, allocations: 11.28 kB / 1.642 GB, free: 47.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003321/3.209, allocations: 195 kB / 1.642 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/3.211, allocations: 0.5304 MB / 1.642 GB, free: 47.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009392/3.212, allocations: 2.328 MB / 1.645 GB, free: 45.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/3.214, allocations: 209 kB / 1.645 GB, free: 45.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002651/3.214, allocations: 185.6 kB / 1.645 GB, free: 45.59 MB / 0.5573 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 () * Number of clocked 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.001269/3.216, allocations: 0.6987 MB / 1.646 GB, free: 45.32 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003336/3.216, allocations: 217.9 kB / 1.646 GB, free: 45.21 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007058/3.223, allocations: 4.655 MB / 1.65 GB, free: 44.94 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/3.223, allocations: 28.7 kB / 1.65 GB, free: 44.93 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/3.223, allocations: 3.969 kB / 1.65 GB, free: 44.93 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003471/3.227, allocations: 2.794 MB / 1.653 GB, free: 44.35 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/3.238, allocations: 7.066 MB / 1.66 GB, free: 42.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/3.238, allocations: 5.375 kB / 1.66 GB, free: 42.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001692/3.239, allocations: 441.1 kB / 1.66 GB, free: 42.75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003874/3.24, allocations: 183.3 kB / 1.661 GB, free: 42.72 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002183/3.24, allocations: 99.41 kB / 1.661 GB, free: 42.72 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0014/3.241, allocations: 3.074 MB / 1.664 GB, free: 39.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/3.241, allocations: 9.5 kB / 1.664 GB, free: 39.92 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006035/3.247, allocations: 4.353 MB / 1.668 GB, free: 38.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001341/3.249, allocations: 0.5466 MB / 1.669 GB, free: 37.89 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005744/3.249, allocations: 63.11 kB / 1.669 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/3.251, allocations: 129.3 kB / 1.669 GB, free: 37.82 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003006/3.251, allocations: 171.8 kB / 1.669 GB, free: 37.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/3.252, allocations: 169.2 kB / 1.669 GB, free: 37.79 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.00176/3.253, allocations: 1.094 MB / 1.67 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.61e-07/3.253, allocations: 0 / 1.67 GB, free: 37.36 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005534/3.259, allocations: 1.765 MB / 1.672 GB, free: 36.99 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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.004521/3.264, allocations: 2.08 MB / 1.674 GB, free: 36.45 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006746/3.27, allocations: 4.372 MB / 1.678 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/3.27, allocations: 3.125 kB / 1.678 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002028/3.272, allocations: 1.53 MB / 1.68 GB, free: 34.26 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006223/3.279, allocations: 0.9928 MB / 1.681 GB, free: 34.05 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/3.286, allocations: 5.772 MB / 1.686 GB, free: 31.14 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009884/3.287, allocations: 1.66 MB / 1.688 GB, free: 30.31 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001777/3.289, allocations: 435.1 kB / 1.688 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of SimCode: time 6.01e-07/3.289, allocations: 0 / 1.688 GB, free: 30.25 MB / 0.5573 GB Notification: Performance of Templates: time 0.369/3.658, allocations: 83.8 MB / 1.77 GB, free: 76.47 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes15/BranchingPipes15.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches