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.0009189/0.0009188, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009208/0.000921, allocations: 94.81 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2352/0.2352, allocations: 45.16 MB / 383.8 MB, free: 252 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.233e-05/2.235e-05, allocations: 4 kB / 453.2 MB, free: 75.8 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1539, allocations: 63.26 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.732/7.886, allocations: 2.831 GB / 3.335 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/7.886, allocations: 77.5 kB / 3.335 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.017/10.9, allocations: 0.8691 GB / 4.204 GB, free: 9.246 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.783e-06/10.9, allocations: 0 / 4.204 GB, free: 9.246 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002855/10.9, allocations: 55.75 kB / 4.205 GB, free: 9.195 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.01562/10.92, allocations: 3.839 MB / 4.208 GB, free: 5.305 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/10.92, allocations: 8.031 kB / 4.208 GB, free: 5.297 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006252/10.93, allocations: 0.7854 MB / 4.209 GB, free: 4.508 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006173/10.93, allocations: 1.947 MB / 4.211 GB, free: 2.539 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/10.93, allocations: 83.94 kB / 4.211 GB, free: 2.457 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007771/10.93, allocations: 108 kB / 4.211 GB, free: 2.352 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005161/10.94, allocations: 2.342 MB / 4.213 GB, free: 8 kB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3814/11.32, allocations: 2.586 MB / 4.216 GB, free: 45.68 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.006e-05/11.32, allocations: 5.844 kB / 4.216 GB, free: 45.68 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/11.32, allocations: 6.719 kB / 4.216 GB, free: 45.68 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/11.32, allocations: 143.3 kB / 4.216 GB, free: 45.68 MB / 0.573 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.2249/11.54, allocations: 137.5 MB / 4.35 GB, free: 19.52 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/11.55, allocations: 1.433 MB / 4.352 GB, free: 19.49 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/11.55, allocations: 0.8972 MB / 4.353 GB, free: 19.48 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03142/11.58, allocations: 18.85 MB / 4.371 GB, free: 22.52 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001851/11.58, allocations: 1.126 MB / 4.372 GB, free: 22.36 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001297/11.58, allocations: 146.2 kB / 4.372 GB, free: 22.32 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=136): time 4.759e-06/11.58, allocations: 0 / 4.372 GB, free: 22.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=148): time 0.01774/11.6, allocations: 7.356 MB / 4.379 GB, free: 20.76 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/11.6, allocations: 361.3 kB / 4.38 GB, free: 20.36 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/11.6, allocations: 1.066 MB / 4.381 GB, free: 20.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001477/11.6, allocations: 29.61 kB / 4.381 GB, free: 20.16 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007084/11.6, allocations: 0.9433 MB / 4.382 GB, free: 19.84 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/11.6, allocations: 489.5 kB / 4.382 GB, free: 19.6 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/11.6, allocations: 6.812 kB / 4.382 GB, free: 19.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001425/11.6, allocations: 377.4 kB / 4.383 GB, free: 19.29 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/11.6, allocations: 0.9122 MB / 4.384 GB, free: 19.29 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/11.61, allocations: 1.276 MB / 4.385 GB, free: 18.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005146/11.61, allocations: 1.81 MB / 4.387 GB, free: 18.85 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/11.61, allocations: 3.625 kB / 4.387 GB, free: 18.85 MB / 0.6511 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00806/11.62, allocations: 3.547 MB / 4.39 GB, free: 18.63 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001162/11.62, allocations: 3.778 MB / 4.394 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/11.62, allocations: 10.03 kB / 4.394 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/11.62, allocations: 0.5236 MB / 4.394 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/11.62, allocations: 438.6 kB / 4.395 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/11.63, allocations: 2.939 MB / 4.398 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/11.63, allocations: 235.9 kB / 4.398 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002414/11.63, allocations: 90.05 kB / 4.398 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/11.63, allocations: 3.812 kB / 4.398 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006574/11.64, allocations: 3.006 MB / 4.401 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/11.64, allocations: 8.875 kB / 4.401 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/11.64, allocations: 184 kB / 4.401 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/11.64, allocations: 453.8 kB / 4.401 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/11.64, allocations: 1.897 MB / 4.403 GB, free: 26.88 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/11.64, allocations: 222.2 kB / 4.403 GB, free: 26.86 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/11.64, allocations: 94.25 kB / 4.404 GB, free: 26.86 MB / 0.6667 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,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,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete 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.0005004/11.64, allocations: 224.8 kB / 4.404 GB, free: 26.68 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003695/11.64, allocations: 174.9 kB / 4.404 GB, free: 26.6 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007676/11.65, allocations: 6.387 MB / 4.41 GB, free: 26.07 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-05/11.65, allocations: 73.11 kB / 4.41 GB, free: 26.07 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/11.65, allocations: 0 / 4.41 GB, free: 26.07 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00578/11.66, allocations: 5.405 MB / 4.415 GB, free: 25.33 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/11.67, allocations: 8.631 MB / 4.424 GB, free: 24.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/11.67, allocations: 0 / 4.424 GB, free: 24.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/11.67, allocations: 292.2 kB / 4.424 GB, free: 24.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/11.67, allocations: 1.496 MB / 4.426 GB, free: 24.71 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/11.67, allocations: 46.55 kB / 4.426 GB, free: 24.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003072/11.67, allocations: 3.696 MB / 4.429 GB, free: 22.59 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/11.67, allocations: 3.688 kB / 4.429 GB, free: 22.59 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007919/11.68, allocations: 6.488 MB / 4.436 GB, free: 21.99 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/11.68, allocations: 0.6591 MB / 4.436 GB, free: 21.71 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004966/11.68, allocations: 26.66 kB / 4.436 GB, free: 21.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/11.68, allocations: 154.9 kB / 4.436 GB, free: 21.68 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/11.68, allocations: 117.6 kB / 4.437 GB, free: 21.68 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/11.68, allocations: 68.05 kB / 4.437 GB, free: 21.68 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001363/11.69, allocations: 1.053 MB / 4.438 GB, free: 21.57 MB / 0.6667 GB Notification: Performance of sort global known variables: time 2.21e-07/11.69, allocations: 1.422 kB / 4.438 GB, free: 21.57 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.008452/11.69, allocations: 2.618 MB / 4.44 GB, free: 21.45 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.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.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.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) * 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 (149): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.0104/11.7, allocations: 3.086 MB / 4.443 GB, free: 19.8 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.005884/11.71, allocations: 4.304 MB / 4.447 GB, free: 17.29 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/11.71, allocations: 5.562 kB / 4.447 GB, free: 17.29 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.002184/11.71, allocations: 1.978 MB / 4.449 GB, free: 16.24 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004017/11.72, allocations: 0.8045 MB / 4.45 GB, free: 15.8 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006738/11.72, allocations: 4.993 MB / 4.455 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/11.72, allocations: 2.091 MB / 4.457 GB, free: 10.68 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.004026/11.73, allocations: 2.446 MB / 4.459 GB, free: 9.277 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004351/11.73, allocations: 139 kB / 4.46 GB, free: 9.164 MB / 0.6667 GB Notification: Performance of SimCode: time 5.21e-07/11.73, allocations: 0 / 4.46 GB, free: 9.164 MB / 0.6667 GB Notification: Performance of Templates: time 0.4599/12.19, allocations: 72.2 MB / 4.53 GB, free: 135.4 MB / 0.6667 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/jenkins/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