Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001613/0.001613, allocations: 111.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2118/0.2118, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 76.06 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2941, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.09963/0.3938, allocations: 112.3 MB / 0.6413 GB, free: 1.113 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04673/0.4406, allocations: 38.95 MB / 0.6793 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002748/0.4433, allocations: 99.44 kB / 0.6794 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.447, allocations: 1.355 MB / 0.6807 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.02046/0.4674, allocations: 8.416 MB / 0.689 GB, free: 168 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0181/0.4856, allocations: 8.148 MB / 0.6969 GB, free: 8.023 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.009056/0.4946, allocations: 7.514 MB / 0.7043 GB, free: 500 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002849/0.4975, allocations: 1.732 MB / 0.7059 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005195/0.5027, allocations: 2.979 MB / 0.7089 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2856/0.7883, allocations: 12.3 MB / 0.7209 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.7895, allocations: 260.4 kB / 0.7211 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01941/0.8089, allocations: 10.24 MB / 0.7311 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.8104, allocations: 1.02 MB / 0.7321 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002068/0.8125, allocations: 1.595 MB / 0.7337 GB, free: 26.01 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01789/0.8303, allocations: 9.784 MB / 0.7432 GB, free: 25.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.8304, allocations: 3.688 kB / 0.7432 GB, free: 25.82 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.024e-06/0.8304, allocations: 3.625 kB / 0.7432 GB, free: 25.82 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.483e-05/0.8305, allocations: 2.625 kB / 0.7432 GB, free: 25.82 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.013/0.8435, allocations: 4.456 MB / 0.7476 GB, free: 23.96 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.8435, allocations: 7.938 kB / 0.7476 GB, free: 23.96 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006336/0.8499, allocations: 0.8577 MB / 0.7484 GB, free: 23.81 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.8608, allocations: 6.81 MB / 0.7551 GB, free: 23.13 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001804/0.861, allocations: 193.5 kB / 0.7553 GB, free: 23.12 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004142/0.8614, allocations: 220.1 kB / 0.7555 GB, free: 23.12 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007118/0.8686, allocations: 3.783 MB / 0.7592 GB, free: 22.63 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/0.8686, allocations: 10.09 kB / 0.7592 GB, free: 22.63 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002439/0.8689, allocations: 105.4 kB / 0.7593 GB, free: 22.62 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/0.8691, allocations: 203.3 kB / 0.7595 GB, free: 22.62 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007347/0.8765, allocations: 3.515 MB / 0.7629 GB, free: 22.58 MB / 0.5606 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.01743/0.8939, allocations: 16.78 MB / 0.7793 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006108/0.9001, allocations: 3.082 MB / 0.7823 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001873/0.9019, allocations: 1.345 MB / 0.7836 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04652/0.9485, allocations: 27.14 MB / 0.8101 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005402/0.9539, allocations: 1.827 MB / 0.8119 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=192): time 5.23e-06/0.9539, allocations: 2.406 kB / 0.8119 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of matching and sorting (n=212): time 0.02887/0.9828, allocations: 9.96 MB / 0.8216 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.9829, allocations: 188.1 kB / 0.8218 GB, free: 6.648 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.9853, allocations: 1.7 MB / 0.8235 GB, free: 5.324 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002671/0.9855, allocations: 64.2 kB / 0.8235 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008074/0.9864, allocations: 1.051 MB / 0.8246 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006399/0.987, allocations: 0.7088 MB / 0.8253 GB, free: 4.023 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008602/0.9879, allocations: 499.1 kB / 0.8257 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.988, allocations: 301.1 kB / 0.826 GB, free: 3.41 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.9904, allocations: 1.288 MB / 0.8273 GB, free: 2.539 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002898/0.9933, allocations: 1.843 MB / 0.8291 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005568/0.9989, allocations: 3.249 MB / 0.8323 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.727e-05/0.999, allocations: 8 kB / 0.8323 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of matching and sorting (n=312) (initialization): time 0.00804/1.007, allocations: 3.806 MB / 0.836 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.595e-05/1.007, allocations: 74.27 kB / 0.836 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.584e-05/1.007, allocations: 20.09 kB / 0.8361 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/1.008, allocations: 340.7 kB / 0.8364 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/1.011, allocations: 0.5936 MB / 0.837 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002034/1.013, allocations: 3.111 MB / 0.84 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002398/1.016, allocations: 151.7 kB / 0.8402 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003878/1.016, allocations: 123.8 kB / 0.8403 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003598/1.02, allocations: 1.715 MB / 0.8419 GB, free: 6.137 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002979/1.023, allocations: 1.773 MB / 0.8437 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005295/1.028, allocations: 3.114 MB / 0.8467 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-05/1.028, allocations: 4 kB / 0.8467 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=312) (initialization_lambda0): time 0.007325/1.035, allocations: 3.662 MB / 0.8503 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.124e-05/1.035, allocations: 75.39 kB / 0.8504 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/1.035, allocations: 19.98 kB / 0.8504 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/1.037, allocations: 346.4 kB / 0.8507 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/1.039, allocations: 0.5805 MB / 0.8513 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/1.041, allocations: 3.104 MB / 0.8543 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/1.043, allocations: 148.1 kB / 0.8545 GB, free: 8.891 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/1.044, allocations: 120 kB / 0.8546 GB, free: 8.773 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,junctionVolume.medium.phase,junctionIdeal.medium.phase,valveOpening2.nextEventScaled,valveOpening2.nextEvent,$PRE.valveOpening2.nextEvent,valveOpening2.last,valveOpening2.b,valveOpening2.a,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe3.statesFM[2].phase,pipe2.statesFM[2].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition2,$whenCondition1,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (292): * Single equations (assignments): 285 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,1), (1,1), (1,1), (1,6), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0008121/1.044, allocations: 414.4 kB / 0.855 GB, free: 8.383 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006751/1.045, allocations: 237.1 kB / 0.8552 GB, free: 8.148 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/1.057, allocations: 8.154 MB / 0.8632 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009818/1.067, allocations: 7.112 MB / 0.8701 GB, free: 8.617 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/1.067, allocations: 0 / 0.8701 GB, free: 8.617 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/1.068, allocations: 0.6931 MB / 0.8708 GB, free: 7.902 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005957/1.069, allocations: 91.44 kB / 0.8709 GB, free: 7.812 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.071, allocations: 151.8 kB / 0.871 GB, free: 7.664 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004101/1.071, allocations: 181.7 kB / 0.8712 GB, free: 7.484 MB / 0.6387 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.009733/1.081, allocations: 5.404 MB / 0.8765 GB, free: 2.008 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.012/1.093, allocations: 7.692 MB / 0.884 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003434/1.096, allocations: 2.45 MB / 0.8864 GB, free: 7.754 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002219/1.099, allocations: 1.321 MB / 0.8877 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of Backend: time 9.22e-07/1.099, allocations: 0 / 0.8877 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0218/1.12, allocations: 6.742 MB / 0.8942 GB, free: 4 kB / 0.6544 GB Notification: Performance of SimCode: time 0.01213/1.133, allocations: 7.023 MB / 0.9011 GB, free: 8.973 MB / 0.67 GB Notification: Performance of Templates: time 0.3764/1.509, allocations: 112.4 MB / 1.011 GB, free: 339.5 MB / 0.7481 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes18/BranchingPipes18.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches