Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",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.01146/0.01146, allocations: 106 kB / 15.06 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.001276/0.001275, allocations: 166.5 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.727/1.727, allocations: 170.9 MB / 187.5 MB, free: 0.8555 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.2671/0.2671, allocations: 38.1 MB / 265.1 MB, free: 3.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006875/0.0006878, allocations: 12 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1005, allocations: 48.71 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.4454/0.5459, allocations: 77 MB / 449.3 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06312/0.6091, allocations: 32.53 MB / 481.8 MB, free: 4.738 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003988/0.6132, allocations: 95.5 kB / 481.9 MB, free: 4.691 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004945/0.6182, allocations: 1.082 MB / 483 MB, free: 3.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02867/0.6469, allocations: 6.176 MB / 489.2 MB, free: 144 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03092/0.6778, allocations: 7.012 MB / 496.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009563/0.6874, allocations: 3.612 MB / 499.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003343/0.6908, allocations: 1.221 MB / 0.4893 GB, free: 7.168 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007332/0.6982, allocations: 2.056 MB / 0.4913 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06044/0.7587, allocations: 20.83 MB / 0.5116 GB, free: 268 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008641/0.7596, allocations: 108 kB / 0.5117 GB, free: 160 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03177/0.7914, allocations: 9.883 MB / 0.5214 GB, free: 6.262 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002144/0.7936, allocations: 0.7479 MB / 0.5221 GB, free: 5.512 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.7953, allocations: 0.5199 MB / 0.5226 GB, free: 4.984 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02/0.8153, allocations: 6.443 MB / 0.5289 GB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.8154, allocations: 3.938 kB / 0.5289 GB, free: 14.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.8154, allocations: 0 / 0.5289 GB, free: 14.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000144/0.8156, allocations: 0 / 0.5289 GB, free: 14.52 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: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01688/0.8325, allocations: 3.522 MB / 0.5324 GB, free: 10.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.918e-05/0.8326, allocations: 8.031 kB / 0.5324 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001738/0.8343, allocations: 298.9 kB / 0.5326 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008913/0.8433, allocations: 0.8088 MB / 0.5334 GB, free: 9.812 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006112/0.8495, allocations: 1.567 MB / 0.535 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004231/0.85, allocations: 179.7 kB / 0.5351 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.851, allocations: 195.9 kB / 0.5353 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01487/0.8659, allocations: 3.492 MB / 0.5387 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001073/0.8661, allocations: 7.938 kB / 0.5387 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007243/0.8668, allocations: 83.97 kB / 0.5388 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000471/0.8673, allocations: 191.5 kB / 0.539 GB, free: 3.922 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01465/0.882, allocations: 3.269 MB / 0.5422 GB, free: 0.6484 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.0358/0.9178, allocations: 14.98 MB / 0.5568 GB, free: 424 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009973/0.9279, allocations: 2.302 MB / 0.5591 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06741/0.9953, allocations: 19 MB / 0.5776 GB, free: 8.793 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007415/1.003, allocations: 1.61 MB / 0.5792 GB, free: 7.164 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 5.631e-06/1.003, allocations: 0 / 0.5792 GB, free: 7.164 MB / 442.7 MB Notification: Performance of matching and sorting (n=169): time 0.3329/1.336, allocations: 8.133 MB / 0.5872 GB, free: 161.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/1.336, allocations: 230.9 kB / 0.5874 GB, free: 161.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004143/1.34, allocations: 1.579 MB / 0.5889 GB, free: 161.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000531/1.341, allocations: 58.34 kB / 0.589 GB, free: 161.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/1.342, allocations: 0.9992 MB / 0.5899 GB, free: 160.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.343, allocations: 0.5795 MB / 0.5905 GB, free: 160.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/1.343, allocations: 39.97 kB / 0.5905 GB, free: 160.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/1.344, allocations: 388.6 kB / 0.5909 GB, free: 159.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004281/1.348, allocations: 1.139 MB / 0.592 GB, free: 159.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/1.353, allocations: 1.661 MB / 0.5937 GB, free: 158.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004833/1.358, allocations: 1.381 MB / 0.595 GB, free: 158 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.922e-05/1.358, allocations: 4.406 kB / 0.595 GB, free: 158 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01501/1.373, allocations: 3.952 MB / 0.5989 GB, free: 156.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001683/1.375, allocations: 5.941 MB / 0.6047 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/1.375, allocations: 19.53 kB / 0.6047 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02787/1.403, allocations: 2.967 MB / 0.6076 GB, free: 149.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002413/1.405, allocations: 328.6 kB / 0.6079 GB, free: 149.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009907/1.415, allocations: 3.478 MB / 0.6113 GB, free: 148.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004029/1.419, allocations: 256.7 kB / 0.6115 GB, free: 148.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00063/1.42, allocations: 106.2 kB / 0.6116 GB, free: 148.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.42, allocations: 3.938 kB / 0.6116 GB, free: 148.1 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01299/1.433, allocations: 3.621 MB / 0.6152 GB, free: 146.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-05/1.433, allocations: 20.22 kB / 0.6152 GB, free: 146.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01297/1.446, allocations: 1.787 MB / 0.6169 GB, free: 145.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002709/1.449, allocations: 375.3 kB / 0.6173 GB, free: 145.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/1.456, allocations: 2.767 MB / 0.62 GB, free: 144 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/1.46, allocations: 256 kB / 0.6202 GB, free: 143.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006238/1.461, allocations: 102.2 kB / 0.6203 GB, free: 143.8 MB / 442.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: 22 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.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 (169): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002151/1.463, allocations: 0.7243 MB / 0.6211 GB, free: 143.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000614/1.463, allocations: 195.9 kB / 0.6212 GB, free: 143.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/1.48, allocations: 7.74 MB / 0.6288 GB, free: 135.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.48, allocations: 91.86 kB / 0.6289 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.48, allocations: 0 / 0.6289 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0134/1.494, allocations: 6.631 MB / 0.6354 GB, free: 128.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02241/1.516, allocations: 10.86 MB / 0.646 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/1.516, allocations: 0 / 0.646 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003354/1.519, allocations: 400.5 kB / 0.6463 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002451/1.522, allocations: 386.8 kB / 0.6467 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004749/1.522, allocations: 59.97 kB / 0.6468 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001777/1.524, allocations: 2.572 MB / 0.6493 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.524, allocations: 3.75 kB / 0.6493 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/1.541, allocations: 7.163 MB / 0.6563 GB, free: 106.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/1.543, allocations: 0.7338 MB / 0.657 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008077/1.544, allocations: 59 kB / 0.6571 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.547, allocations: 197.5 kB / 0.6572 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006554/1.548, allocations: 145.8 kB / 0.6574 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002195/1.548, allocations: 63.98 kB / 0.6574 GB, free: 105.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002553/1.551, allocations: 1.163 MB / 0.6586 GB, free: 104.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.551, allocations: 0 / 0.6586 GB, free: 104.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0106/1.561, allocations: 2.566 MB / 0.6611 GB, free: 102.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].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,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.02845/1.59, allocations: 9.726 MB / 0.6706 GB, free: 92.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01572/1.605, allocations: 5.33 MB / 0.6758 GB, free: 87.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/1.606, allocations: 7.938 kB / 0.6758 GB, free: 87.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005773/1.611, allocations: 2.403 MB / 0.6781 GB, free: 84.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007501/1.619, allocations: 0.8723 MB / 0.679 GB, free: 83.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02718/1.646, allocations: 21.22 MB / 0.6997 GB, free: 62.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/1.649, allocations: 2.305 MB / 0.702 GB, free: 60.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005677/1.654, allocations: 1.751 MB / 0.7037 GB, free: 58.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002795/1.657, allocations: 1.292 MB / 0.7049 GB, free: 57.11 MB / 442.7 MB Notification: Performance of SimCode: time 1.713e-06/1.657, allocations: 0 / 0.7049 GB, free: 57.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.563/2.22, allocations: 119.9 MB / 0.8221 GB, free: 109.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002668/2.221, allocations: 255.5 kB / 0.8223 GB, free: 109.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/12.46, allocations: 3.938 kB / 0.8223 GB, free: 109.2 MB / 442.7 MB