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.001658/0.001658, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.4 MB / 223.6 MB, free: 8.949 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.0007537/0.0007537, allocations: 90.41 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3145/0.3145, allocations: 43.56 MB / 363.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003432/0.0003434, allocations: 15.98 kB / 432.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1058, allocations: 58.85 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.268/1.374, allocations: 0.6923 GB / 1.172 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/1.374, allocations: 83.67 kB / 1.172 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.905/3.279, allocations: 0.6178 GB / 1.79 GB, free: 39.24 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.953e-06/3.279, allocations: 0 / 1.79 GB, free: 39.24 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000225/3.279, allocations: 64.39 kB / 1.79 GB, free: 39.23 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.01259/3.292, allocations: 3.479 MB / 1.794 GB, free: 37.58 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/3.292, allocations: 14.33 kB / 1.794 GB, free: 37.58 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003685/3.296, allocations: 470.6 kB / 1.794 GB, free: 37.45 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007982/3.304, allocations: 3.303 MB / 1.797 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/3.304, allocations: 146.3 kB / 1.797 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005408/3.304, allocations: 175.7 kB / 1.798 GB, free: 36.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004504/3.309, allocations: 2.77 MB / 1.8 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.256e-05/3.309, allocations: 10.72 kB / 1.8 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002544/3.309, allocations: 77.34 kB / 1.8 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001789/3.309, allocations: 158.4 kB / 1.8 GB, free: 36.44 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003844/3.313, allocations: 2.356 MB / 1.803 GB, free: 36.43 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.0148/3.328, allocations: 11.64 MB / 1.814 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/3.331, allocations: 1.885 MB / 1.816 GB, free: 29.86 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/3.333, allocations: 1.137 MB / 1.817 GB, free: 29.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002723/3.335, allocations: 2.438 MB / 1.819 GB, free: 27.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002258/3.338, allocations: 1.369 MB / 1.821 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=172): time 4.889e-06/3.338, allocations: 0 / 1.821 GB, free: 27.67 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.0293/3.367, allocations: 12.12 MB / 1.833 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001229/3.367, allocations: 366.6 kB / 1.833 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/3.37, allocations: 1.673 MB / 1.835 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004059/3.37, allocations: 66.52 kB / 1.835 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006895/3.371, allocations: 0.9093 MB / 1.836 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006229/3.371, allocations: 0.6725 MB / 1.836 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/3.371, allocations: 42.62 kB / 1.836 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000121/3.372, allocations: 399.7 kB / 1.837 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/3.373, allocations: 1.097 MB / 1.838 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/3.375, allocations: 1.591 MB / 1.839 GB, free: 23.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003506/3.379, allocations: 2.817 MB / 1.842 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/3.379, allocations: 2.25 kB / 1.842 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005384/3.384, allocations: 3.41 MB / 1.845 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002127/3.384, allocations: 479.8 kB / 1.846 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/3.384, allocations: 7.469 kB / 1.846 GB, free: 21.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007436/3.385, allocations: 306.5 kB / 1.846 GB, free: 21.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002115/3.387, allocations: 0.5612 MB / 1.847 GB, free: 21.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/3.389, allocations: 3.009 MB / 1.85 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00249/3.391, allocations: 221.2 kB / 1.85 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003288/3.392, allocations: 204.8 kB / 1.85 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/3.392, allocations: 3.344 kB / 1.85 GB, free: 18.32 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004772/3.396, allocations: 3.125 MB / 1.853 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/3.396, allocations: 11.16 kB / 1.853 GB, free: 17.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006465/3.397, allocations: 301 kB / 1.853 GB, free: 17.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/3.399, allocations: 0.5532 MB / 1.854 GB, free: 17.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/3.4, allocations: 3.012 MB / 1.857 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/3.403, allocations: 219.8 kB / 1.857 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/3.403, allocations: 204.5 kB / 1.857 GB, free: 14.21 MB / 0.5261 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.001459/3.405, allocations: 0.7048 MB / 1.858 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/3.405, allocations: 226.8 kB / 1.858 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007219/3.412, allocations: 3.967 MB / 1.862 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.609e-05/3.412, allocations: 24.61 kB / 1.862 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/3.412, allocations: 3.938 kB / 1.862 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004387/3.417, allocations: 3.051 MB / 1.865 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0114/3.428, allocations: 7.163 MB / 1.872 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/3.428, allocations: 3.719 kB / 1.872 GB, free: 23.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/3.43, allocations: 460.1 kB / 1.872 GB, free: 23.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007779/3.431, allocations: 327.3 kB / 1.873 GB, free: 23.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002068/3.431, allocations: 111 kB / 1.873 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002424/3.433, allocations: 3.749 MB / 1.877 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/3.433, allocations: 10.77 kB / 1.877 GB, free: 19.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006495/3.44, allocations: 4.675 MB / 1.881 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/3.441, allocations: 0.5867 MB / 1.882 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003996/3.442, allocations: 58.28 kB / 1.882 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/3.443, allocations: 143.9 kB / 1.882 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/3.444, allocations: 186.6 kB / 1.882 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002794/3.444, allocations: 188 kB / 1.882 GB, free: 17.38 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001559/3.446, allocations: 1.122 MB / 1.883 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.91e-07/3.446, allocations: 3.844 kB / 1.883 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007182/3.453, allocations: 2.045 MB / 1.885 GB, free: 14.42 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) * 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.00627/3.459, allocations: 2.507 MB / 1.888 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008138/3.467, allocations: 4.644 MB / 1.892 GB, free: 8.414 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/3.467, allocations: 7.938 kB / 1.892 GB, free: 8.406 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002756/3.47, allocations: 1.656 MB / 1.894 GB, free: 6.918 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007081/3.477, allocations: 1.148 MB / 1.895 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009264/3.486, allocations: 6.072 MB / 1.901 GB, free: 0.6055 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/3.488, allocations: 1.703 MB / 1.903 GB, free: 15.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/3.49, allocations: 392.5 kB / 1.903 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of SimCode: time 7.72e-07/3.49, allocations: 0 / 1.903 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of Templates: time 0.3933/3.883, allocations: 98.56 MB / 1.999 GB, free: 52.06 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