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.BranchingPipes13.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.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_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.009/2.009, allocations: 209.3 MB / 224.8 MB, free: 276 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004484/0.0004485, allocations: 19.94 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2856, allocations: 48.69 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1233/0.4089, allocations: 82.71 MB / 413.9 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07172/0.4807, allocations: 32.51 MB / 446.4 MB, free: 11.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004341/0.4851, allocations: 95.25 kB / 446.5 MB, free: 10.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01023/0.4953, allocations: 1.167 MB / 447.7 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02818/0.5236, allocations: 6.155 MB / 453.8 MB, free: 3.648 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04018/0.5638, allocations: 7.167 MB / 461 MB, free: 12.47 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01651/0.5804, allocations: 4.359 MB / 465.4 MB, free: 8.105 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004749/0.5852, allocations: 1.203 MB / 466.6 MB, free: 6.875 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009705/0.5949, allocations: 1.982 MB / 468.5 MB, free: 4.887 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3102/0.9052, allocations: 18.04 MB / 486.6 MB, free: 17.49 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006101/0.9059, allocations: 102.3 kB / 486.7 MB, free: 17.49 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02152/0.9274, allocations: 9.839 MB / 496.5 MB, free: 17.47 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001265/0.9287, allocations: 0.6908 MB / 497.2 MB, free: 17.47 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000945/0.9297, allocations: 0.4897 MB / 497.7 MB, free: 17.44 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/0.942, allocations: 6.207 MB / 0.4921 GB, free: 17.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.828e-06/0.942, allocations: 0 / 0.4921 GB, free: 17.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.069e-06/0.942, allocations: 0 / 0.4921 GB, free: 17.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.77e-05/0.9421, allocations: 0 / 0.4921 GB, free: 17.04 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.009294/0.9514, allocations: 3.412 MB / 0.4954 GB, free: 15.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.9514, allocations: 9.375 kB / 0.4954 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006543/0.958, allocations: 0.7576 MB / 0.4962 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.9614, allocations: 1.481 MB / 0.4976 GB, free: 14.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.9616, allocations: 156.2 kB / 0.4978 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/0.962, allocations: 185.5 kB / 0.4979 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008481/0.9705, allocations: 3.198 MB / 0.5011 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.194e-05/0.9706, allocations: 6.812 kB / 0.5011 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003652/0.9709, allocations: 80.67 kB / 0.5012 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002656/0.9712, allocations: 169.8 kB / 0.5013 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009576/0.9808, allocations: 2.994 MB / 0.5042 GB, free: 10.59 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.01934/1, allocations: 13.92 MB / 0.5178 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006677/1.007, allocations: 2.02 MB / 0.5198 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04518/1.052, allocations: 19.08 MB / 0.5384 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005465/1.058, allocations: 1.524 MB / 0.5399 GB, free: 6.055 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001195/1.059, allocations: 162.5 kB / 0.5401 GB, free: 5.914 MB / 426.7 MB Notification: Performance of pre-optimization done (n=142): time 5.832e-06/1.059, allocations: 0 / 0.5401 GB, free: 5.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=154): time 0.02826/1.087, allocations: 8.113 MB / 0.548 GB, free: 15.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/1.087, allocations: 175.5 kB / 0.5482 GB, free: 15.34 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002733/1.09, allocations: 1.483 MB / 0.5496 GB, free: 14.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003026/1.09, allocations: 48.45 kB / 0.5497 GB, free: 14.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008505/1.091, allocations: 0.8874 MB / 0.5505 GB, free: 13.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006808/1.092, allocations: 0.5142 MB / 0.551 GB, free: 13.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/1.092, allocations: 37.88 kB / 0.5511 GB, free: 13.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002526/1.092, allocations: 382.3 kB / 0.5514 GB, free: 12.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/1.095, allocations: 0.9954 MB / 0.5524 GB, free: 12.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/1.098, allocations: 1.442 MB / 0.5538 GB, free: 10.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/1.101, allocations: 1.237 MB / 0.555 GB, free: 10.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/1.101, allocations: 8 kB / 0.555 GB, free: 10.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00895/1.11, allocations: 3.095 MB / 0.5581 GB, free: 7.875 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005129/1.11, allocations: 0.5262 MB / 0.5586 GB, free: 7.215 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/1.111, allocations: 12 kB / 0.5586 GB, free: 7.203 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003738/1.114, allocations: 0.6158 MB / 0.5592 GB, free: 6.664 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003289/1.118, allocations: 451.7 kB / 0.5596 GB, free: 6.266 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/1.121, allocations: 2.807 MB / 0.5624 GB, free: 3.633 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/1.124, allocations: 228.2 kB / 0.5626 GB, free: 3.438 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/1.124, allocations: 100.2 kB / 0.5627 GB, free: 3.359 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/1.124, allocations: 7.438 kB / 0.5627 GB, free: 3.355 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01489/1.139, allocations: 2.762 MB / 0.5654 GB, free: 1.469 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.134e-05/1.139, allocations: 16.03 kB / 0.5654 GB, free: 1.453 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/1.141, allocations: 213.9 kB / 0.5656 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005724/1.147, allocations: 471.3 kB / 0.566 GB, free: 0.8633 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003581/1.15, allocations: 1.878 MB / 0.5679 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004644/1.155, allocations: 237.8 kB / 0.5681 GB, free: 14.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005943/1.156, allocations: 92.34 kB / 0.5682 GB, free: 14.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * 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.003363/1.159, allocations: 0.7141 MB / 0.5689 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/1.16, allocations: 185.8 kB / 0.5691 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02916/1.189, allocations: 7.419 MB / 0.5763 GB, free: 9.074 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001957/1.19, allocations: 79.12 kB / 0.5764 GB, free: 9.016 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/1.19, allocations: 0 / 0.5764 GB, free: 9.016 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02136/1.211, allocations: 6.503 MB / 0.5827 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/1.236, allocations: 10.22 MB / 0.5927 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/1.237, allocations: 4 kB / 0.5927 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/1.238, allocations: 330.7 kB / 0.593 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004243/1.243, allocations: 1.347 MB / 0.5944 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003296/1.243, allocations: 60.66 kB / 0.5944 GB, free: 12.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00388/1.247, allocations: 3.448 MB / 0.5978 GB, free: 9.473 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/1.247, allocations: 3.953 kB / 0.5978 GB, free: 9.469 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/1.261, allocations: 7.135 MB / 0.6047 GB, free: 4.797 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002653/1.263, allocations: 0.6757 MB / 0.6054 GB, free: 4.215 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001038/1.264, allocations: 52.31 kB / 0.6055 GB, free: 4.191 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003535/1.268, allocations: 181.2 kB / 0.6056 GB, free: 4.039 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000666/1.269, allocations: 134.9 kB / 0.6058 GB, free: 3.922 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003301/1.269, allocations: 63.39 kB / 0.6058 GB, free: 3.871 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003938/1.273, allocations: 1.105 MB / 0.6069 GB, free: 3.031 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.366e-06/1.273, allocations: 0 / 0.6069 GB, free: 3.031 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01242/1.285, allocations: 2.486 MB / 0.6093 GB, free: 0.6953 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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) * 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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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.01349/1.299, allocations: 2.066 MB / 0.6113 GB, free: 14.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01094/1.31, allocations: 4.746 MB / 0.616 GB, free: 11.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7e-06/1.31, allocations: 0 / 0.616 GB, free: 11.56 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004378/1.314, allocations: 2.242 MB / 0.6182 GB, free: 10.16 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005183/1.32, allocations: 0.8755 MB / 0.619 GB, free: 9.434 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/1.335, allocations: 8.287 MB / 0.6271 GB, free: 2.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002472/1.337, allocations: 2.127 MB / 0.6292 GB, free: 180 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009547/1.338, allocations: 187.7 kB / 0.6294 GB, free: 8 kB / 490.7 MB Notification: Performance of SimCode: time 1.705e-06/1.338, allocations: 0 / 0.6294 GB, free: 8 kB / 490.7 MB Notification: Performance of Templates: time 0.4219/1.76, allocations: 108.2 MB / 0.7351 GB, free: 146.3 MB / 0.4948 GB