Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 194.6 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 226.5 MB / 244.1 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009501/0.0009503, allocations: 101.4 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3781/0.3781, allocations: 44.82 MB / 392.9 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002762, allocations: 11.98 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3707, allocations: 62.95 MB / 0.5165 GB, free: 37.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.871/6.242, allocations: 2.849 GB / 3.365 GB, free: 136.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/6.242, allocations: 81.95 kB / 3.366 GB, free: 136.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.704/8.947, allocations: 0.8411 GB / 4.207 GB, free: 36.35 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.074e-06/8.947, allocations: 1.312 kB / 4.207 GB, free: 36.35 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0001627/8.947, allocations: 62.14 kB / 4.207 GB, free: 36.34 MB / 0.5574 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.01312/8.96, allocations: 4.019 MB / 4.211 GB, free: 34.44 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/8.96, allocations: 10.66 kB / 4.211 GB, free: 34.44 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006061/8.966, allocations: 0.7932 MB / 4.211 GB, free: 34.31 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02064/8.987, allocations: 13.49 MB / 4.225 GB, free: 33.71 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/8.987, allocations: 162.3 kB / 4.225 GB, free: 33.7 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004634/8.987, allocations: 186.7 kB / 4.225 GB, free: 33.7 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006468/8.994, allocations: 3.299 MB / 4.228 GB, free: 33.22 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.145e-05/8.994, allocations: 13.47 kB / 4.228 GB, free: 33.21 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000227/8.994, allocations: 75.56 kB / 4.228 GB, free: 33.21 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/8.994, allocations: 152.4 kB / 4.228 GB, free: 33.21 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005924/9, allocations: 2.959 MB / 4.231 GB, free: 33.2 MB / 0.5574 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.01409/9.014, allocations: 14.05 MB / 4.245 GB, free: 24.71 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004373/9.019, allocations: 2.079 MB / 4.247 GB, free: 24.67 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/9.021, allocations: 1.162 MB / 4.248 GB, free: 24.66 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04057/9.061, allocations: 27.16 MB / 4.275 GB, free: 22.37 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004211/9.065, allocations: 1.63 MB / 4.276 GB, free: 22.23 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001339/9.067, allocations: 176.8 kB / 4.276 GB, free: 22.15 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 4.548e-06/9.067, allocations: 0 / 4.276 GB, free: 22.15 MB / 0.573 GB Notification: Performance of matching and sorting (n=167): time 0.02053/9.087, allocations: 8.393 MB / 4.285 GB, free: 21.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/9.088, allocations: 257.6 kB / 4.285 GB, free: 20.74 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/9.09, allocations: 1.506 MB / 4.286 GB, free: 20.56 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000232/9.09, allocations: 54.11 kB / 4.286 GB, free: 20.53 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006576/9.091, allocations: 0.8919 MB / 4.287 GB, free: 20.19 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004119/9.091, allocations: 0.5498 MB / 4.288 GB, free: 19.84 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/9.091, allocations: 40.09 kB / 4.288 GB, free: 19.84 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001693/9.091, allocations: 378.4 kB / 4.288 GB, free: 19.52 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/9.093, allocations: 1.03 MB / 4.289 GB, free: 19.19 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/9.095, allocations: 1.448 MB / 4.291 GB, free: 18.4 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003574/9.099, allocations: 2.607 MB / 4.293 GB, free: 17.06 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/9.099, allocations: 0 / 4.293 GB, free: 17.06 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005987/9.105, allocations: 3.209 MB / 4.296 GB, free: 15.84 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002865/9.105, allocations: 436 kB / 4.297 GB, free: 15.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/9.105, allocations: 7.344 kB / 4.297 GB, free: 15.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/9.107, allocations: 0.5355 MB / 4.297 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001982/9.109, allocations: 445.2 kB / 4.298 GB, free: 15.14 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/9.112, allocations: 2.71 MB / 4.3 GB, free: 12.81 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/9.114, allocations: 265.7 kB / 4.301 GB, free: 12.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004339/9.115, allocations: 98.48 kB / 4.301 GB, free: 12.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/9.115, allocations: 2.781 kB / 4.301 GB, free: 12.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00557/9.12, allocations: 2.833 MB / 4.303 GB, free: 11.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/9.12, allocations: 11.69 kB / 4.303 GB, free: 11.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006521/9.121, allocations: 202.6 kB / 4.304 GB, free: 11.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/9.123, allocations: 462.9 kB / 4.304 GB, free: 11.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/9.124, allocations: 1.879 MB / 4.306 GB, free: 9.871 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/9.126, allocations: 263 kB / 4.306 GB, free: 9.812 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002702/9.127, allocations: 92.23 kB / 4.306 GB, free: 9.793 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.001553/9.128, allocations: 0.72 MB / 4.307 GB, free: 9.316 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005183/9.129, allocations: 197.8 kB / 4.307 GB, free: 9.219 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009829/9.139, allocations: 7.561 MB / 4.315 GB, free: 5.879 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/9.139, allocations: 87.67 kB / 4.315 GB, free: 5.824 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/9.139, allocations: 4 kB / 4.315 GB, free: 5.82 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009556/9.148, allocations: 6.675 MB / 4.321 GB, free: 15.81 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/9.166, allocations: 11.4 MB / 4.332 GB, free: 5.922 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/9.166, allocations: 4 kB / 4.332 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/9.167, allocations: 364.1 kB / 4.333 GB, free: 5.625 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/9.17, allocations: 1.173 MB / 4.334 GB, free: 4.621 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/9.17, allocations: 70.27 kB / 4.334 GB, free: 4.562 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/9.173, allocations: 3.19 MB / 4.337 GB, free: 1.445 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/9.173, allocations: 7.938 kB / 4.337 GB, free: 1.438 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3214/9.494, allocations: 7.503 MB / 4.344 GB, free: 65.67 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/9.496, allocations: 0.728 MB / 4.345 GB, free: 65.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/9.497, allocations: 58.16 kB / 4.345 GB, free: 65.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001644/9.498, allocations: 194.6 kB / 4.345 GB, free: 65.58 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002956/9.499, allocations: 155.3 kB / 4.345 GB, free: 65.58 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/9.499, allocations: 78.64 kB / 4.345 GB, free: 65.58 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.001719/9.5, allocations: 1.206 MB / 4.347 GB, free: 65.43 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.11e-07/9.5, allocations: 2.312 kB / 4.347 GB, free: 65.43 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.00902/9.509, allocations: 2.538 MB / 4.349 GB, free: 65.43 MB / 0.5886 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) * 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.01054/9.52, allocations: 2.624 MB / 4.352 GB, free: 65.29 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008112/9.528, allocations: 4.876 MB / 4.356 GB, free: 64.96 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/9.528, allocations: 0 / 4.356 GB, free: 64.96 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003464/9.532, allocations: 2.515 MB / 4.359 GB, free: 64.82 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006145/9.538, allocations: 0.9989 MB / 4.36 GB, free: 64.81 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/9.548, allocations: 8.234 MB / 4.368 GB, free: 61.65 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001639/9.55, allocations: 2.084 MB / 4.37 GB, free: 60.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/9.551, allocations: 190 kB / 4.37 GB, free: 60.89 MB / 0.5886 GB Notification: Performance of SimCode: time 1.052e-06/9.551, allocations: 5.578 kB / 4.37 GB, free: 60.89 MB / 0.5886 GB Notification: Performance of Templates: time 0.1244/9.676, allocations: 111.2 MB / 4.479 GB, free: 51.79 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches