Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,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.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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.BranchingPipes16") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009608/0.0009608, allocations: 191.2 kB / 16.78 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.5 MB / 244.1 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008377/0.0008379, allocations: 102.9 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3148/0.3148, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002557, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3315, allocations: 62.95 MB / 0.5165 GB, free: 37.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9747/1.306, allocations: 0.5626 GB / 1.079 GB, free: 23.9 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/1.306, allocations: 92.7 kB / 1.079 GB, free: 23.85 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.797/3.103, allocations: 0.5056 GB / 1.585 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.504e-06/3.103, allocations: 0 / 1.585 GB, free: 47.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002867/3.104, allocations: 60.14 kB / 1.585 GB, free: 47.8 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01107/3.115, allocations: 3.083 MB / 1.588 GB, free: 46.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/3.115, allocations: 10.55 kB / 1.588 GB, free: 46.55 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003576/3.118, allocations: 449.1 kB / 1.588 GB, free: 46.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00881/3.127, allocations: 3.36 MB / 1.592 GB, free: 45.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/3.127, allocations: 129.4 kB / 1.592 GB, free: 45.96 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009335/3.128, allocations: 174 kB / 1.592 GB, free: 45.96 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006249/3.135, allocations: 2.653 MB / 1.594 GB, free: 45.53 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-05/3.135, allocations: 13 kB / 1.594 GB, free: 45.52 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005069/3.135, allocations: 75.78 kB / 1.594 GB, free: 45.52 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002037/3.136, allocations: 152.2 kB / 1.595 GB, free: 45.52 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004247/3.14, allocations: 2.266 MB / 1.597 GB, free: 45.5 MB / 0.5417 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.01522/3.155, allocations: 11.09 MB / 1.608 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/3.158, allocations: 1.809 MB / 1.609 GB, free: 39.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/3.159, allocations: 1.082 MB / 1.61 GB, free: 39.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007861/3.16, allocations: 0.5047 MB / 1.611 GB, free: 38.72 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001976/3.162, allocations: 1.323 MB / 1.612 GB, free: 38.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=162): time 5.29e-06/3.162, allocations: 0 / 1.612 GB, free: 38.55 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: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02567/3.188, allocations: 10.92 MB / 1.623 GB, free: 36.96 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/3.188, allocations: 364.2 kB / 1.623 GB, free: 36.55 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/3.191, allocations: 1.604 MB / 1.625 GB, free: 36.37 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003152/3.191, allocations: 62.64 kB / 1.625 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007873/3.192, allocations: 0.8665 MB / 1.626 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005504/3.192, allocations: 0.6148 MB / 1.626 GB, free: 35.64 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/3.193, allocations: 43.62 kB / 1.626 GB, free: 35.64 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001256/3.193, allocations: 388.5 kB / 1.627 GB, free: 35.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001719/3.195, allocations: 1.048 MB / 1.628 GB, free: 35.33 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/3.197, allocations: 1.501 MB / 1.629 GB, free: 34.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003536/3.2, allocations: 2.657 MB / 1.632 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/3.2, allocations: 5.312 kB / 1.632 GB, free: 34.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00524/3.205, allocations: 3.175 MB / 1.635 GB, free: 34.14 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002196/3.206, allocations: 436 kB / 1.635 GB, free: 33.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/3.206, allocations: 6.906 kB / 1.635 GB, free: 33.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/3.206, allocations: 192.4 kB / 1.636 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/3.208, allocations: 0.5414 MB / 1.636 GB, free: 33.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/3.209, allocations: 2.329 MB / 1.638 GB, free: 31.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/3.212, allocations: 220.4 kB / 1.639 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004007/3.212, allocations: 190.7 kB / 1.639 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/3.212, allocations: 6.656 kB / 1.639 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004631/3.217, allocations: 2.895 MB / 1.642 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/3.217, allocations: 13.31 kB / 1.642 GB, free: 31.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003692/3.217, allocations: 191.7 kB / 1.642 GB, free: 31.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/3.219, allocations: 0.5355 MB / 1.642 GB, free: 31.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/3.22, allocations: 2.325 MB / 1.645 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/3.223, allocations: 209.3 kB / 1.645 GB, free: 29.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003466/3.223, allocations: 191.2 kB / 1.645 GB, free: 29.29 MB / 0.5417 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.001441/3.224, allocations: 0.6882 MB / 1.646 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005629/3.225, allocations: 219.5 kB / 1.646 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007898/3.233, allocations: 4.658 MB / 1.65 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/3.233, allocations: 23.44 kB / 1.65 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/3.233, allocations: 0 / 1.65 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003679/3.237, allocations: 2.808 MB / 1.653 GB, free: 28.05 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01159/3.248, allocations: 7.057 MB / 1.66 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/3.248, allocations: 7.625 kB / 1.66 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/3.25, allocations: 442 kB / 1.66 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004089/3.25, allocations: 189.2 kB / 1.661 GB, free: 26.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/3.251, allocations: 105.3 kB / 1.661 GB, free: 26.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/3.252, allocations: 3.067 MB / 1.664 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.261e-06/3.252, allocations: 12.38 kB / 1.664 GB, free: 23.61 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005991/3.258, allocations: 4.343 MB / 1.668 GB, free: 21.84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/3.259, allocations: 0.5549 MB / 1.669 GB, free: 21.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006146/3.26, allocations: 57.34 kB / 1.669 GB, free: 21.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/3.262, allocations: 129.9 kB / 1.669 GB, free: 21.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/3.262, allocations: 174.3 kB / 1.669 GB, free: 21.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/3.262, allocations: 164.1 kB / 1.669 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001743/3.264, allocations: 1.095 MB / 1.67 GB, free: 20.99 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/3.264, allocations: 1.875 kB / 1.67 GB, free: 20.99 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005858/3.27, allocations: 1.763 MB / 1.672 GB, free: 20.63 MB / 0.5417 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.00494/3.275, allocations: 2.083 MB / 1.674 GB, free: 20.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007351/3.282, allocations: 4.369 MB / 1.678 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/3.282, allocations: 2.469 kB / 1.678 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002229/3.285, allocations: 1.538 MB / 1.68 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006865/3.292, allocations: 0.9933 MB / 1.681 GB, free: 17.69 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008592/3.3, allocations: 5.769 MB / 1.686 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/3.302, allocations: 1.658 MB / 1.688 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002202/3.304, allocations: 436.5 kB / 1.688 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of SimCode: time 1.432e-06/3.304, allocations: 0 / 1.688 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.3855/3.689, allocations: 83.8 MB / 1.77 GB, free: 75.87 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes16/BranchingPipes16.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches