Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.01071/0.01071, allocations: 106 kB / 15.06 MB, free: 6.031 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.001201/0.001201, allocations: 174.5 kB / 15.93 MB, free: 5.965 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.822/1.822, allocations: 170.9 MB / 187.5 MB, free: 1.016 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.303/0.303, allocations: 38.08 MB / 265.1 MB, free: 3.973 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000521/0.0005212, allocations: 8 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1117, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.4709/0.5827, allocations: 93.5 MB / 465.8 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06691/0.6496, allocations: 33.89 MB / 499.7 MB, free: 7.852 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004474/0.6542, allocations: 112.9 kB / 499.8 MB, free: 7.793 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006691/0.6609, allocations: 1.323 MB / 0.4894 GB, free: 6.676 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03103/0.692, allocations: 6.511 MB / 0.4957 GB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03411/0.7262, allocations: 7.539 MB / 0.5031 GB, free: 9.109 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01063/0.7368, allocations: 4.073 MB / 0.5071 GB, free: 5.031 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0037/0.7406, allocations: 1.399 MB / 0.5084 GB, free: 3.609 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008217/0.7489, allocations: 2.356 MB / 0.5107 GB, free: 1.246 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05461/0.8035, allocations: 18.38 MB / 0.5287 GB, free: 14.85 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00126/0.8049, allocations: 124 kB / 0.5288 GB, free: 14.73 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03194/0.8368, allocations: 9.595 MB / 0.5382 GB, free: 5.125 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002352/0.8393, allocations: 0.8023 MB / 0.539 GB, free: 4.32 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002125/0.8415, allocations: 0.5706 MB / 0.5395 GB, free: 3.742 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01966/0.8612, allocations: 6.634 MB / 0.546 GB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.8612, allocations: 0 / 0.546 GB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.8612, allocations: 0 / 0.546 GB, free: 13.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001547/0.8614, allocations: 0 / 0.546 GB, free: 13.09 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.01604/0.8774, allocations: 3.829 MB / 0.5497 GB, free: 9.184 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.8775, allocations: 16.03 kB / 0.5497 GB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.8787, allocations: 316.5 kB / 0.55 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009048/0.8877, allocations: 0.8591 MB / 0.5509 GB, free: 7.984 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005731/0.8935, allocations: 1.674 MB / 0.5525 GB, free: 6.254 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003803/0.894, allocations: 196.1 kB / 0.5527 GB, free: 6.059 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009357/0.8949, allocations: 227.9 kB / 0.5529 GB, free: 5.836 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.9097, allocations: 3.781 MB / 0.5566 GB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.9098, allocations: 7.938 kB / 0.5566 GB, free: 1.859 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004376/0.9103, allocations: 91.97 kB / 0.5567 GB, free: 1.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004652/0.9108, allocations: 211.9 kB / 0.5569 GB, free: 1.559 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01564/0.9264, allocations: 3.571 MB / 0.5604 GB, free: 13.97 MB / 426.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.03707/0.9636, allocations: 16.61 MB / 0.5766 GB, free: 11.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0139/0.9775, allocations: 3.143 MB / 0.5797 GB, free: 8.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3531/1.331, allocations: 18.76 MB / 0.598 GB, free: 153.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008602/1.339, allocations: 1.833 MB / 0.5998 GB, free: 153.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=188): time 7.484e-06/1.339, allocations: 5.125 kB / 0.5998 GB, free: 153.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=208): time 0.05063/1.39, allocations: 10.16 MB / 0.6097 GB, free: 150 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/1.39, allocations: 183.8 kB / 0.6099 GB, free: 149.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/1.393, allocations: 1.601 MB / 0.6115 GB, free: 149 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005793/1.394, allocations: 69.36 kB / 0.6115 GB, free: 148.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/1.395, allocations: 1.076 MB / 0.6126 GB, free: 148 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/1.396, allocations: 0.6985 MB / 0.6133 GB, free: 147.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/1.396, allocations: 51.78 kB / 0.6133 GB, free: 147.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001788/1.397, allocations: 402.5 kB / 0.6137 GB, free: 147 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/1.401, allocations: 1.241 MB / 0.6149 GB, free: 146.4 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004933/1.406, allocations: 1.841 MB / 0.6167 GB, free: 145 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005147/1.411, allocations: 1.516 MB / 0.6182 GB, free: 144.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-05/1.411, allocations: 7.688 kB / 0.6182 GB, free: 144.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.01382/1.425, allocations: 3.755 MB / 0.6219 GB, free: 142.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002121/1.427, allocations: 6.626 MB / 0.6283 GB, free: 135.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.679e-05/1.427, allocations: 15.88 kB / 0.6283 GB, free: 135.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/1.43, allocations: 352 kB / 0.6287 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005245/1.435, allocations: 0.6163 MB / 0.6293 GB, free: 134.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/1.438, allocations: 3.1 MB / 0.6323 GB, free: 130.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005181/1.443, allocations: 327.7 kB / 0.6326 GB, free: 130.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007672/1.444, allocations: 128 kB / 0.6327 GB, free: 130.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/1.444, allocations: 4 kB / 0.6328 GB, free: 130.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01219/1.456, allocations: 3.495 MB / 0.6362 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-05/1.456, allocations: 16 kB / 0.6362 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/1.458, allocations: 352.5 kB / 0.6365 GB, free: 126.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004806/1.463, allocations: 0.6124 MB / 0.6371 GB, free: 126 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/1.465, allocations: 3.105 MB / 0.6401 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004849/1.47, allocations: 329.1 kB / 0.6405 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007481/1.471, allocations: 124 kB / 0.6406 GB, free: 122.3 MB / 442.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.002599/1.474, allocations: 0.786 MB / 0.6413 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007996/1.475, allocations: 221.3 kB / 0.6416 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01895/1.494, allocations: 8.18 MB / 0.6495 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/1.494, allocations: 95.86 kB / 0.6496 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/1.494, allocations: 0 / 0.6496 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01502/1.509, allocations: 7.093 MB / 0.6566 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02969/1.539, allocations: 12.99 MB / 0.6692 GB, free: 92.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.19e-05/1.539, allocations: 11.98 kB / 0.6693 GB, free: 92.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00369/1.542, allocations: 483.4 kB / 0.6697 GB, free: 91.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002886/1.545, allocations: 475.7 kB / 0.6702 GB, free: 91.37 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005126/1.546, allocations: 75.97 kB / 0.6702 GB, free: 91.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/1.548, allocations: 3.238 MB / 0.6734 GB, free: 87.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.273e-06/1.548, allocations: 8 kB / 0.6734 GB, free: 87.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01766/1.566, allocations: 8.373 MB / 0.6816 GB, free: 79.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/1.568, allocations: 0.7727 MB / 0.6823 GB, free: 78.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008014/1.569, allocations: 63.92 kB / 0.6824 GB, free: 78.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003567/1.573, allocations: 227.1 kB / 0.6826 GB, free: 78.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007966/1.574, allocations: 198.6 kB / 0.6828 GB, free: 77.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003433/1.574, allocations: 83.97 kB / 0.6829 GB, free: 77.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00235/1.576, allocations: 1.166 MB / 0.684 GB, free: 76.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.576, allocations: 0 / 0.684 GB, free: 76.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01147/1.588, allocations: 2.703 MB / 0.6867 GB, free: 74.12 MB / 442.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.02987/1.618, allocations: 12.35 MB / 0.6987 GB, free: 61.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01645/1.634, allocations: 5.852 MB / 0.7044 GB, free: 55.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/1.634, allocations: 4 kB / 0.7044 GB, free: 55.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007182/1.642, allocations: 2.962 MB / 0.7073 GB, free: 52.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009654/1.651, allocations: 1.124 MB / 0.7084 GB, free: 51.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03028/1.682, allocations: 23.18 MB / 0.7311 GB, free: 28.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/1.684, allocations: 2.378 MB / 0.7334 GB, free: 25.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008343/1.693, allocations: 2.551 MB / 0.7359 GB, free: 23.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003236/1.696, allocations: 1.425 MB / 0.7373 GB, free: 21.91 MB / 442.7 MB Notification: Performance of SimCode: time 2.194e-06/1.696, allocations: 3.938 kB / 0.7373 GB, free: 21.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5938/2.29, allocations: 118.6 MB / 0.8531 GB, free: 70.13 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/2.29, allocations: 271 kB / 0.8533 GB, free: 69.77 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/12.79, allocations: 0 / 0.8533 GB, free: 69.77 MB / 442.7 MB