Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002214/0.002214, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 95.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3039/0.3039, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.24e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4399/0.4399, allocations: 58.86 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.96/2.4, allocations: 0.6584 GB / 1.124 GB, free: 78.75 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/2.4, allocations: 77.34 kB / 1.124 GB, free: 78.72 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.303/5.703, allocations: 0.6026 GB / 1.727 GB, free: 40.88 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.783e-06/5.703, allocations: 0 / 1.727 GB, free: 40.88 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 0.0003305/5.703, allocations: 66.11 kB / 1.727 GB, free: 40.86 MB / 0.5108 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.01363/5.717, allocations: 3.195 MB / 1.73 GB, free: 39.04 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/5.717, allocations: 10 kB / 1.73 GB, free: 39.04 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004989/5.722, allocations: 454.4 kB / 1.731 GB, free: 38.89 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00824/5.73, allocations: 1.996 MB / 1.733 GB, free: 37.99 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/5.731, allocations: 65.95 kB / 1.733 GB, free: 37.99 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008859/5.731, allocations: 106 kB / 1.733 GB, free: 37.98 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006354/5.738, allocations: 2.216 MB / 1.735 GB, free: 37.22 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00683/5.745, allocations: 2.465 MB / 1.737 GB, free: 36.11 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-05/5.745, allocations: 7.25 kB / 1.737 GB, free: 36.11 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003781/5.745, allocations: 10.53 kB / 1.737 GB, free: 36.1 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002904/5.746, allocations: 155.8 kB / 1.737 GB, free: 36.08 MB / 0.5108 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.02517/5.771, allocations: 11.25 MB / 1.748 GB, free: 28.08 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004761/5.776, allocations: 1.775 MB / 1.75 GB, free: 27.22 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002694/5.778, allocations: 1.05 MB / 1.751 GB, free: 26.82 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001496/5.78, allocations: 466.5 kB / 1.752 GB, free: 26.5 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00344/5.783, allocations: 1.24 MB / 1.753 GB, free: 25.98 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=167): time 5.29e-06/5.783, allocations: 0 / 1.753 GB, free: 25.98 MB / 0.5108 GB Notification: Performance of matching and sorting (n=195): time 0.07049/5.854, allocations: 10.46 MB / 1.763 GB, free: 20.3 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/5.854, allocations: 368.1 kB / 1.763 GB, free: 19.86 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/5.856, allocations: 1.1 MB / 1.765 GB, free: 18.87 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0007183/5.857, allocations: 25.7 kB / 1.765 GB, free: 18.84 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009279/5.858, allocations: 0.8993 MB / 1.765 GB, free: 17.99 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.001106/5.859, allocations: 0.6342 MB / 1.766 GB, free: 17.41 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/5.859, allocations: 4 kB / 1.766 GB, free: 17.4 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001664/5.86, allocations: 395.7 kB / 1.766 GB, free: 17.03 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/5.862, allocations: 1.021 MB / 1.767 GB, free: 16.11 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003185/5.865, allocations: 1.502 MB / 1.769 GB, free: 14.57 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01674/5.882, allocations: 2.382 MB / 1.771 GB, free: 12.76 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.807e-05/5.882, allocations: 4 kB / 1.771 GB, free: 12.75 MB / 0.5108 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.02277/5.905, allocations: 4.116 MB / 1.775 GB, free: 9.355 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008768/5.906, allocations: 4.166 MB / 1.779 GB, free: 4.871 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-05/5.906, allocations: 12 kB / 1.779 GB, free: 4.859 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/5.907, allocations: 273.3 kB / 1.78 GB, free: 4.621 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004897/5.912, allocations: 0.5597 MB / 1.78 GB, free: 4.062 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/5.914, allocations: 3.038 MB / 1.783 GB, free: 0.8984 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004572/5.919, allocations: 183.8 kB / 1.783 GB, free: 0.7188 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007879/5.92, allocations: 203.9 kB / 1.783 GB, free: 0.5195 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/5.92, allocations: 5.5 kB / 1.783 GB, free: 0.5156 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02124/5.941, allocations: 3.716 MB / 1.787 GB, free: 12.79 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.446e-05/5.941, allocations: 12 kB / 1.787 GB, free: 12.77 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009985/5.942, allocations: 276.1 kB / 1.787 GB, free: 12.49 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004894/5.947, allocations: 0.5539 MB / 1.788 GB, free: 11.94 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003174/5.95, allocations: 3.023 MB / 1.791 GB, free: 8.785 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/5.954, allocations: 172 kB / 1.791 GB, free: 8.617 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008132/5.955, allocations: 203.9 kB / 1.791 GB, free: 8.418 MB / 0.5265 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.00103/5.956, allocations: 234.8 kB / 1.791 GB, free: 8.172 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007982/5.957, allocations: 205.5 kB / 1.792 GB, free: 7.969 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02813/5.985, allocations: 4.486 MB / 1.796 GB, free: 3.488 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.977e-05/5.985, allocations: 20 kB / 1.796 GB, free: 3.469 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/5.985, allocations: 3.984 kB / 1.796 GB, free: 3.465 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4426/6.428, allocations: 3.834 MB / 1.8 GB, free: 55.79 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05197/6.48, allocations: 7.602 MB / 1.807 GB, free: 54.68 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/6.48, allocations: 7.656 kB / 1.807 GB, free: 54.68 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005971/6.486, allocations: 453 kB / 1.808 GB, free: 54.68 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/6.488, allocations: 287.6 kB / 1.808 GB, free: 54.64 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009649/6.489, allocations: 84.7 kB / 1.808 GB, free: 54.64 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004822/6.494, allocations: 3.723 MB / 1.812 GB, free: 51.39 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.71e-05/6.494, allocations: 9.547 kB / 1.812 GB, free: 51.39 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03835/6.532, allocations: 5.693 MB / 1.817 GB, free: 50.46 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003075/6.536, allocations: 0.5343 MB / 1.818 GB, free: 50.37 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001284/6.537, allocations: 27.91 kB / 1.818 GB, free: 50.37 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004439/6.541, allocations: 99.97 kB / 1.818 GB, free: 50.37 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001003/6.542, allocations: 189.1 kB / 1.818 GB, free: 50.36 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008166/6.543, allocations: 178.5 kB / 1.818 GB, free: 50.36 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.002677/6.546, allocations: 0.8022 MB / 1.819 GB, free: 50.25 MB / 0.5265 GB Notification: Performance of sort global known variables: time 9.62e-07/6.546, allocations: 4.562 kB / 1.819 GB, free: 50.25 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.01421/6.56, allocations: 1.914 MB / 1.821 GB, free: 50.25 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (203): * Single equations (assignments): 196 * 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.01234/6.573, allocations: 2.83 MB / 1.824 GB, free: 49.93 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.0157/6.588, allocations: 4.329 MB / 1.828 GB, free: 49.64 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 2.176e-05/6.589, allocations: 6.688 kB / 1.828 GB, free: 49.64 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.005411/6.594, allocations: 1.552 MB / 1.829 GB, free: 49.42 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01071/6.605, allocations: 0.9217 MB / 1.83 GB, free: 49.4 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/6.621, allocations: 4.215 MB / 1.834 GB, free: 48.43 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002548/6.624, allocations: 1.742 MB / 1.836 GB, free: 47.7 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003826/6.628, allocations: 373.8 kB / 1.836 GB, free: 47.69 MB / 0.5265 GB Notification: Performance of SimCode: time 1.333e-06/6.628, allocations: 1.844 kB / 1.836 GB, free: 47.69 MB / 0.5265 GB Notification: Performance of Templates: time 0.1567/6.784, allocations: 94.81 MB / 1.929 GB, free: 38.39 MB / 0.5265 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes17/BranchingPipes17.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches