Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009522/0.0009522, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 244.1 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008254/0.0008252, allocations: 100.3 kB / 296.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3153/0.3153, allocations: 44.82 MB / 393 MB, free: 35.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.000276, allocations: 4 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2952, allocations: 62.97 MB / 0.5165 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9303/1.226, allocations: 0.5627 GB / 1.079 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/1.226, allocations: 79.72 kB / 1.079 GB, free: 24 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.956/3.182, allocations: 0.5628 GB / 1.642 GB, free: 45.45 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.224e-06/3.182, allocations: 1.375 kB / 1.642 GB, free: 45.45 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.00033/3.183, allocations: 64.16 kB / 1.642 GB, free: 45.43 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01194/3.195, allocations: 3.248 MB / 1.645 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/3.195, allocations: 10.97 kB / 1.645 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003948/3.199, allocations: 462.1 kB / 1.646 GB, free: 43.77 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009515/3.208, allocations: 3.421 MB / 1.649 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/3.208, allocations: 145.9 kB / 1.649 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/3.21, allocations: 172.7 kB / 1.649 GB, free: 43.16 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00695/3.217, allocations: 2.787 MB / 1.652 GB, free: 42.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/3.217, allocations: 10.38 kB / 1.652 GB, free: 42.68 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006272/3.217, allocations: 86.72 kB / 1.652 GB, free: 42.68 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002062/3.218, allocations: 152 kB / 1.652 GB, free: 42.67 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004845/3.222, allocations: 2.362 MB / 1.655 GB, free: 42.63 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.01942/3.242, allocations: 11.68 MB / 1.666 GB, free: 36.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00313/3.245, allocations: 1.88 MB / 1.668 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/3.247, allocations: 1.138 MB / 1.669 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008536/3.248, allocations: 0.5117 MB / 1.67 GB, free: 35.01 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002308/3.25, allocations: 1.372 MB / 1.671 GB, free: 34.47 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 6.372e-06/3.25, allocations: 0 / 1.671 GB, free: 34.47 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 5: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.03285/3.283, allocations: 12.16 MB / 1.683 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/3.283, allocations: 359.2 kB / 1.683 GB, free: 29.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003259/3.286, allocations: 1.674 MB / 1.685 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000472/3.287, allocations: 64.83 kB / 1.685 GB, free: 28.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008232/3.288, allocations: 0.9157 MB / 1.686 GB, free: 28.08 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/3.288, allocations: 0.6756 MB / 1.686 GB, free: 27.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002953/3.289, allocations: 43.06 kB / 1.686 GB, free: 27.53 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001553/3.289, allocations: 392.2 kB / 1.687 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001957/3.291, allocations: 1.106 MB / 1.688 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/3.293, allocations: 1.599 MB / 1.689 GB, free: 25.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004022/3.297, allocations: 2.819 MB / 1.692 GB, free: 24.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.42e-05/3.297, allocations: 7.906 kB / 1.692 GB, free: 24.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006036/3.303, allocations: 3.405 MB / 1.696 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002385/3.304, allocations: 473.6 kB / 1.696 GB, free: 22.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/3.304, allocations: 17.16 kB / 1.696 GB, free: 22.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008033/3.304, allocations: 304.2 kB / 1.696 GB, free: 22.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00239/3.307, allocations: 0.5689 MB / 1.697 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/3.308, allocations: 3.007 MB / 1.7 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002984/3.311, allocations: 220.4 kB / 1.7 GB, free: 18.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00068/3.312, allocations: 208.3 kB / 1.7 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/3.312, allocations: 7.938 kB / 1.7 GB, free: 18.45 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006199/3.318, allocations: 3.134 MB / 1.703 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.003e-05/3.318, allocations: 8 kB / 1.703 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007091/3.319, allocations: 306.3 kB / 1.704 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002398/3.322, allocations: 0.5662 MB / 1.704 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/3.323, allocations: 3.005 MB / 1.707 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002946/3.326, allocations: 228.2 kB / 1.707 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006088/3.327, allocations: 201.2 kB / 1.707 GB, free: 11.52 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 () * 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.002005/3.329, allocations: 0.7037 MB / 1.708 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007772/3.33, allocations: 229.3 kB / 1.708 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009448/3.339, allocations: 4.84 MB / 1.713 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/3.339, allocations: 20 kB / 1.713 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/3.339, allocations: 3.719 kB / 1.713 GB, free: 6.719 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004382/3.344, allocations: 3.06 MB / 1.716 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/3.358, allocations: 7.37 MB / 1.723 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/3.358, allocations: 19.91 kB / 1.723 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/3.36, allocations: 468.1 kB / 1.724 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008978/3.361, allocations: 323 kB / 1.724 GB, free: 13.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003951/3.362, allocations: 116 kB / 1.724 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002603/3.364, allocations: 3.759 MB / 1.728 GB, free: 9.129 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/3.364, allocations: 16.16 kB / 1.728 GB, free: 9.113 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008323/3.373, allocations: 4.704 MB / 1.732 GB, free: 4.836 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/3.374, allocations: 0.5692 MB / 1.733 GB, free: 4.324 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007738/3.375, allocations: 63.47 kB / 1.733 GB, free: 4.266 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/3.377, allocations: 141.7 kB / 1.733 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003763/3.378, allocations: 194.9 kB / 1.733 GB, free: 4.016 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003742/3.378, allocations: 191.9 kB / 1.734 GB, free: 3.848 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002074/3.38, allocations: 1.118 MB / 1.735 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.81e-07/3.38, allocations: 0 / 1.735 GB, free: 2.895 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007209/3.387, allocations: 1.868 MB / 1.736 GB, free: 1.062 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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.0063/3.394, allocations: 2.214 MB / 1.739 GB, free: 15.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01001/3.404, allocations: 4.648 MB / 1.743 GB, free: 11.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.637e-05/3.404, allocations: 4 kB / 1.743 GB, free: 11.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00318/3.407, allocations: 1.672 MB / 1.745 GB, free: 9.793 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008484/3.416, allocations: 1.154 MB / 1.746 GB, free: 8.957 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009837/3.425, allocations: 6.088 MB / 1.752 GB, free: 3.477 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001308/3.427, allocations: 1.698 MB / 1.754 GB, free: 2.062 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002133/3.429, allocations: 470.1 kB / 1.754 GB, free: 1.68 MB / 0.573 GB Notification: Performance of SimCode: time 1.794e-06/3.429, allocations: 0 / 1.754 GB, free: 1.68 MB / 0.573 GB Notification: Performance of Templates: time 0.448/3.877, allocations: 97.11 MB / 1.849 GB, free: 64.37 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes17/BranchingPipes17.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches