Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 109.1 kB / 17.09 MB, free: 6.008 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.001496/0.001496, allocations: 198.2 kB / 18.02 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1913/0.1913, allocations: 43.53 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 71.89 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1018, allocations: 57.78 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.3021/0.404, allocations: 101.9 MB / 0.588 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04664/0.4507, allocations: 36.88 MB / 0.6241 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002648/0.4533, allocations: 99.44 kB / 0.6242 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003045/0.4564, allocations: 1.247 MB / 0.6254 GB, free: 14.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01983/0.4763, allocations: 7.999 MB / 0.6332 GB, free: 6.402 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0173/0.4936, allocations: 7.634 MB / 0.6406 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.009136/0.5028, allocations: 6.983 MB / 0.6475 GB, free: 7.742 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002462/0.5053, allocations: 1.575 MB / 0.649 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.5101, allocations: 2.753 MB / 0.6517 GB, free: 3.391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0223/0.5324, allocations: 12.12 MB / 0.6635 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007233/0.5332, allocations: 236 kB / 0.6637 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01964/0.5528, allocations: 10.02 MB / 0.6735 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.5548, allocations: 0.9544 MB / 0.6745 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.5571, allocations: 1.47 MB / 0.6759 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0189/0.576, allocations: 9.345 MB / 0.685 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.576, allocations: 0 / 0.685 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5761, allocations: 0 / 0.685 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.594e-05/0.5761, allocations: 0 / 0.685 GB, free: 1.043 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.009508/0.5856, allocations: 4.174 MB / 0.6891 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.5857, allocations: 15.89 kB / 0.6891 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005516/0.5912, allocations: 0.8015 MB / 0.6899 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.6013, allocations: 6.703 MB / 0.6964 GB, free: 5.211 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.6016, allocations: 195.8 kB / 0.6966 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003819/0.602, allocations: 203.9 kB / 0.6968 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007145/0.6091, allocations: 3.548 MB / 0.7003 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.6092, allocations: 7.938 kB / 0.7003 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002247/0.6094, allocations: 87.95 kB / 0.7004 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000253/0.6097, allocations: 199.6 kB / 0.7006 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007119/0.6168, allocations: 3.274 MB / 0.7038 GB, free: 13.55 MB / 0.545 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.01777/0.6346, allocations: 15.51 MB / 0.7189 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005886/0.6405, allocations: 2.715 MB / 0.7216 GB, free: 9.898 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.6425, allocations: 1.235 MB / 0.7228 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04797/0.6905, allocations: 24.72 MB / 0.7469 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004844/0.6954, allocations: 1.682 MB / 0.7486 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=173): time 4.418e-06/0.6954, allocations: 0 / 0.7486 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=189): time 0.02454/0.72, allocations: 8.876 MB / 0.7572 GB, free: 2.301 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.523e-05/0.7201, allocations: 184.2 kB / 0.7574 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/0.7224, allocations: 1.578 MB / 0.7589 GB, free: 0.5078 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.7227, allocations: 61.7 kB / 0.759 GB, free: 452 kB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.2259/0.9486, allocations: 0.9822 MB / 0.76 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008086/0.9494, allocations: 0.6329 MB / 0.7606 GB, free: 217.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006946/0.9501, allocations: 439.5 kB / 0.761 GB, free: 217.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.584e-05/0.9502, allocations: 307 kB / 0.7613 GB, free: 217.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.9522, allocations: 1.147 MB / 0.7624 GB, free: 217.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002405/0.9546, allocations: 1.652 MB / 0.764 GB, free: 217 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004414/0.959, allocations: 2.954 MB / 0.7669 GB, free: 216.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.9591, allocations: 9.094 kB / 0.7669 GB, free: 216.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.006079/0.9651, allocations: 3.379 MB / 0.7702 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.08e-05/0.9652, allocations: 76.58 kB / 0.7703 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.9653, allocations: 12.89 kB / 0.7703 GB, free: 214.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009463/0.9662, allocations: 241.1 kB / 0.7705 GB, free: 214.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.9687, allocations: 0.5205 MB / 0.771 GB, free: 214.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001225/0.97, allocations: 2.437 MB / 0.7734 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.972, allocations: 134.7 kB / 0.7735 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002105/0.9722, allocations: 113.6 kB / 0.7737 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002884/0.9751, allocations: 1.566 MB / 0.7752 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002424/0.9775, allocations: 1.585 MB / 0.7767 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004428/0.9819, allocations: 2.828 MB / 0.7795 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.281e-05/0.982, allocations: 4.312 kB / 0.7795 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=273) (initialization_lambda0): time 0.005979/0.988, allocations: 3.232 MB / 0.7826 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.168e-05/0.988, allocations: 74.61 kB / 0.7827 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.9881, allocations: 13.28 kB / 0.7827 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.9889, allocations: 240 kB / 0.783 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.991, allocations: 0.5214 MB / 0.7835 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.992, allocations: 2.434 MB / 0.7858 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/0.9939, allocations: 139.2 kB / 0.786 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.9941, allocations: 101.7 kB / 0.7861 GB, free: 205.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.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 (259): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000644/0.9948, allocations: 396.4 kB / 0.7865 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.9952, allocations: 212.1 kB / 0.7867 GB, free: 205 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008641/1.004, allocations: 7.467 MB / 0.7939 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006813/1.011, allocations: 6.539 MB / 0.8003 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/1.011, allocations: 0 / 0.8003 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009426/1.012, allocations: 0.6376 MB / 0.801 GB, free: 198.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003425/1.012, allocations: 86.45 kB / 0.801 GB, free: 198.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/1.013, allocations: 141.4 kB / 0.8012 GB, free: 198.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/1.014, allocations: 166.3 kB / 0.8013 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006398/1.02, allocations: 4.915 MB / 0.8061 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007526/1.027, allocations: 7.079 MB / 0.813 GB, free: 188.3 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00225/1.03, allocations: 2.243 MB / 0.8152 GB, free: 186 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001389/1.031, allocations: 1.254 MB / 0.8165 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of Backend: time 5.01e-07/1.031, allocations: 0 / 0.8165 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01406/1.045, allocations: 6.192 MB / 0.8225 GB, free: 179.1 MB / 0.5919 GB Notification: Performance of SimCode: time 0.007884/1.053, allocations: 6.482 MB / 0.8288 GB, free: 172.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.1149/1.168, allocations: 104.4 MB / 0.9308 GB, free: 68.15 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches