Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",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.01638/0.01638, 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.001918/0.001918, 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.865/1.865, allocations: 170.9 MB / 187.6 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.2695/0.2695, allocations: 38.1 MB / 265.1 MB, free: 3.945 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000591/0.0005912, allocations: 15.94 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1088, allocations: 48.7 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.4515/0.5603, allocations: 77 MB / 449.3 MB, free: 13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06135/0.6218, allocations: 32.54 MB / 481.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003693/0.6255, allocations: 95.34 kB / 481.9 MB, free: 4.844 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004815/0.6304, allocations: 1.076 MB / 483 MB, free: 4.133 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02708/0.6575, allocations: 6.172 MB / 489.2 MB, free: 332 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03106/0.6886, allocations: 7.012 MB / 496.2 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009699/0.6983, allocations: 3.614 MB / 499.8 MB, free: 8.418 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003338/0.7017, allocations: 1.218 MB / 0.4893 GB, free: 7.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007502/0.7093, allocations: 2.052 MB / 0.4913 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06351/0.7729, allocations: 20.84 MB / 0.5116 GB, free: 272 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001048/0.774, allocations: 104 kB / 0.5117 GB, free: 168 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03586/0.8099, allocations: 9.887 MB / 0.5214 GB, free: 6.266 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002944/0.8129, allocations: 0.744 MB / 0.5221 GB, free: 5.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.8147, allocations: 0.516 MB / 0.5226 GB, free: 4.996 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01904/0.8338, allocations: 6.443 MB / 0.5289 GB, free: 14.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.8339, allocations: 4 kB / 0.5289 GB, free: 14.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.035e-06/0.8339, allocations: 3.984 kB / 0.5289 GB, free: 14.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.834, allocations: 0 / 0.5289 GB, free: 14.53 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.01475/0.8488, allocations: 3.526 MB / 0.5324 GB, free: 10.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.8489, allocations: 8.031 kB / 0.5324 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001122/0.85, allocations: 294.9 kB / 0.5326 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008756/0.8588, allocations: 0.8127 MB / 0.5334 GB, free: 9.816 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005398/0.8642, allocations: 1.567 MB / 0.535 GB, free: 8.195 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003611/0.8647, allocations: 175.7 kB / 0.5351 GB, free: 8.023 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008895/0.8656, allocations: 203.9 kB / 0.5353 GB, free: 7.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.879, allocations: 3.492 MB / 0.5387 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.701e-05/0.8791, allocations: 7.938 kB / 0.5387 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004149/0.8795, allocations: 79.97 kB / 0.5388 GB, free: 4.113 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004323/0.88, allocations: 187.5 kB / 0.539 GB, free: 3.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.8941, allocations: 3.277 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.0342/0.9284, allocations: 14.98 MB / 0.5568 GB, free: 428 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.9385, allocations: 2.306 MB / 0.5591 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06618/1.005, allocations: 19 MB / 0.5776 GB, free: 8.801 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007645/1.012, allocations: 1.622 MB / 0.5792 GB, free: 7.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 7.023e-06/1.012, allocations: 0 / 0.5792 GB, free: 7.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=169): time 0.3293/1.342, allocations: 8.125 MB / 0.5872 GB, free: 161.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/1.342, allocations: 230.2 kB / 0.5874 GB, free: 161.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003994/1.346, allocations: 1.58 MB / 0.5889 GB, free: 160.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004641/1.347, allocations: 56.25 kB / 0.589 GB, free: 160.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/1.348, allocations: 1 MB / 0.5899 GB, free: 160.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001028/1.349, allocations: 0.5794 MB / 0.5905 GB, free: 160 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/1.349, allocations: 44.97 kB / 0.5906 GB, free: 160 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/1.349, allocations: 389.5 kB / 0.5909 GB, free: 159.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004288/1.354, allocations: 1.137 MB / 0.592 GB, free: 159.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004899/1.359, allocations: 1.664 MB / 0.5937 GB, free: 158.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004961/1.364, allocations: 1.379 MB / 0.595 GB, free: 157.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.121e-05/1.364, allocations: 3.969 kB / 0.595 GB, free: 157.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01485/1.379, allocations: 3.954 MB / 0.5989 GB, free: 156.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001434/1.38, allocations: 5.938 MB / 0.6047 GB, free: 149.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.711e-05/1.38, allocations: 16.5 kB / 0.6047 GB, free: 149.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0272/1.407, allocations: 2.976 MB / 0.6076 GB, free: 149.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/1.41, allocations: 326.2 kB / 0.6079 GB, free: 149.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/1.42, allocations: 3.474 MB / 0.6113 GB, free: 147.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003988/1.424, allocations: 260.6 kB / 0.6115 GB, free: 147.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006404/1.425, allocations: 110.4 kB / 0.6116 GB, free: 147.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/1.425, allocations: 3.938 kB / 0.6117 GB, free: 147.9 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01324/1.438, allocations: 3.615 MB / 0.6152 GB, free: 146.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.025e-05/1.439, allocations: 19.47 kB / 0.6152 GB, free: 146.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01308/1.452, allocations: 1.785 MB / 0.6169 GB, free: 145.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/1.455, allocations: 364.1 kB / 0.6173 GB, free: 145.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007552/1.462, allocations: 2.777 MB / 0.62 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004191/1.467, allocations: 260.3 kB / 0.6203 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006216/1.467, allocations: 101.8 kB / 0.6203 GB, free: 143.6 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.002249/1.47, allocations: 0.7198 MB / 0.6211 GB, free: 143.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006184/1.47, allocations: 199.1 kB / 0.6212 GB, free: 143 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0169/1.487, allocations: 7.737 MB / 0.6288 GB, free: 135.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/1.487, allocations: 91.86 kB / 0.6289 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.487, allocations: 0 / 0.6289 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01316/1.5, allocations: 6.643 MB / 0.6354 GB, free: 128.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/1.523, allocations: 10.86 MB / 0.646 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/1.523, allocations: 0 / 0.646 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003291/1.526, allocations: 399.5 kB / 0.6464 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002443/1.529, allocations: 378.9 kB / 0.6467 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004601/1.529, allocations: 59.97 kB / 0.6468 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00177/1.531, allocations: 2.58 MB / 0.6493 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.531, allocations: 3.781 kB / 0.6493 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/1.547, allocations: 7.156 MB / 0.6563 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002128/1.549, allocations: 0.7338 MB / 0.657 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007536/1.55, allocations: 51.98 kB / 0.6571 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003095/1.553, allocations: 191.6 kB / 0.6572 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006711/1.553, allocations: 145.8 kB / 0.6574 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002254/1.554, allocations: 63.97 kB / 0.6574 GB, free: 105.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002455/1.556, allocations: 1.163 MB / 0.6586 GB, free: 104.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.556, allocations: 2.953 kB / 0.6586 GB, free: 104.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009827/1.566, allocations: 2.569 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.02736/1.593, allocations: 9.723 MB / 0.6706 GB, free: 92.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0158/1.609, allocations: 5.34 MB / 0.6758 GB, free: 87.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.609, allocations: 0 / 0.6758 GB, free: 87.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005559/1.615, allocations: 2.413 MB / 0.6782 GB, free: 84.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007566/1.623, allocations: 0.8611 MB / 0.679 GB, free: 83.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02856/1.651, allocations: 21.23 MB / 0.6997 GB, free: 62.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/1.654, allocations: 2.309 MB / 0.702 GB, free: 60.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005895/1.66, allocations: 1.735 MB / 0.7037 GB, free: 58.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00274/1.663, allocations: 1.296 MB / 0.7049 GB, free: 57.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.774e-06/1.663, allocations: 0 / 0.7049 GB, free: 57.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6836/2.347, allocations: 119.9 MB / 0.8221 GB, free: 109.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002832/2.347, allocations: 255.5 kB / 0.8223 GB, free: 109.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/12.9, allocations: 0 / 0.8223 GB, free: 109.4 MB / 442.7 MB