Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001653/0.001653, allocations: 197.7 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 226.5 MB / 244.1 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008988/0.0008989, allocations: 96.41 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3528/0.3528, allocations: 44.81 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002908, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.358, allocations: 62.95 MB / 0.5165 GB, free: 36.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.697/6.055, allocations: 2.836 GB / 3.352 GB, free: 150 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/6.055, allocations: 81.27 kB / 3.352 GB, free: 149.9 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.624/8.679, allocations: 0.8693 GB / 4.222 GB, free: 39.7 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.773e-06/8.679, allocations: 0 / 4.222 GB, free: 39.7 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001811/8.679, allocations: 72.58 kB / 4.222 GB, free: 39.68 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01399/8.693, allocations: 4.292 MB / 4.226 GB, free: 37.82 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/8.693, allocations: 7.188 kB / 4.226 GB, free: 37.82 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006196/8.7, allocations: 0.8802 MB / 4.227 GB, free: 37.68 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01992/8.72, allocations: 13.59 MB / 4.24 GB, free: 37.08 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/8.72, allocations: 183.1 kB / 4.24 GB, free: 37.07 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004551/8.72, allocations: 204.2 kB / 4.24 GB, free: 37.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0071/8.727, allocations: 3.724 MB / 4.244 GB, free: 36.55 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.574e-05/8.727, allocations: 7.688 kB / 4.244 GB, free: 36.55 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002618/8.728, allocations: 92.25 kB / 4.244 GB, free: 36.55 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/8.728, allocations: 169.5 kB / 4.244 GB, free: 36.54 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006815/8.735, allocations: 3.445 MB / 4.248 GB, free: 36.53 MB / 0.573 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.01704/8.752, allocations: 15.57 MB / 4.263 GB, free: 27.2 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004998/8.757, allocations: 2.296 MB / 4.265 GB, free: 27.16 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/8.759, allocations: 1.18 MB / 4.266 GB, free: 27.15 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04183/8.8, allocations: 27.1 MB / 4.293 GB, free: 25.19 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004933/8.805, allocations: 1.734 MB / 4.294 GB, free: 25.05 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=163): time 5.64e-06/8.805, allocations: 0 / 4.294 GB, free: 25.05 MB / 0.5886 GB Notification: Performance of matching and sorting (n=179): time 0.02501/8.83, allocations: 9.067 MB / 4.303 GB, free: 23.92 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001414/8.831, allocations: 253.3 kB / 4.303 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002797/8.833, allocations: 1.701 MB / 4.305 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.00025/8.834, allocations: 59.2 kB / 4.305 GB, free: 23.42 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008235/8.835, allocations: 0.9769 MB / 4.306 GB, free: 23.04 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/8.835, allocations: 0.6031 MB / 4.307 GB, free: 22.65 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/8.835, allocations: 42.88 kB / 4.307 GB, free: 22.64 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001976/8.836, allocations: 388.3 kB / 4.307 GB, free: 22.34 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002159/8.838, allocations: 1.148 MB / 4.308 GB, free: 22.32 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/8.84, allocations: 1.585 MB / 4.31 GB, free: 21.86 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004338/8.844, allocations: 2.836 MB / 4.313 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/8.844, allocations: 3.75 kB / 4.313 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.006167/8.851, allocations: 3.368 MB / 4.316 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002884/8.851, allocations: 493.2 kB / 4.316 GB, free: 20.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/8.851, allocations: 11.75 kB / 4.316 GB, free: 20.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008671/8.852, allocations: 251.9 kB / 4.317 GB, free: 20.37 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/8.854, allocations: 0.5059 MB / 4.317 GB, free: 20.37 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/8.855, allocations: 2.433 MB / 4.319 GB, free: 18.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002555/8.858, allocations: 274 kB / 4.32 GB, free: 18.26 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003016/8.858, allocations: 104.5 kB / 4.32 GB, free: 18.26 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/8.858, allocations: 3.531 kB / 4.32 GB, free: 18.26 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00562/8.864, allocations: 3.094 MB / 4.323 GB, free: 18.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/8.864, allocations: 12.53 kB / 4.323 GB, free: 18.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008032/8.865, allocations: 245 kB / 4.323 GB, free: 18.06 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/8.867, allocations: 0.5102 MB / 4.324 GB, free: 18.03 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/8.868, allocations: 2.432 MB / 4.326 GB, free: 15.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/8.871, allocations: 271.6 kB / 4.326 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/8.871, allocations: 102.9 kB / 4.326 GB, free: 15.91 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001702/8.873, allocations: 0.7542 MB / 4.327 GB, free: 15.61 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005497/8.873, allocations: 222.2 kB / 4.327 GB, free: 15.5 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009817/8.883, allocations: 7.738 MB / 4.335 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-05/8.883, allocations: 80.78 kB / 4.335 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/8.883, allocations: 0 / 4.335 GB, free: 13.18 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007656/8.891, allocations: 6.766 MB / 4.341 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/8.905, allocations: 11.01 MB / 4.352 GB, free: 5.348 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/8.905, allocations: 0 / 4.352 GB, free: 5.348 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/8.907, allocations: 426.7 kB / 4.353 GB, free: 5.305 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/8.908, allocations: 369.9 kB / 4.353 GB, free: 5.184 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003383/8.909, allocations: 67 kB / 4.353 GB, free: 5.152 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/8.91, allocations: 2.523 MB / 4.356 GB, free: 2.738 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/8.91, allocations: 0 / 4.356 GB, free: 2.738 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/8.924, allocations: 7.484 MB / 4.363 GB, free: 12.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001798/8.926, allocations: 0.7753 MB / 4.364 GB, free: 11.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007629/8.927, allocations: 54.19 kB / 4.364 GB, free: 11.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002148/8.929, allocations: 208.5 kB / 4.364 GB, free: 11.71 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/8.929, allocations: 156.1 kB / 4.364 GB, free: 11.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002444/8.93, allocations: 79.25 kB / 4.364 GB, free: 11.55 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.00256/8.932, allocations: 1.341 MB / 4.365 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/8.932, allocations: 0 / 4.365 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01164/8.944, allocations: 2.798 MB / 4.368 GB, free: 7.668 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.medium.phase) * 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 (202): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01299/8.957, allocations: 2.862 MB / 4.371 GB, free: 5.469 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01095/8.968, allocations: 5.326 MB / 4.376 GB, free: 0.7344 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/8.968, allocations: 0 / 4.376 GB, free: 0.7344 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.2962/9.264, allocations: 2.892 MB / 4.379 GB, free: 68.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005859/9.27, allocations: 1.05 MB / 4.38 GB, free: 68.56 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/9.282, allocations: 8.725 MB / 4.388 GB, free: 65.37 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/9.284, allocations: 2.176 MB / 4.391 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009995/9.285, allocations: 222.3 kB / 4.391 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of SimCode: time 1.192e-06/9.285, allocations: 0 / 4.391 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of Templates: time 0.1456/9.43, allocations: 119.2 MB / 4.507 GB, free: 56.57 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches