Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 110.4 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 187.2 kB / 19.38 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2139/0.2139, allocations: 44.2 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3409, allocations: 60.83 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1018/0.4427, allocations: 112 MB / 0.6289 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04913/0.4919, allocations: 38.9 MB / 0.6669 GB, free: 4.727 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003118/0.495, allocations: 99.44 kB / 0.667 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003748/0.4988, allocations: 1.355 MB / 0.6683 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.02481/0.5237, allocations: 8.463 MB / 0.6766 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.02051/0.5442, allocations: 8.117 MB / 0.6845 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01043/0.5546, allocations: 7.538 MB / 0.6919 GB, free: 11.12 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003194/0.5579, allocations: 1.721 MB / 0.6936 GB, free: 9.375 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005712/0.5636, allocations: 2.971 MB / 0.6965 GB, free: 6.395 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02457/0.5882, allocations: 12.3 MB / 0.7085 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.5894, allocations: 264 kB / 0.7087 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.29/0.8794, allocations: 10.21 MB / 0.7187 GB, free: 32.83 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001996/0.8814, allocations: 1.02 MB / 0.7197 GB, free: 32.83 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002934/0.8844, allocations: 1.592 MB / 0.7212 GB, free: 32.83 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.02112/0.9055, allocations: 9.806 MB / 0.7308 GB, free: 32.37 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.9056, allocations: 1.844 kB / 0.7308 GB, free: 32.37 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9056, allocations: 1.781 kB / 0.7308 GB, free: 32.37 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001247/0.9057, allocations: 0 / 0.7308 GB, free: 32.37 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.01407/0.9198, allocations: 4.578 MB / 0.7353 GB, free: 30.39 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.9198, allocations: 16.41 kB / 0.7353 GB, free: 30.39 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006581/0.9264, allocations: 0.8712 MB / 0.7362 GB, free: 30.22 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.937, allocations: 6.814 MB / 0.7428 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.9372, allocations: 194.3 kB / 0.743 GB, free: 29.56 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004719/0.9377, allocations: 223.6 kB / 0.7432 GB, free: 29.55 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00765/0.9454, allocations: 3.789 MB / 0.7469 GB, free: 29.06 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.706e-05/0.9455, allocations: 12.38 kB / 0.7469 GB, free: 29.06 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002724/0.9457, allocations: 94.52 kB / 0.747 GB, free: 29.05 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002262/0.946, allocations: 210.1 kB / 0.7472 GB, free: 29.05 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/0.9578, allocations: 3.517 MB / 0.7506 GB, free: 29 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.02789/0.9857, allocations: 16.81 MB / 0.7671 GB, free: 18.81 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009873/0.9956, allocations: 3.076 MB / 0.7701 GB, free: 18.19 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003129/0.9988, allocations: 1.349 MB / 0.7714 GB, free: 18.18 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04639/1.045, allocations: 24.58 MB / 0.7954 GB, free: 17.65 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004784/1.05, allocations: 1.827 MB / 0.7972 GB, free: 17.07 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=192): time 4.95e-06/1.05, allocations: 4 kB / 0.7972 GB, free: 17.06 MB / 0.5762 GB Notification: Performance of matching and sorting (n=212): time 0.02517/1.075, allocations: 10.01 MB / 0.8069 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/1.075, allocations: 180.2 kB / 0.8071 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/1.077, allocations: 1.703 MB / 0.8088 GB, free: 9.383 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002766/1.078, allocations: 70.55 kB / 0.8088 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006678/1.078, allocations: 1.075 MB / 0.8099 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000469/1.079, allocations: 0.7392 MB / 0.8106 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007389/1.079, allocations: 0.4966 MB / 0.8111 GB, free: 7.695 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000101/1.08, allocations: 301.1 kB / 0.8114 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002425/1.082, allocations: 1.281 MB / 0.8126 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002827/1.085, allocations: 1.849 MB / 0.8144 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005164/1.09, allocations: 3.25 MB / 0.8176 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/1.09, allocations: 4 kB / 0.8176 GB, free: 2.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=312) (initialization): time 0.007132/1.097, allocations: 3.824 MB / 0.8214 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.506e-05/1.097, allocations: 77.58 kB / 0.8214 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/1.097, allocations: 16 kB / 0.8214 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/1.098, allocations: 342.8 kB / 0.8218 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/1.101, allocations: 0.5886 MB / 0.8223 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001997/1.103, allocations: 3.114 MB / 0.8254 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/1.105, allocations: 151.7 kB / 0.8255 GB, free: 11.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/1.106, allocations: 126.3 kB / 0.8256 GB, free: 11.75 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003162/1.109, allocations: 1.711 MB / 0.8273 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002756/1.111, allocations: 1.771 MB / 0.829 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005019/1.116, allocations: 3.113 MB / 0.8321 GB, free: 6.758 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.03e-05/1.117, allocations: 4 kB / 0.8321 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of matching and sorting (n=312) (initialization_lambda0): time 0.007015/1.124, allocations: 3.669 MB / 0.8357 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.533e-05/1.124, allocations: 79.88 kB / 0.8358 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.43e-05/1.124, allocations: 16 kB / 0.8358 GB, free: 4.051 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001159/1.125, allocations: 337.6 kB / 0.8361 GB, free: 3.777 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/1.127, allocations: 0.5834 MB / 0.8367 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/1.129, allocations: 3.106 MB / 0.8397 GB, free: 248 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/1.132, allocations: 149.7 kB / 0.8398 GB, free: 136 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002834/1.132, allocations: 125 kB / 0.84 GB, free: 36 kB / 0.5919 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.0007834/1.133, allocations: 416.5 kB / 0.8404 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006628/1.133, allocations: 250.4 kB / 0.8406 GB, free: 15.47 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/1.146, allocations: 8.168 MB / 0.8486 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01031/1.156, allocations: 7.119 MB / 0.8555 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/1.156, allocations: 4 kB / 0.8555 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.158, allocations: 0.7047 MB / 0.8562 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000912/1.159, allocations: 91.61 kB / 0.8563 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002537/1.162, allocations: 151.8 kB / 0.8564 GB, free: 15 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005942/1.163, allocations: 181.7 kB / 0.8566 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01311/1.176, allocations: 5.407 MB / 0.8619 GB, free: 9.336 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01627/1.192, allocations: 7.703 MB / 0.8694 GB, free: 1.516 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004992/1.197, allocations: 2.447 MB / 0.8718 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.002966/1.2, allocations: 1.321 MB / 0.8731 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of Backend: time 9.82e-07/1.2, allocations: 0 / 0.8731 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.02795/1.228, allocations: 6.774 MB / 0.8797 GB, free: 7.266 MB / 0.6387 GB Notification: Performance of SimCode: time 0.01367/1.242, allocations: 7.115 MB / 0.8867 GB, free: 132 kB / 0.6387 GB Notification: Performance of Templates: time 0.3828/1.624, allocations: 110.5 MB / 0.9946 GB, free: 337 MB / 0.7325 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches