Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 224.8 MB, free: 288 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004337/0.0004338, allocations: 12 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3237, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.1249/0.4487, allocations: 85.21 MB / 416.4 MB, free: 9.156 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06964/0.5184, allocations: 32.22 MB / 448.6 MB, free: 8.883 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004913/0.5234, allocations: 103.2 kB / 448.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006658/0.5301, allocations: 1.233 MB / 449.9 MB, free: 7.543 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.07021/0.6004, allocations: 6.19 MB / 456.1 MB, free: 1.336 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02709/0.6275, allocations: 7.137 MB / 463.3 MB, free: 10.19 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009342/0.6369, allocations: 4.797 MB / 468.1 MB, free: 5.383 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002835/0.6397, allocations: 1.284 MB / 469.4 MB, free: 4.074 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005849/0.6456, allocations: 2.197 MB / 471.6 MB, free: 1.871 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3048/0.9505, allocations: 18.16 MB / 489.7 MB, free: 14.93 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006259/0.9511, allocations: 113.5 kB / 489.8 MB, free: 14.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02142/0.9726, allocations: 9.433 MB / 499.3 MB, free: 14.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001359/0.974, allocations: 0.757 MB / 0.4883 GB, free: 14.91 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.975, allocations: 0.532 MB / 0.4888 GB, free: 14.88 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01258/0.9876, allocations: 6.346 MB / 0.495 GB, free: 14.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.841e-06/0.9877, allocations: 0 / 0.495 GB, free: 14.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.145e-06/0.9877, allocations: 3.469 kB / 0.495 GB, free: 14.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.212e-05/0.9878, allocations: 0 / 0.495 GB, free: 14.02 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01022/0.998, allocations: 3.593 MB / 0.4985 GB, free: 11.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.9981, allocations: 8.031 kB / 0.4985 GB, free: 11.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007006/1.005, allocations: 0.8028 MB / 0.4993 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003672/1.009, allocations: 1.579 MB / 0.5009 GB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/1.009, allocations: 177.3 kB / 0.501 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004512/1.009, allocations: 207.4 kB / 0.5012 GB, free: 9.348 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009596/1.019, allocations: 3.56 MB / 0.5047 GB, free: 7.324 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.467e-05/1.019, allocations: 9.156 kB / 0.5047 GB, free: 7.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002865/1.02, allocations: 83.53 kB / 0.5048 GB, free: 7.301 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003086/1.02, allocations: 205.6 kB / 0.505 GB, free: 7.156 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/1.031, allocations: 3.314 MB / 0.5082 GB, free: 4.93 MB / 394.7 MB 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.02376/1.055, allocations: 15.35 MB / 0.5232 GB, free: 6.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00827/1.063, allocations: 2.774 MB / 0.5259 GB, free: 4.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04546/1.108, allocations: 18.93 MB / 0.5444 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006018/1.114, allocations: 1.682 MB / 0.546 GB, free: 14.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=169): time 6.964e-06/1.115, allocations: 0 / 0.546 GB, free: 14.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=185): time 0.03257/1.147, allocations: 9.074 MB / 0.5549 GB, free: 7.453 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/1.147, allocations: 176.2 kB / 0.5551 GB, free: 7.242 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/1.15, allocations: 1.501 MB / 0.5565 GB, free: 6.109 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004036/1.151, allocations: 59.77 kB / 0.5566 GB, free: 6.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009696/1.152, allocations: 0.9558 MB / 0.5575 GB, free: 5.426 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008937/1.152, allocations: 0.6158 MB / 0.5581 GB, free: 4.902 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/1.153, allocations: 40.38 kB / 0.5582 GB, free: 4.895 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002693/1.153, allocations: 399 kB / 0.5586 GB, free: 4.531 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/1.156, allocations: 1.113 MB / 0.5596 GB, free: 3.773 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00362/1.16, allocations: 1.655 MB / 0.5613 GB, free: 2.328 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003563/1.163, allocations: 1.375 MB / 0.5626 GB, free: 1.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.906e-05/1.163, allocations: 4 kB / 0.5626 GB, free: 1.426 MB / 442.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.008859/1.172, allocations: 3.217 MB / 0.5657 GB, free: 15.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000549/1.173, allocations: 0.5764 MB / 0.5663 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/1.173, allocations: 16 kB / 0.5663 GB, free: 14.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/1.174, allocations: 259.5 kB / 0.5666 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/1.177, allocations: 0.539 MB / 0.5671 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/1.18, allocations: 2.439 MB / 0.5695 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003332/1.183, allocations: 305.1 kB / 0.5698 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003746/1.184, allocations: 109 kB / 0.5699 GB, free: 11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/1.184, allocations: 4 kB / 0.5699 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008012/1.192, allocations: 3.086 MB / 0.5729 GB, free: 8.902 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.73e-05/1.192, allocations: 12 kB / 0.5729 GB, free: 8.891 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/1.193, allocations: 252.3 kB / 0.5731 GB, free: 8.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003053/1.196, allocations: 0.5387 MB / 0.5737 GB, free: 8.195 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002279/1.198, allocations: 2.436 MB / 0.576 GB, free: 5.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002651/1.201, allocations: 296.5 kB / 0.5763 GB, free: 5.562 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003081/1.201, allocations: 104.2 kB / 0.5764 GB, free: 5.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,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 (263): * Single equations (assignments): 257 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001799/1.203, allocations: 0.7712 MB / 0.5772 GB, free: 4.922 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/1.204, allocations: 205.5 kB / 0.5774 GB, free: 4.719 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01469/1.218, allocations: 7.5 MB / 0.5847 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/1.219, allocations: 90.11 kB / 0.5848 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/1.219, allocations: 3.953 kB / 0.5848 GB, free: 15.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01215/1.231, allocations: 6.516 MB / 0.5912 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02464/1.255, allocations: 12.02 MB / 0.6029 GB, free: 2.566 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.632e-05/1.256, allocations: 8 kB / 0.6029 GB, free: 2.559 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002418/1.258, allocations: 432.1 kB / 0.6033 GB, free: 2.172 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/1.26, allocations: 365.5 kB / 0.6037 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/1.26, allocations: 76.23 kB / 0.6037 GB, free: 1.824 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/1.263, allocations: 2.535 MB / 0.6062 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.25e-05/1.263, allocations: 6.719 kB / 0.6062 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01395/1.277, allocations: 7.279 MB / 0.6133 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/1.278, allocations: 0.7252 MB / 0.614 GB, free: 9.707 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000466/1.279, allocations: 59.42 kB / 0.6141 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/1.281, allocations: 212.7 kB / 0.6143 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004036/1.281, allocations: 171.2 kB / 0.6145 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/1.282, allocations: 79.53 kB / 0.6145 GB, free: 9.293 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002107/1.284, allocations: 1.107 MB / 0.6156 GB, free: 8.445 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.73e-07/1.284, allocations: 0 / 0.6156 GB, free: 8.445 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008942/1.293, allocations: 2.556 MB / 0.6181 GB, free: 6.059 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008806/1.302, allocations: 2.045 MB / 0.6201 GB, free: 4.273 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01273/1.314, allocations: 5.268 MB / 0.6252 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.314, allocations: 4.688 kB / 0.6253 GB, free: 0.582 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005475/1.32, allocations: 2.684 MB / 0.6279 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005893/1.326, allocations: 0.9755 MB / 0.6288 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/1.343, allocations: 9.11 MB / 0.6377 GB, free: 6.16 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002708/1.346, allocations: 2.235 MB / 0.6399 GB, free: 3.988 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001175/1.347, allocations: 217.6 kB / 0.6401 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of SimCode: time 2.72e-06/1.347, allocations: 0 / 0.6401 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of Templates: time 0.4099/1.757, allocations: 114.7 MB / 0.7522 GB, free: 126.2 MB / 0.4948 GB