Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01629/0.0163, allocations: 104.4 kB / 15.05 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001207/0.001206, allocations: 168 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.626/1.626, allocations: 170.9 MB / 187.5 MB, free: 1 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2549/0.2549, allocations: 38.08 MB / 265.1 MB, free: 3.965 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004819/0.0004819, allocations: 8 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09362, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2): time 0.4012/0.4949, allocations: 76.98 MB / 449.3 MB, free: 12.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05494/0.5499, allocations: 31.02 MB / 480.3 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003433/0.5534, allocations: 96 kB / 480.4 MB, free: 5.355 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004892/0.5583, allocations: 1.138 MB / 481.5 MB, free: 4.609 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0249/0.5833, allocations: 5.999 MB / 487.5 MB, free: 1.051 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02894/0.6123, allocations: 6.765 MB / 494.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008241/0.6206, allocations: 3.424 MB / 497.7 MB, free: 9.953 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002964/0.6236, allocations: 1.226 MB / 498.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006873/0.6305, allocations: 1.986 MB / 0.4892 GB, free: 7.355 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07032/0.7009, allocations: 18.14 MB / 0.5069 GB, free: 5.203 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001276/0.7022, allocations: 104 kB / 0.507 GB, free: 5.102 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04266/0.7449, allocations: 9.31 MB / 0.5161 GB, free: 11.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002603/0.7476, allocations: 0.6933 MB / 0.5168 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00217/0.7498, allocations: 488.5 kB / 0.5172 GB, free: 10.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02375/0.7736, allocations: 5.995 MB / 0.5231 GB, free: 4.594 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.7737, allocations: 3.938 kB / 0.5231 GB, free: 4.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.434e-06/0.7737, allocations: 0 / 0.5231 GB, free: 4.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001256/0.7739, allocations: 3.938 kB / 0.5231 GB, free: 4.586 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.0216/0.7955, allocations: 3.41 MB / 0.5264 GB, free: 1.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.7956, allocations: 8.031 kB / 0.5264 GB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001311/0.7969, allocations: 273.6 kB / 0.5267 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01238/0.8093, allocations: 0.7269 MB / 0.5274 GB, free: 92 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006461/0.8159, allocations: 1.488 MB / 0.5289 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004029/0.8163, allocations: 163.4 kB / 0.529 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009236/0.8173, allocations: 191.9 kB / 0.5292 GB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01724/0.8345, allocations: 3.208 MB / 0.5323 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.8347, allocations: 7.938 kB / 0.5323 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00061/0.8353, allocations: 75.97 kB / 0.5324 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005683/0.8359, allocations: 167.1 kB / 0.5326 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/0.8556, allocations: 3.123 MB / 0.5356 GB, free: 7.484 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.03924/0.8949, allocations: 13.55 MB / 0.5489 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.9076, allocations: 2.027 MB / 0.5508 GB, free: 6.781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06922/0.9769, allocations: 19.01 MB / 0.5694 GB, free: 1.434 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006656/0.9836, allocations: 1.553 MB / 0.5709 GB, free: 15.85 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001356/0.985, allocations: 166.3 kB / 0.5711 GB, free: 15.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 6.873e-06/0.9851, allocations: 0 / 0.5711 GB, free: 15.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.0384/1.023, allocations: 8.248 MB / 0.5791 GB, free: 7.285 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001334/1.024, allocations: 183.5 kB / 0.5793 GB, free: 7.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/1.027, allocations: 1.397 MB / 0.5807 GB, free: 5.664 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000479/1.027, allocations: 53.7 kB / 0.5807 GB, free: 5.605 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/1.028, allocations: 0.9068 MB / 0.5816 GB, free: 4.688 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009918/1.029, allocations: 0.5391 MB / 0.5821 GB, free: 4.141 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/1.03, allocations: 40 kB / 0.5822 GB, free: 4.102 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002203/1.03, allocations: 381.9 kB / 0.5825 GB, free: 3.723 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0035/1.033, allocations: 1.003 MB / 0.5835 GB, free: 2.719 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004092/1.037, allocations: 1.467 MB / 0.5849 GB, free: 1.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2702/1.308, allocations: 1.24 MB / 0.5862 GB, free: 161.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.616e-05/1.308, allocations: 4.469 kB / 0.5862 GB, free: 161.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01188/1.32, allocations: 3.134 MB / 0.5892 GB, free: 161.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001111/1.321, allocations: 5.139 MB / 0.5942 GB, free: 156.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.115e-05/1.321, allocations: 14.48 kB / 0.5943 GB, free: 156.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004775/1.326, allocations: 0.5247 MB / 0.5948 GB, free: 156 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/1.33, allocations: 476.2 kB / 0.5952 GB, free: 155.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/1.332, allocations: 2.691 MB / 0.5979 GB, free: 153.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003809/1.336, allocations: 254.3 kB / 0.5981 GB, free: 153.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000469/1.337, allocations: 96.25 kB / 0.5982 GB, free: 153.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/1.337, allocations: 4.594 kB / 0.5982 GB, free: 153.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009652/1.346, allocations: 2.784 MB / 0.6009 GB, free: 152.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-05/1.346, allocations: 13.09 kB / 0.6009 GB, free: 152.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001199/1.348, allocations: 210.6 kB / 0.6011 GB, free: 152.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00386/1.352, allocations: 487.9 kB / 0.6016 GB, free: 152.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/1.353, allocations: 1.882 MB / 0.6034 GB, free: 150.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003662/1.357, allocations: 261.7 kB / 0.6037 GB, free: 150.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000545/1.357, allocations: 95.41 kB / 0.6038 GB, free: 150.7 MB / 442.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 (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_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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 (224): * Single equations (assignments): 218 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001949/1.359, allocations: 0.7071 MB / 0.6045 GB, free: 150.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005317/1.36, allocations: 185.2 kB / 0.6046 GB, free: 150.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/1.376, allocations: 7.466 MB / 0.6119 GB, free: 147.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001096/1.376, allocations: 86.88 kB / 0.612 GB, free: 147.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/1.376, allocations: 2.844 kB / 0.612 GB, free: 147.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01345/1.39, allocations: 6.534 MB / 0.6184 GB, free: 144 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02317/1.413, allocations: 11.05 MB / 0.6292 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/1.413, allocations: 13.58 kB / 0.6292 GB, free: 134.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/1.416, allocations: 352.4 kB / 0.6295 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004153/1.42, allocations: 1.201 MB / 0.6307 GB, free: 132.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003787/1.421, allocations: 67.92 kB / 0.6308 GB, free: 132.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002877/1.423, allocations: 3.175 MB / 0.6339 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.423, allocations: 7.844 kB / 0.6339 GB, free: 129.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/1.438, allocations: 7.367 MB / 0.6411 GB, free: 121.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/1.439, allocations: 0.6719 MB / 0.6417 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006388/1.44, allocations: 51.98 kB / 0.6418 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.443, allocations: 194.9 kB / 0.642 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000555/1.443, allocations: 145.7 kB / 0.6421 GB, free: 120.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002209/1.444, allocations: 71.97 kB / 0.6422 GB, free: 120.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00195/1.446, allocations: 1.043 MB / 0.6432 GB, free: 119.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.446, allocations: 0 / 0.6432 GB, free: 119.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008652/1.454, allocations: 2.378 MB / 0.6455 GB, free: 117.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse26.phase,$cse26.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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02428/1.479, allocations: 10.71 MB / 0.656 GB, free: 106.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01272/1.491, allocations: 4.773 MB / 0.6606 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/1.491, allocations: 3.719 kB / 0.6606 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005581/1.497, allocations: 2.448 MB / 0.663 GB, free: 99.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/1.504, allocations: 0.8314 MB / 0.6638 GB, free: 98.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/1.529, allocations: 18.93 MB / 0.6823 GB, free: 79.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/1.531, allocations: 2.181 MB / 0.6845 GB, free: 77.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006605/1.537, allocations: 2.273 MB / 0.6867 GB, free: 75.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002461/1.54, allocations: 1.187 MB / 0.6878 GB, free: 73.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/1.54, allocations: 0 / 0.6878 GB, free: 73.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5416/2.082, allocations: 104.6 MB / 0.79 GB, free: 143.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002361/2.082, allocations: 255.3 kB / 0.7903 GB, free: 142.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.048/11.13, allocations: 0 / 0.7903 GB, free: 142.8 MB / 442.7 MB