Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|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.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|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.BranchingPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 197.7 kB / 16.79 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.515/1.515, allocations: 226.5 MB / 244.1 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008216/0.0008218, allocations: 94.77 kB / 296.1 MB, free: 6.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4149/0.4149, allocations: 44.83 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003231, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4035, allocations: 62.95 MB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.921/6.325, allocations: 2.848 GB / 3.365 GB, free: 137.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/6.325, allocations: 83.08 kB / 3.365 GB, free: 137.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.628/8.953, allocations: 0.7741 GB / 4.139 GB, free: 38.9 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.994e-06/8.953, allocations: 0 / 4.139 GB, free: 38.9 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001711/8.954, allocations: 61.42 kB / 4.139 GB, free: 38.9 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01384/8.968, allocations: 3.91 MB / 4.143 GB, free: 37.27 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/8.968, allocations: 8.281 kB / 4.143 GB, free: 37.27 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005449/8.973, allocations: 0.7833 MB / 4.144 GB, free: 37.14 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02144/8.995, allocations: 13.5 MB / 4.157 GB, free: 36.56 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/8.995, allocations: 164.2 kB / 4.157 GB, free: 36.55 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005054/8.995, allocations: 182.5 kB / 4.157 GB, free: 36.55 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007157/9.002, allocations: 3.372 MB / 4.161 GB, free: 36.07 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.551e-05/9.003, allocations: 10.19 kB / 4.161 GB, free: 36.07 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002729/9.003, allocations: 80.33 kB / 4.161 GB, free: 36.07 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002139/9.003, allocations: 151.9 kB / 4.161 GB, free: 36.06 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00784/9.011, allocations: 3.185 MB / 4.164 GB, free: 36.05 MB / 0.5573 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.01644/9.027, allocations: 13.8 MB / 4.177 GB, free: 27.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005112/9.032, allocations: 2.078 MB / 4.179 GB, free: 27.76 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/9.034, allocations: 1.169 MB / 4.181 GB, free: 27.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04479/9.079, allocations: 27.16 MB / 4.207 GB, free: 26 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004657/9.084, allocations: 1.638 MB / 4.209 GB, free: 25.87 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001575/9.086, allocations: 176.5 kB / 4.209 GB, free: 25.79 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 8.987e-06/9.086, allocations: 0 / 4.209 GB, free: 25.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02265/9.108, allocations: 8.406 MB / 4.217 GB, free: 24.75 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/9.108, allocations: 253.4 kB / 4.217 GB, free: 24.46 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002628/9.111, allocations: 1.504 MB / 4.219 GB, free: 24.28 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002594/9.111, allocations: 58.8 kB / 4.219 GB, free: 24.25 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009293/9.112, allocations: 0.8704 MB / 4.22 GB, free: 23.92 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006023/9.113, allocations: 0.5508 MB / 4.22 GB, free: 23.57 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/9.113, allocations: 37.28 kB / 4.22 GB, free: 23.57 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002363/9.113, allocations: 381.1 kB / 4.221 GB, free: 23.26 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/9.115, allocations: 1.038 MB / 4.222 GB, free: 23.25 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/9.118, allocations: 1.447 MB / 4.223 GB, free: 22.86 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003969/9.122, allocations: 2.604 MB / 4.226 GB, free: 22.37 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/9.122, allocations: 0 / 4.226 GB, free: 22.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.006344/9.128, allocations: 3.199 MB / 4.229 GB, free: 22.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003069/9.128, allocations: 444.8 kB / 4.229 GB, free: 21.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/9.128, allocations: 9.562 kB / 4.229 GB, free: 21.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/9.131, allocations: 0.5345 MB / 4.23 GB, free: 21.58 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/9.133, allocations: 441.5 kB / 4.23 GB, free: 21.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/9.135, allocations: 2.719 MB / 4.233 GB, free: 19.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/9.137, allocations: 256.5 kB / 4.233 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000371/9.138, allocations: 99.02 kB / 4.233 GB, free: 19.46 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/9.138, allocations: 7.281 kB / 4.233 GB, free: 19.46 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005237/9.143, allocations: 2.826 MB / 4.236 GB, free: 19.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.814e-05/9.143, allocations: 11.06 kB / 4.236 GB, free: 19.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00063/9.144, allocations: 202.5 kB / 4.236 GB, free: 19.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/9.145, allocations: 463.4 kB / 4.236 GB, free: 19.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/9.147, allocations: 1.88 MB / 4.238 GB, free: 17.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002299/9.149, allocations: 248.4 kB / 4.239 GB, free: 17.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/9.149, allocations: 94.52 kB / 4.239 GB, free: 17.69 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001521/9.151, allocations: 0.7188 MB / 4.239 GB, free: 17.43 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004819/9.151, allocations: 203 kB / 4.24 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/9.161, allocations: 7.561 MB / 4.247 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.312e-05/9.161, allocations: 80.52 kB / 4.247 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/9.161, allocations: 0.8125 kB / 4.247 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007446/9.168, allocations: 6.614 MB / 4.253 GB, free: 15.59 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0184/9.187, allocations: 11.39 MB / 4.265 GB, free: 14.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/9.187, allocations: 5.5 kB / 4.265 GB, free: 14.39 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/9.188, allocations: 366.7 kB / 4.265 GB, free: 14.39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/9.191, allocations: 1.204 MB / 4.266 GB, free: 14.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/9.191, allocations: 72.45 kB / 4.266 GB, free: 14.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/9.193, allocations: 3.203 MB / 4.269 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/9.193, allocations: 10.56 kB / 4.269 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009044/9.202, allocations: 7.299 MB / 4.276 GB, free: 11.33 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/9.204, allocations: 0.7325 MB / 4.277 GB, free: 11 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005841/9.204, allocations: 57.48 kB / 4.277 GB, free: 11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/9.206, allocations: 186.9 kB / 4.277 GB, free: 10.98 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003492/9.207, allocations: 160 kB / 4.278 GB, free: 10.97 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/9.207, allocations: 78.55 kB / 4.278 GB, free: 10.97 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002158/9.209, allocations: 1.21 MB / 4.279 GB, free: 10.72 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.71e-07/9.209, allocations: 0 / 4.279 GB, free: 10.72 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009102/9.218, allocations: 2.49 MB / 4.281 GB, free: 10.24 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (179): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01102/9.229, allocations: 2.562 MB / 4.284 GB, free: 9.57 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008861/9.238, allocations: 4.873 MB / 4.288 GB, free: 7.781 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/9.238, allocations: 5.438 kB / 4.288 GB, free: 7.781 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003435/9.242, allocations: 2.516 MB / 4.291 GB, free: 6.699 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006433/9.248, allocations: 0.9319 MB / 4.292 GB, free: 6.473 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/9.258, allocations: 8.167 MB / 4.3 GB, free: 1.977 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001438/9.26, allocations: 2.069 MB / 4.302 GB, free: 1.117 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008112/9.26, allocations: 186.7 kB / 4.302 GB, free: 1.098 MB / 0.573 GB Notification: Performance of SimCode: time 8.31e-07/9.26, allocations: 2.938 kB / 4.302 GB, free: 1.098 MB / 0.573 GB Notification: Performance of Templates: time 0.4249/9.685, allocations: 110.3 MB / 4.41 GB, free: 79.07 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches