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.001464/0.001464, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2814/0.2814, allocations: 43.48 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.123e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.124, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.337/2.461, allocations: 0.6591 GB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/2.461, allocations: 86.25 kB / 1.132 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.386/5.847, allocations: 0.6089 GB / 1.741 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.317e-06/5.848, allocations: 3.281 kB / 1.741 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003823/5.848, allocations: 68.69 kB / 1.741 GB, free: 41.88 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.01435/5.862, allocations: 3.191 MB / 1.744 GB, free: 40.75 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/5.862, allocations: 10.55 kB / 1.744 GB, free: 40.74 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00514/5.868, allocations: 469.1 kB / 1.744 GB, free: 40.61 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00874/5.876, allocations: 1.994 MB / 1.746 GB, free: 40.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002813/5.877, allocations: 136.5 kB / 1.747 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/5.878, allocations: 184.5 kB / 1.747 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0081/5.886, allocations: 2.711 MB / 1.749 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.487e-05/5.886, allocations: 6.406 kB / 1.749 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/5.886, allocations: 74.95 kB / 1.749 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003115/5.887, allocations: 160.9 kB / 1.75 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007998/5.895, allocations: 2.28 MB / 1.752 GB, free: 39.78 MB / 0.5261 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.02702/5.922, allocations: 11.61 MB / 1.763 GB, free: 33.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005131/5.927, allocations: 1.842 MB / 1.765 GB, free: 33.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003038/5.93, allocations: 1.108 MB / 1.766 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001505/5.932, allocations: 465.1 kB / 1.766 GB, free: 32.96 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003703/5.935, allocations: 1.329 MB / 1.768 GB, free: 32.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 6.031e-06/5.935, allocations: 0 / 1.768 GB, free: 32.79 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: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.04504/5.981, allocations: 9.666 MB / 1.777 GB, free: 31.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/5.981, allocations: 365.7 kB / 1.778 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003189/5.984, allocations: 1.462 MB / 1.779 GB, free: 30.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007911/5.985, allocations: 64.8 kB / 1.779 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009021/5.986, allocations: 0.8403 MB / 1.78 GB, free: 30.47 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001171/5.987, allocations: 0.6742 MB / 1.781 GB, free: 30.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000303/5.987, allocations: 45.81 kB / 1.781 GB, free: 30.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001783/5.987, allocations: 399.1 kB / 1.781 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00296/5.99, allocations: 1.047 MB / 1.782 GB, free: 29.72 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003615/5.994, allocations: 1.534 MB / 1.783 GB, free: 29.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/5.998, allocations: 1.336 MB / 1.785 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.745e-05/5.998, allocations: 3.719 kB / 1.785 GB, free: 29.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.009628/6.007, allocations: 3.184 MB / 1.788 GB, free: 28.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001006/6.009, allocations: 4.164 MB / 1.792 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/6.009, allocations: 10.97 kB / 1.792 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/6.01, allocations: 302.3 kB / 1.792 GB, free: 24.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00489/6.015, allocations: 0.5595 MB / 1.793 GB, free: 24.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/6.017, allocations: 3 MB / 1.796 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004966/6.022, allocations: 223.9 kB / 1.796 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009478/6.023, allocations: 203.5 kB / 1.796 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/6.023, allocations: 3 kB / 1.796 GB, free: 21.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008737/6.032, allocations: 3.031 MB / 1.799 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.267e-05/6.032, allocations: 10.06 kB / 1.799 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/6.033, allocations: 299.1 kB / 1.799 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004651/6.038, allocations: 0.5508 MB / 1.8 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/6.041, allocations: 3.006 MB / 1.803 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003791/6.045, allocations: 222.3 kB / 1.803 GB, free: 35.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008349/6.046, allocations: 200.6 kB / 1.803 GB, free: 35.16 MB / 0.5417 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.00107/6.047, allocations: 305.3 kB / 1.804 GB, free: 34.99 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007653/6.048, allocations: 229.1 kB / 1.804 GB, free: 34.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01326/6.061, allocations: 3.911 MB / 1.808 GB, free: 34.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.593e-05/6.061, allocations: 19.16 kB / 1.808 GB, free: 34.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/6.061, allocations: 0 / 1.808 GB, free: 34.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007845/6.069, allocations: 2.977 MB / 1.811 GB, free: 34.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/6.09, allocations: 7.082 MB / 1.817 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.097e-05/6.09, allocations: 4.688 kB / 1.817 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003946/6.094, allocations: 462.4 kB / 1.818 GB, free: 32.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/6.095, allocations: 318.3 kB / 1.818 GB, free: 32.66 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006481/6.096, allocations: 108.9 kB / 1.818 GB, free: 32.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003882/6.1, allocations: 3.741 MB / 1.822 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/6.1, allocations: 13.3 kB / 1.822 GB, free: 29.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/6.112, allocations: 4.982 MB / 1.827 GB, free: 28.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/6.115, allocations: 0.572 MB / 1.827 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000875/6.116, allocations: 61.09 kB / 1.827 GB, free: 27.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003379/6.119, allocations: 142.9 kB / 1.828 GB, free: 27.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000618/6.12, allocations: 182.2 kB / 1.828 GB, free: 27.85 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004863/6.12, allocations: 194.6 kB / 1.828 GB, free: 27.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002537/6.123, allocations: 1.113 MB / 1.829 GB, free: 27.69 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.61e-07/6.123, allocations: 0 / 1.829 GB, free: 27.69 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01023/6.133, allocations: 2.093 MB / 1.831 GB, free: 27.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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.008995/6.142, allocations: 2.585 MB / 1.834 GB, free: 26.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01291/6.155, allocations: 4.517 MB / 1.838 GB, free: 26.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.702e-05/6.155, allocations: 0 / 1.838 GB, free: 26.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004432/6.16, allocations: 1.629 MB / 1.84 GB, free: 26.29 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009506/6.169, allocations: 1.129 MB / 1.841 GB, free: 26.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01288/6.182, allocations: 4.368 MB / 1.845 GB, free: 25.23 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001858/6.184, allocations: 1.749 MB / 1.847 GB, free: 24.49 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00295/6.187, allocations: 391.2 kB / 1.847 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of SimCode: time 1.533e-06/6.187, allocations: 0 / 1.847 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of Templates: time 0.6076/6.795, allocations: 97.27 MB / 1.942 GB, free: 70.37 MB / 0.5573 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