Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.01126/0.01127, 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.001231/0.001231, allocations: 166.4 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.715/1.715, allocations: 170.9 MB / 187.5 MB, free: 0.8516 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.2551/0.2551, allocations: 38.1 MB / 265.1 MB, free: 3.941 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000711/0.0007113, allocations: 11.94 kB / 323.6 MB, free: 29.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1098, allocations: 48.7 MB / 372.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.08678/0.1966, allocations: 55.14 MB / 427.4 MB, free: 5.566 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3925/0.5892, allocations: 25.8 MB / 453.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002511/0.5918, allocations: 65.19 kB / 453.3 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003385/0.5952, allocations: 0.7798 MB / 454.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.024/0.6192, allocations: 5.059 MB / 459.1 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02475/0.644, allocations: 5.498 MB / 464.6 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00598/0.65, allocations: 2.361 MB / 467 MB, free: 11.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002005/0.6521, allocations: 0.8111 MB / 467.8 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004969/0.6571, allocations: 1.396 MB / 469.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03268/0.6898, allocations: 12.09 MB / 481.3 MB, free: 5.395 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004932/0.6904, allocations: 68 kB / 481.4 MB, free: 5.328 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03553/0.7259, allocations: 9.055 MB / 490.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001895/0.7279, allocations: 488.6 kB / 490.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.7293, allocations: 352.8 kB / 491.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0207/0.75, allocations: 5.172 MB / 496.4 MB, free: 8.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.7501, allocations: 3.938 kB / 496.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7501, allocations: 0 / 496.4 MB, free: 8.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.7502, allocations: 0 / 496.4 MB, free: 8.551 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01461/0.7648, allocations: 2.603 MB / 499 MB, free: 5.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.098e-05/0.7649, allocations: 8.031 kB / 499 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006797/0.7656, allocations: 188.3 kB / 499.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008597/0.7742, allocations: 0.5299 MB / 499.7 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003903/0.7781, allocations: 1.088 MB / 0.4891 GB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.7784, allocations: 113.8 kB / 0.4892 GB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004249/0.7788, allocations: 126.6 kB / 0.4893 GB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008203/0.787, allocations: 2.216 MB / 0.4915 GB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-05/0.7871, allocations: 7.938 kB / 0.4915 GB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002436/0.7874, allocations: 50.17 kB / 0.4915 GB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002812/0.7877, allocations: 114.2 kB / 0.4916 GB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008723/0.7964, allocations: 2.042 MB / 0.4936 GB, free: 15.37 MB / 362.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.02107/0.8176, allocations: 9.574 MB / 0.503 GB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005919/0.8235, allocations: 1.374 MB / 0.5043 GB, free: 3.664 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1233/0.9468, allocations: 18.98 MB / 0.5229 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005883/0.9528, allocations: 1.017 MB / 0.5239 GB, free: 13.35 MB / 394.7 MB Notification: Performance of pre-optimization done (n=94): time 5.711e-06/0.9528, allocations: 0 / 0.5239 GB, free: 13.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=102): time 0.02762/0.9805, allocations: 5.114 MB / 0.5288 GB, free: 8.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002191/0.9808, allocations: 218.6 kB / 0.5291 GB, free: 7.895 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003176/0.984, allocations: 1.084 MB / 0.5301 GB, free: 6.797 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002992/0.9843, allocations: 49.69 kB / 0.5302 GB, free: 6.742 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.9854, allocations: 0.6718 MB / 0.5308 GB, free: 6.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006538/0.986, allocations: 354 kB / 0.5312 GB, free: 5.723 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.9862, allocations: 33.19 kB / 0.5312 GB, free: 5.691 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.9865, allocations: 357.9 kB / 0.5315 GB, free: 5.336 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003155/0.9897, allocations: 0.6701 MB / 0.5322 GB, free: 4.668 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/0.9934, allocations: 1.03 MB / 0.5332 GB, free: 3.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003659/0.9971, allocations: 0.8244 MB / 0.534 GB, free: 2.668 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/0.9971, allocations: 4 kB / 0.534 GB, free: 2.664 MB / 394.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.009052/1.006, allocations: 2.022 MB / 0.536 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00229/1.009, allocations: 3.785 MB / 0.5397 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.971e-05/1.009, allocations: 15.98 kB / 0.5397 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/1.01, allocations: 137.6 kB / 0.5398 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/1.014, allocations: 335.5 kB / 0.5401 GB, free: 12.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/1.015, allocations: 1.263 MB / 0.5414 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003099/1.019, allocations: 155.7 kB / 0.5415 GB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003061/1.019, allocations: 71.97 kB / 0.5416 GB, free: 10.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.019, allocations: 4 kB / 0.5416 GB, free: 10.52 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008472/1.027, allocations: 1.853 MB / 0.5434 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-05/1.028, allocations: 15.98 kB / 0.5434 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/1.029, allocations: 146.2 kB / 0.5436 GB, free: 8.492 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/1.032, allocations: 327.6 kB / 0.5439 GB, free: 8.172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/1.034, allocations: 1.253 MB / 0.5451 GB, free: 6.867 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002921/1.037, allocations: 156 kB / 0.5452 GB, free: 6.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002827/1.037, allocations: 67.98 kB / 0.5453 GB, free: 6.648 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.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 (158): * Single equations (assignments): 153 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001727/1.039, allocations: 0.5373 MB / 0.5458 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004873/1.039, allocations: 134.4 kB / 0.546 GB, free: 5.961 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/1.051, allocations: 4.715 MB / 0.5506 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.141e-05/1.051, allocations: 59.91 kB / 0.5506 GB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/1.051, allocations: 3.938 kB / 0.5506 GB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008893/1.06, allocations: 3.955 MB / 0.5545 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/1.076, allocations: 6.673 MB / 0.561 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.076, allocations: 8 kB / 0.561 GB, free: 6.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/1.078, allocations: 235.7 kB / 0.5612 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001291/1.079, allocations: 204.4 kB / 0.5614 GB, free: 5.922 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/1.079, allocations: 39.92 kB / 0.5615 GB, free: 5.883 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/1.08, allocations: 1.276 MB / 0.5627 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/1.08, allocations: 16.16 kB / 0.5627 GB, free: 4.539 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/1.091, allocations: 4.308 MB / 0.5669 GB, free: 172 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/1.092, allocations: 0.5131 MB / 0.5674 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003991/1.093, allocations: 31.98 kB / 0.5675 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/1.095, allocations: 123.7 kB / 0.5676 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003244/1.095, allocations: 80.88 kB / 0.5677 GB, free: 15.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/1.095, allocations: 39.98 kB / 0.5677 GB, free: 15.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001987/1.097, allocations: 0.8449 MB / 0.5685 GB, free: 14.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.685e-06/1.097, allocations: 0 / 0.5685 GB, free: 14.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007997/1.105, allocations: 2.034 MB / 0.5705 GB, free: 12.48 MB / 442.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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * 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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02173/1.127, allocations: 6.617 MB / 0.577 GB, free: 5.945 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0101/1.137, allocations: 3.186 MB / 0.5801 GB, free: 2.719 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/1.137, allocations: 0 / 0.5801 GB, free: 2.719 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003555/1.141, allocations: 1.459 MB / 0.5815 GB, free: 1.254 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/1.146, allocations: 0.57 MB / 0.5821 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03055/1.177, allocations: 13.87 MB / 0.5956 GB, free: 2.707 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/1.179, allocations: 1.717 MB / 0.5973 GB, free: 0.957 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.2729/1.452, allocations: 1.57 MB / 0.5988 GB, free: 176.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/1.454, allocations: 0.837 MB / 0.5996 GB, free: 176.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.964e-06/1.454, allocations: 1.969 kB / 0.5996 GB, free: 176.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1873/1.641, allocations: 83.93 MB / 0.6816 GB, free: 109.4 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002236/1.642, allocations: 258.4 kB / 0.6819 GB, free: 109.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.667/10.31, allocations: 0 / 0.6819 GB, free: 109.1 MB / 458.7 MB