Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008925/0.0008925, allocations: 91.39 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1872/0.1872, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.589e-05, allocations: 8 kB / 460.4 MB, free: 70 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09823, allocations: 63.24 MB / 0.5114 GB, free: 6.77 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.754/6.853, allocations: 2.849 GB / 3.36 GB, free: 139.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/6.853, allocations: 80.09 kB / 3.36 GB, free: 139.4 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.827/9.68, allocations: 0.8826 GB / 4.243 GB, free: 35.46 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.413e-06/9.68, allocations: 2.953 kB / 4.243 GB, free: 35.46 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002059/9.681, allocations: 60.95 kB / 4.243 GB, free: 35.45 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01084/9.691, allocations: 3.777 MB / 4.246 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/9.691, allocations: 10.97 kB / 4.246 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004791/9.696, allocations: 0.7921 MB / 4.247 GB, free: 33.58 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/9.7, allocations: 1.969 MB / 4.249 GB, free: 33.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/9.701, allocations: 165.6 kB / 4.249 GB, free: 33.13 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/9.701, allocations: 187.3 kB / 4.249 GB, free: 33.13 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005918/9.707, allocations: 3.269 MB / 4.253 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.678e-05/9.707, allocations: 8.656 kB / 4.253 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/9.707, allocations: 78.39 kB / 4.253 GB, free: 32.64 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/9.707, allocations: 153.9 kB / 4.253 GB, free: 32.63 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004922/9.712, allocations: 2.842 MB / 4.256 GB, free: 32.62 MB / 0.5573 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.01332/9.726, allocations: 14.07 MB / 4.269 GB, free: 24.14 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003437/9.729, allocations: 1.993 MB / 4.271 GB, free: 24.1 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/9.73, allocations: 1.059 MB / 4.272 GB, free: 24.08 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04229/9.773, allocations: 27.25 MB / 4.299 GB, free: 22.12 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003578/9.776, allocations: 1.627 MB / 4.301 GB, free: 22 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001208/9.778, allocations: 177.5 kB / 4.301 GB, free: 21.91 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 5.049e-06/9.778, allocations: 0 / 4.301 GB, free: 21.91 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.0147/9.792, allocations: 7.046 MB / 4.308 GB, free: 20.92 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/9.792, allocations: 255.3 kB / 4.308 GB, free: 20.63 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/9.794, allocations: 1.317 MB / 4.309 GB, free: 20.46 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001658/9.794, allocations: 57.14 kB / 4.309 GB, free: 20.43 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005798/9.795, allocations: 0.8834 MB / 4.31 GB, free: 20.09 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/9.795, allocations: 0.5527 MB / 4.311 GB, free: 19.74 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/9.795, allocations: 39.25 kB / 4.311 GB, free: 19.73 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001444/9.795, allocations: 382.2 kB / 4.311 GB, free: 19.43 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/9.797, allocations: 0.9282 MB / 4.312 GB, free: 19.42 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/9.798, allocations: 1.335 MB / 4.313 GB, free: 19.02 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/9.799, allocations: 1.163 MB / 4.314 GB, free: 18.92 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/9.799, allocations: 2.844 kB / 4.314 GB, free: 18.92 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004379/9.804, allocations: 2.983 MB / 4.317 GB, free: 18.63 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00112/9.805, allocations: 3.846 MB / 4.321 GB, free: 14.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/9.805, allocations: 15.16 kB / 4.321 GB, free: 14.55 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002068/9.807, allocations: 0.5119 MB / 4.322 GB, free: 14.51 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/9.809, allocations: 450.5 kB / 4.322 GB, free: 14.48 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/9.811, allocations: 2.71 MB / 4.325 GB, free: 12.39 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/9.813, allocations: 265.9 kB / 4.325 GB, free: 12.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002521/9.813, allocations: 97.19 kB / 4.325 GB, free: 12.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/9.813, allocations: 3.938 kB / 4.325 GB, free: 12.35 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003654/9.817, allocations: 2.621 MB / 4.327 GB, free: 11.44 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/9.817, allocations: 10.47 kB / 4.327 GB, free: 11.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000505/9.817, allocations: 193 kB / 4.328 GB, free: 11.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/9.819, allocations: 463.1 kB / 4.328 GB, free: 11.33 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009914/9.82, allocations: 1.871 MB / 4.33 GB, free: 9.641 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/9.822, allocations: 261 kB / 4.33 GB, free: 9.582 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/9.822, allocations: 96.16 kB / 4.33 GB, free: 9.562 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 () * 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.0004604/9.822, allocations: 288.6 kB / 4.331 GB, free: 9.305 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003309/9.823, allocations: 201.7 kB / 4.331 GB, free: 9.203 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00726/9.83, allocations: 7.463 MB / 4.338 GB, free: 5.855 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/9.83, allocations: 81.66 kB / 4.338 GB, free: 5.832 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/9.83, allocations: 3.953 kB / 4.338 GB, free: 5.828 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00547/9.836, allocations: 6.508 MB / 4.344 GB, free: 1.211 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/9.849, allocations: 11.27 MB / 4.355 GB, free: 7.406 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/9.849, allocations: 4 kB / 4.355 GB, free: 7.402 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/9.851, allocations: 366.1 kB / 4.356 GB, free: 7.105 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/9.853, allocations: 1.311 MB / 4.357 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/9.853, allocations: 66.55 kB / 4.357 GB, free: 5.949 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/9.856, allocations: 3.199 MB / 4.36 GB, free: 2.816 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/9.856, allocations: 7.938 kB / 4.36 GB, free: 2.809 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008307/9.864, allocations: 7.282 MB / 4.367 GB, free: 11.85 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/9.865, allocations: 0.7396 MB / 4.368 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004423/9.866, allocations: 55.72 kB / 4.368 GB, free: 11.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/9.867, allocations: 195.6 kB / 4.368 GB, free: 11 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002772/9.868, allocations: 150.6 kB / 4.369 GB, free: 10.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/9.868, allocations: 75.59 kB / 4.369 GB, free: 10.83 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001763/9.87, allocations: 1.205 MB / 4.37 GB, free: 9.711 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/9.87, allocations: 0 / 4.37 GB, free: 9.711 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008159/9.878, allocations: 2.658 MB / 4.372 GB, free: 7.109 MB / 0.6042 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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.009366/9.887, allocations: 2.79 MB / 4.375 GB, free: 4.961 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006576/9.894, allocations: 4.627 MB / 4.38 GB, free: 0.6602 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/9.894, allocations: 0 / 4.38 GB, free: 0.6602 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.2965/10.19, allocations: 2.9 MB / 4.382 GB, free: 79.89 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004702/10.2, allocations: 0.993 MB / 4.383 GB, free: 79.88 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007196/10.2, allocations: 5.669 MB / 4.389 GB, free: 78.75 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/10.2, allocations: 2.194 MB / 4.391 GB, free: 77.98 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.004595/10.21, allocations: 2.48 MB / 4.394 GB, free: 77.96 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/10.21, allocations: 158.3 kB / 4.394 GB, free: 77.96 MB / 0.6042 GB Notification: Performance of SimCode: time 7.51e-07/10.21, allocations: 0 / 4.394 GB, free: 77.96 MB / 0.6042 GB Notification: Performance of Templates: time 0.09951/10.31, allocations: 89.03 MB / 4.481 GB, free: 74.09 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches