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.BranchingPipes18.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.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_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.822/1.822, allocations: 209.3 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004434, allocations: 8 kB / 282.5 MB, free: 9.777 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08615, allocations: 48.71 MB / 331.2 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.3437/0.4299, allocations: 93.51 MB / 424.7 MB, free: 7.363 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06215/0.4921, allocations: 33.9 MB / 458.6 MB, free: 5.395 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003732/0.4959, allocations: 107.2 kB / 458.7 MB, free: 5.289 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007265/0.5032, allocations: 1.322 MB / 460 MB, free: 3.961 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0257/0.529, allocations: 6.509 MB / 466.5 MB, free: 13.43 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0253/0.5543, allocations: 7.538 MB / 474.1 MB, free: 5.895 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009888/0.5642, allocations: 5.138 MB / 479.2 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002867/0.5671, allocations: 1.399 MB / 480.6 MB, free: 15.33 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005623/0.5728, allocations: 2.349 MB / 483 MB, free: 12.97 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3028/0.8756, allocations: 18.29 MB / 0.4895 GB, free: 25.09 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007079/0.8764, allocations: 126.9 kB / 0.4896 GB, free: 25.09 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02296/0.8993, allocations: 9.596 MB / 0.499 GB, free: 25.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.9009, allocations: 0.799 MB / 0.4998 GB, free: 25.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.902, allocations: 0.5739 MB / 0.5003 GB, free: 25.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01309/0.9151, allocations: 6.628 MB / 0.5068 GB, free: 24.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.9152, allocations: 0.5 kB / 0.5068 GB, free: 24.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.693e-06/0.9152, allocations: 0 / 0.5068 GB, free: 24.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.936e-05/0.9153, allocations: 3.219 kB / 0.5068 GB, free: 24.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01078/0.926, allocations: 3.832 MB / 0.5105 GB, free: 22.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.9261, allocations: 12.42 kB / 0.5106 GB, free: 22.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007446/0.9336, allocations: 0.8528 MB / 0.5114 GB, free: 22.67 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004067/0.9377, allocations: 1.676 MB / 0.513 GB, free: 22.24 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.9379, allocations: 202.3 kB / 0.5132 GB, free: 22.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.9385, allocations: 215.1 kB / 0.5134 GB, free: 22.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.9493, allocations: 3.799 MB / 0.5171 GB, free: 21.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-05/0.9494, allocations: 8.938 kB / 0.5171 GB, free: 21.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003249/0.9498, allocations: 92.22 kB / 0.5172 GB, free: 21.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002946/0.9501, allocations: 210.9 kB / 0.5174 GB, free: 21.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.9616, allocations: 3.569 MB / 0.5209 GB, free: 21.67 MB / 410.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.02256/0.9842, allocations: 16.63 MB / 0.5372 GB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009127/0.9934, allocations: 3.134 MB / 0.5402 GB, free: 7.238 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04102/1.034, allocations: 18.76 MB / 0.5585 GB, free: 2.648 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006437/1.041, allocations: 1.839 MB / 0.5603 GB, free: 1.227 MB / 426.7 MB Notification: Performance of pre-optimization done (n=188): time 7.341e-06/1.041, allocations: 3.656 kB / 0.5603 GB, free: 1.227 MB / 426.7 MB Notification: Performance of matching and sorting (n=208): time 0.03616/1.077, allocations: 10.17 MB / 0.5703 GB, free: 9.367 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/1.077, allocations: 189.8 kB / 0.5704 GB, free: 9.152 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002855/1.08, allocations: 1.603 MB / 0.572 GB, free: 7.949 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004211/1.081, allocations: 73.06 kB / 0.5721 GB, free: 7.902 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/1.082, allocations: 1.005 MB / 0.5731 GB, free: 7.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009942/1.083, allocations: 0.6921 MB / 0.5737 GB, free: 6.637 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/1.083, allocations: 51.56 kB / 0.5738 GB, free: 6.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000285/1.083, allocations: 411.5 kB / 0.5742 GB, free: 6.254 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003261/1.086, allocations: 1.242 MB / 0.5754 GB, free: 5.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00387/1.09, allocations: 1.849 MB / 0.5772 GB, free: 3.793 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003844/1.094, allocations: 1.52 MB / 0.5787 GB, free: 2.805 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.637e-05/1.094, allocations: 4 kB / 0.5787 GB, free: 2.801 MB / 442.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.009664/1.104, allocations: 3.645 MB / 0.5822 GB, free: 264 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005977/1.105, allocations: 0.621 MB / 0.5829 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/1.105, allocations: 22.19 kB / 0.5829 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/1.106, allocations: 356.3 kB / 0.5832 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003333/1.11, allocations: 0.6135 MB / 0.5838 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003049/1.113, allocations: 3.11 MB / 0.5869 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003369/1.116, allocations: 329.5 kB / 0.5872 GB, free: 11.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000373/1.117, allocations: 124.6 kB / 0.5873 GB, free: 11.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/1.117, allocations: 4 kB / 0.5873 GB, free: 11.2 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008904/1.125, allocations: 3.491 MB / 0.5907 GB, free: 8.828 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.503e-05/1.126, allocations: 16 kB / 0.5907 GB, free: 8.812 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/1.127, allocations: 355.2 kB / 0.5911 GB, free: 8.523 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/1.13, allocations: 0.6079 MB / 0.5916 GB, free: 7.973 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/1.133, allocations: 3.099 MB / 0.5947 GB, free: 4.969 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/1.136, allocations: 331.2 kB / 0.595 GB, free: 4.684 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003259/1.136, allocations: 117.4 kB / 0.5951 GB, free: 4.594 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 29 (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,junctionVolume.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 (296): * Single equations (assignments): 289 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001847/1.138, allocations: 0.7956 MB / 0.5959 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005864/1.139, allocations: 221.3 kB / 0.5961 GB, free: 3.812 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01542/1.154, allocations: 8.189 MB / 0.6041 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001028/1.154, allocations: 91.19 kB / 0.6042 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/1.154, allocations: 4 kB / 0.6042 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01286/1.167, allocations: 7.093 MB / 0.6111 GB, free: 9.242 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02448/1.192, allocations: 12.99 MB / 0.6238 GB, free: 208 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.039e-05/1.192, allocations: 4 kB / 0.6238 GB, free: 204 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00244/1.194, allocations: 480 kB / 0.6242 GB, free: 15.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/1.197, allocations: 481.3 kB / 0.6247 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002697/1.197, allocations: 81.83 kB / 0.6248 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003163/1.2, allocations: 3.228 MB / 0.6279 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.096e-05/1.2, allocations: 9.812 kB / 0.6279 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/1.216, allocations: 7.982 MB / 0.6357 GB, free: 6.734 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001981/1.218, allocations: 0.7701 MB / 0.6365 GB, free: 6.082 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004793/1.218, allocations: 62.23 kB / 0.6366 GB, free: 6.055 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.22, allocations: 226.3 kB / 0.6368 GB, free: 5.863 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000436/1.221, allocations: 191 kB / 0.637 GB, free: 5.703 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002468/1.221, allocations: 89.39 kB / 0.637 GB, free: 5.633 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002158/1.223, allocations: 1.172 MB / 0.6382 GB, free: 4.738 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.718e-06/1.223, allocations: 0 / 0.6382 GB, free: 4.738 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008735/1.232, allocations: 2.703 MB / 0.6408 GB, free: 2.223 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse49.phase,$cse49.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,junctionVolume.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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008436/1.24, allocations: 2.121 MB / 0.6429 GB, free: 376 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01351/1.254, allocations: 5.847 MB / 0.6486 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.254, allocations: 3.172 kB / 0.6486 GB, free: 12.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006038/1.26, allocations: 2.969 MB / 0.6515 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006569/1.267, allocations: 1.125 MB / 0.6526 GB, free: 9.027 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2398/1.507, allocations: 9.747 MB / 0.6621 GB, free: 211.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002789/1.509, allocations: 2.33 MB / 0.6644 GB, free: 211 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/1.511, allocations: 239.8 kB / 0.6646 GB, free: 211 MB / 0.4948 GB Notification: Performance of SimCode: time 1.705e-06/1.511, allocations: 0 / 0.6646 GB, free: 211 MB / 0.4948 GB Notification: Performance of Templates: time 0.1552/1.666, allocations: 134.2 MB / 0.7957 GB, free: 103.7 MB / 0.4948 GB