Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001309, allocations: 201.1 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 93.12 kB / 297.5 MB, free: 6.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3841/0.3841, allocations: 44.82 MB / 394.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003314/0.0003311, allocations: 4 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4103, allocations: 62.96 MB / 0.5184 GB, free: 37.43 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.838/6.249, allocations: 2.832 GB / 3.35 GB, free: 154.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/6.249, allocations: 91.12 kB / 3.351 GB, free: 154.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.906/9.155, allocations: 0.8348 GB / 4.185 GB, free: 42.6 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.204e-06/9.155, allocations: 0 / 4.185 GB, free: 42.6 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.000235/9.156, allocations: 59.73 kB / 4.185 GB, free: 42.6 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01371/9.169, allocations: 4.072 MB / 4.189 GB, free: 40.9 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/9.169, allocations: 10.47 kB / 4.189 GB, free: 40.9 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005658/9.175, allocations: 0.7818 MB / 4.19 GB, free: 40.77 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02519/9.2, allocations: 13.46 MB / 4.203 GB, free: 40.19 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002407/9.201, allocations: 166.5 kB / 4.203 GB, free: 40.19 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007634/9.201, allocations: 186.2 kB / 4.204 GB, free: 40.18 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008242/9.21, allocations: 3.319 MB / 4.207 GB, free: 39.72 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.099e-05/9.21, allocations: 10.62 kB / 4.207 GB, free: 39.72 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000393/9.21, allocations: 80.83 kB / 4.207 GB, free: 39.72 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002311/9.21, allocations: 152.6 kB / 4.207 GB, free: 39.71 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00718/9.218, allocations: 3.036 MB / 4.21 GB, free: 39.7 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.01844/9.236, allocations: 14.21 MB / 4.224 GB, free: 31.19 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/9.24, allocations: 2.061 MB / 4.226 GB, free: 31.16 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/9.242, allocations: 1.079 MB / 4.227 GB, free: 31.15 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04023/9.282, allocations: 27.11 MB / 4.253 GB, free: 29.49 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004173/9.287, allocations: 1.586 MB / 4.255 GB, free: 29.36 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00142/9.288, allocations: 173.2 kB / 4.255 GB, free: 29.28 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=146): time 8.276e-06/9.288, allocations: 2.375 kB / 4.255 GB, free: 29.28 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158): time 0.02054/9.309, allocations: 8.272 MB / 4.263 GB, free: 28.24 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/9.309, allocations: 255.8 kB / 4.264 GB, free: 27.96 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002555/9.311, allocations: 1.59 MB / 4.265 GB, free: 27.77 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002126/9.312, allocations: 58.23 kB / 4.265 GB, free: 27.74 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007631/9.312, allocations: 0.8803 MB / 4.266 GB, free: 27.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004244/9.313, allocations: 0.5295 MB / 4.267 GB, free: 27.06 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/9.313, allocations: 35.78 kB / 4.267 GB, free: 27.06 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001959/9.313, allocations: 377.4 kB / 4.267 GB, free: 26.76 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/9.315, allocations: 1.032 MB / 4.268 GB, free: 26.75 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/9.317, allocations: 1.412 MB / 4.269 GB, free: 26.37 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00356/9.32, allocations: 2.564 MB / 4.272 GB, free: 25.88 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/9.32, allocations: 10.59 kB / 4.272 GB, free: 25.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005839/9.326, allocations: 3.201 MB / 4.275 GB, free: 25.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002596/9.326, allocations: 444.2 kB / 4.275 GB, free: 25.12 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/9.327, allocations: 15.12 kB / 4.275 GB, free: 25.11 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/9.329, allocations: 0.6033 MB / 4.276 GB, free: 25.08 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/9.331, allocations: 437 kB / 4.276 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/9.333, allocations: 2.825 MB / 4.279 GB, free: 22.99 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/9.335, allocations: 236.1 kB / 4.279 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/9.335, allocations: 85.8 kB / 4.279 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/9.335, allocations: 7.203 kB / 4.279 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004917/9.34, allocations: 2.82 MB / 4.282 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.833e-05/9.34, allocations: 11.59 kB / 4.282 GB, free: 22.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006334/9.341, allocations: 201.7 kB / 4.282 GB, free: 22.78 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/9.343, allocations: 451.5 kB / 4.283 GB, free: 22.78 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/9.344, allocations: 1.878 MB / 4.285 GB, free: 21.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/9.347, allocations: 236.3 kB / 4.285 GB, free: 21.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/9.347, allocations: 92.31 kB / 4.285 GB, free: 21.18 MB / 0.5886 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 (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_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_b.phase,pipe2.state_b.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 (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001901/9.349, allocations: 0.7114 MB / 4.286 GB, free: 20.92 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006492/9.349, allocations: 196.1 kB / 4.286 GB, free: 20.82 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009392/9.359, allocations: 7.56 MB / 4.293 GB, free: 20.09 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.386e-05/9.359, allocations: 82.72 kB / 4.293 GB, free: 20.08 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/9.359, allocations: 0 / 4.293 GB, free: 20.08 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006998/9.366, allocations: 6.616 MB / 4.3 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/9.379, allocations: 10.52 MB / 4.31 GB, free: 18.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/9.379, allocations: 0 / 4.31 GB, free: 18.49 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/9.38, allocations: 338.3 kB / 4.31 GB, free: 18.48 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002815/9.383, allocations: 1.362 MB / 4.312 GB, free: 18.39 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000319/9.384, allocations: 57.5 kB / 4.312 GB, free: 18.39 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/9.386, allocations: 3.481 MB / 4.315 GB, free: 16.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/9.386, allocations: 0 / 4.315 GB, free: 16.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009638/9.396, allocations: 7.393 MB / 4.322 GB, free: 14.96 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/9.398, allocations: 0.7277 MB / 4.323 GB, free: 14.51 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000639/9.398, allocations: 46.44 kB / 4.323 GB, free: 14.48 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001803/9.4, allocations: 192.3 kB / 4.323 GB, free: 14.44 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/9.4, allocations: 141.8 kB / 4.323 GB, free: 14.41 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/9.401, allocations: 72.14 kB / 4.324 GB, free: 14.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002054/9.403, allocations: 1.271 MB / 4.325 GB, free: 13.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3e-07/9.403, allocations: 3.969 kB / 4.325 GB, free: 13.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009962/9.413, allocations: 2.618 MB / 4.327 GB, free: 13.37 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (166): * Single equations (assignments): 140 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0113/9.424, allocations: 2.749 MB / 4.33 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008969/9.433, allocations: 4.857 MB / 4.335 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/9.433, allocations: 0 / 4.335 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003353/9.436, allocations: 2.315 MB / 4.337 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005539/9.442, allocations: 0.979 MB / 4.338 GB, free: 9.598 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/9.453, allocations: 8.01 MB / 4.346 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00218/9.455, allocations: 2.122 MB / 4.348 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.004926/9.46, allocations: 2.206 MB / 4.35 GB, free: 3.078 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/9.461, allocations: 175.1 kB / 4.35 GB, free: 2.918 MB / 0.5886 GB Notification: Performance of SimCode: time 6.52e-07/9.461, allocations: 0 / 4.35 GB, free: 2.918 MB / 0.5886 GB Notification: Performance of Templates: time 0.4163/9.877, allocations: 85.16 MB / 4.433 GB, free: 69.57 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches