Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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.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_3.2.3_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_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003251/0.003251, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 92.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2958/0.2958, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.611e-05, allocations: 8.203 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4089, allocations: 58.85 MB / 477.1 MB, free: 5.262 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.602/9.011, allocations: 2.829 GB / 3.295 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/9.011, allocations: 73.53 kB / 3.295 GB, free: 103 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 4.706/13.72, allocations: 0.8965 GB / 4.191 GB, free: 30.25 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.134e-06/13.72, allocations: 0 / 4.191 GB, free: 30.25 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0003197/13.72, allocations: 63.22 kB / 4.191 GB, free: 30.24 MB / 0.5265 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.01814/13.74, allocations: 4.031 MB / 4.195 GB, free: 28.01 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/13.74, allocations: 11.69 kB / 4.195 GB, free: 28.01 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009225/13.75, allocations: 0.8781 MB / 4.196 GB, free: 27.79 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009025/13.75, allocations: 2.068 MB / 4.198 GB, free: 26.52 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/13.76, allocations: 95.84 kB / 4.198 GB, free: 26.43 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/13.76, allocations: 116 kB / 4.198 GB, free: 26.32 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008306/13.76, allocations: 2.675 MB / 4.201 GB, free: 23.94 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009707/13.77, allocations: 2.898 MB / 4.204 GB, free: 21.34 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.922e-05/13.77, allocations: 7.938 kB / 4.204 GB, free: 21.33 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004036/13.77, allocations: 4 kB / 4.204 GB, free: 21.33 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/13.78, allocations: 169.6 kB / 4.204 GB, free: 21.18 MB / 0.5265 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.8698/14.64, allocations: 126.2 MB / 4.327 GB, free: 22.87 MB / 0.5733 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004702/14.65, allocations: 2.083 MB / 4.329 GB, free: 22.27 MB / 0.5733 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/14.65, allocations: 0.9844 MB / 4.33 GB, free: 22.26 MB / 0.5733 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05449/14.71, allocations: 17 MB / 4.347 GB, free: 27.19 MB / 0.589 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002966/14.71, allocations: 1.19 MB / 4.348 GB, free: 27.03 MB / 0.589 GB Notification: Performance of pre-optimization done (n=153): time 7.034e-06/14.71, allocations: 0 / 4.348 GB, free: 27.03 MB / 0.589 GB Notification: Performance of matching and sorting (n=169): time 0.03332/14.74, allocations: 7.968 MB / 4.356 GB, free: 25.47 MB / 0.589 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002208/14.74, allocations: 356.4 kB / 4.356 GB, free: 25.06 MB / 0.589 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/14.75, allocations: 1.151 MB / 4.357 GB, free: 24.9 MB / 0.589 GB Notification: Performance of collectPreVariables (initialization): time 0.0005572/14.75, allocations: 25.7 kB / 4.357 GB, free: 24.87 MB / 0.589 GB Notification: Performance of collectInitialEqns (initialization): time 0.001103/14.75, allocations: 0.9933 MB / 4.358 GB, free: 24.45 MB / 0.589 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009647/14.75, allocations: 0.5454 MB / 4.359 GB, free: 24.17 MB / 0.589 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/14.75, allocations: 6.812 kB / 4.359 GB, free: 24.17 MB / 0.589 GB Notification: Performance of setup shared object (initialization): time 0.000252/14.75, allocations: 388.4 kB / 4.359 GB, free: 23.86 MB / 0.589 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/14.75, allocations: 1.007 MB / 4.36 GB, free: 23.85 MB / 0.589 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002915/14.75, allocations: 1.421 MB / 4.362 GB, free: 23.39 MB / 0.589 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01941/14.77, allocations: 2.797 MB / 4.364 GB, free: 23.33 MB / 0.589 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.66e-05/14.77, allocations: 2.219 kB / 4.364 GB, free: 23.33 MB / 0.589 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02474/14.8, allocations: 4.431 MB / 4.369 GB, free: 23.13 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 0.001867/14.8, allocations: 4.339 MB / 4.373 GB, free: 18.58 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.974e-05/14.8, allocations: 10.53 kB / 4.373 GB, free: 18.58 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/14.8, allocations: 217.5 kB / 4.373 GB, free: 18.55 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004331/14.81, allocations: 0.5164 MB / 4.374 GB, free: 18.54 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/14.81, allocations: 2.453 MB / 4.376 GB, free: 16.46 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004557/14.81, allocations: 272.4 kB / 4.376 GB, free: 16.43 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006756/14.81, allocations: 102.6 kB / 4.376 GB, free: 16.43 MB / 0.589 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/14.81, allocations: 7.312 kB / 4.376 GB, free: 16.43 MB / 0.589 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02278/14.84, allocations: 4.079 MB / 4.38 GB, free: 16.31 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.181e-05/14.84, allocations: 11.59 kB / 4.38 GB, free: 16.31 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008574/14.84, allocations: 216.7 kB / 4.381 GB, free: 16.28 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/14.84, allocations: 0.5093 MB / 4.381 GB, free: 16.27 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002309/14.84, allocations: 2.453 MB / 4.383 GB, free: 14.19 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003537/14.85, allocations: 247.5 kB / 4.384 GB, free: 14.16 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004427/14.85, allocations: 104.7 kB / 4.384 GB, free: 14.16 MB / 0.589 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete 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.0008544/14.85, allocations: 233.3 kB / 4.384 GB, free: 13.99 MB / 0.589 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006509/14.85, allocations: 190.7 kB / 4.384 GB, free: 13.9 MB / 0.589 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/14.86, allocations: 6.39 MB / 4.39 GB, free: 13.37 MB / 0.589 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.838e-05/14.86, allocations: 72.31 kB / 4.39 GB, free: 13.37 MB / 0.589 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/14.86, allocations: 0 / 4.39 GB, free: 13.37 MB / 0.589 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01154/14.88, allocations: 5.365 MB / 4.396 GB, free: 12.62 MB / 0.589 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02138/14.9, allocations: 9.148 MB / 4.405 GB, free: 11.84 MB / 0.589 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/14.9, allocations: 5.156 kB / 4.405 GB, free: 11.84 MB / 0.589 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/14.9, allocations: 364.8 kB / 4.405 GB, free: 11.84 MB / 0.589 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/14.9, allocations: 323.5 kB / 4.405 GB, free: 11.79 MB / 0.589 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004735/14.9, allocations: 37.09 kB / 4.405 GB, free: 11.79 MB / 0.589 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002401/14.91, allocations: 2.63 MB / 4.408 GB, free: 9.703 MB / 0.589 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/14.91, allocations: 7.141 kB / 4.408 GB, free: 9.699 MB / 0.589 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/14.92, allocations: 6.356 MB / 4.414 GB, free: 9.113 MB / 0.589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002463/14.92, allocations: 0.7073 MB / 4.415 GB, free: 8.816 MB / 0.589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008214/14.92, allocations: 24.61 kB / 4.415 GB, free: 8.816 MB / 0.589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003314/14.93, allocations: 174.7 kB / 4.415 GB, free: 8.793 MB / 0.589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000518/14.93, allocations: 139.8 kB / 4.415 GB, free: 8.789 MB / 0.589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/14.93, allocations: 74.56 kB / 4.415 GB, free: 8.789 MB / 0.589 GB Notification: Performance of sorting global known variables: time 0.002367/14.93, allocations: 1.1 MB / 4.416 GB, free: 8.68 MB / 0.589 GB Notification: Performance of sort global known variables: time 6.61e-07/14.93, allocations: 0 / 4.416 GB, free: 8.68 MB / 0.589 GB Notification: Performance of remove unused functions: time 0.01276/14.94, allocations: 2.737 MB / 4.419 GB, free: 8.555 MB / 0.589 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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.0153/14.96, allocations: 3.149 MB / 4.422 GB, free: 8.094 MB / 0.589 GB Notification: Performance of simCode: created initialization part: time 0.01177/14.97, allocations: 4.681 MB / 4.427 GB, free: 7.789 MB / 0.589 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/14.97, allocations: 0 / 4.427 GB, free: 7.789 MB / 0.589 GB Notification: Performance of simCode: created simulation system equations: time 0.004984/14.97, allocations: 2.158 MB / 4.429 GB, free: 7.18 MB / 0.589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007822/14.98, allocations: 0.8618 MB / 4.43 GB, free: 6.699 MB / 0.589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/15, allocations: 5.49 MB / 4.435 GB, free: 2.773 MB / 0.589 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002584/15, allocations: 2.146 MB / 4.437 GB, free: 1.184 MB / 0.589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001526/15, allocations: 207.5 kB / 4.437 GB, free: 1.012 MB / 0.589 GB Notification: Performance of SimCode: time 1.382e-06/15, allocations: 0 / 4.437 GB, free: 1.012 MB / 0.589 GB Notification: Performance of Templates: time 0.6667/15.67, allocations: 114.2 MB / 4.549 GB, free: 99.6 MB / 0.6046 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches