Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.925/1.925, allocations: 209.4 MB / 217.3 MB, free: 4.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.619e-05/1.625e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3188, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.264/6.583, allocations: 2.544 GB / 2.857 GB, free: 94.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/6.583, allocations: 76.3 kB / 2.857 GB, free: 94.34 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.461/9.044, allocations: 0.5549 GB / 3.412 GB, free: 34.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.117e-06/9.044, allocations: 0 / 3.412 GB, free: 34.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000143/9.044, allocations: 52.19 kB / 3.412 GB, free: 34.72 MB / 442.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.00918/9.054, allocations: 2.764 MB / 3.414 GB, free: 33.12 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/9.054, allocations: 8.844 kB / 3.414 GB, free: 33.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004767/9.058, allocations: 0.5215 MB / 3.415 GB, free: 32.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004324/9.063, allocations: 1.435 MB / 3.416 GB, free: 32.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/9.063, allocations: 57.83 kB / 3.416 GB, free: 32.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002694/9.063, allocations: 78.84 kB / 3.416 GB, free: 32.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00321/9.066, allocations: 1.555 MB / 3.418 GB, free: 31.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003238/9.07, allocations: 1.761 MB / 3.42 GB, free: 30.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/9.07, allocations: 11.88 kB / 3.42 GB, free: 30.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/9.07, allocations: 3.938 kB / 3.42 GB, free: 30.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/9.07, allocations: 103.8 kB / 3.42 GB, free: 30.86 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.4986/9.569, allocations: 73.3 MB / 3.491 GB, free: 40.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/9.571, allocations: 0.9147 MB / 3.492 GB, free: 40.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009877/9.572, allocations: 0.5478 MB / 3.493 GB, free: 40.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03708/9.609, allocations: 17.43 MB / 3.51 GB, free: 29.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001357/9.61, allocations: 0.7097 MB / 3.511 GB, free: 29.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=86): time 4.587e-06/9.61, allocations: 0 / 3.511 GB, free: 29.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=94): time 0.01617/9.626, allocations: 4.676 MB / 3.515 GB, free: 28.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/9.626, allocations: 378.9 kB / 3.515 GB, free: 27.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/9.628, allocations: 0.7954 MB / 3.516 GB, free: 27.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001759/9.628, allocations: 29.33 kB / 3.516 GB, free: 27.47 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005268/9.629, allocations: 0.6841 MB / 3.517 GB, free: 27.15 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003492/9.629, allocations: 321.5 kB / 3.517 GB, free: 26.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/9.629, allocations: 3.469 kB / 3.517 GB, free: 26.99 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/9.629, allocations: 364.1 kB / 3.518 GB, free: 26.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/9.63, allocations: 0.5932 MB / 3.518 GB, free: 26.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/9.632, allocations: 0.9097 MB / 3.519 GB, free: 26.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00894/9.641, allocations: 1.752 MB / 3.521 GB, free: 26.28 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/9.641, allocations: 0.5156 kB / 3.521 GB, free: 26.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01245/9.653, allocations: 2.723 MB / 3.523 GB, free: 26.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006681/9.654, allocations: 3.262 MB / 3.527 GB, free: 22.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.361e-05/9.654, allocations: 11.81 kB / 3.527 GB, free: 22.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004367/9.654, allocations: 126.1 kB / 3.527 GB, free: 22.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/9.656, allocations: 320.8 kB / 3.527 GB, free: 22.71 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000915/9.657, allocations: 1.267 MB / 3.528 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/9.659, allocations: 170.4 kB / 3.528 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/9.659, allocations: 66.92 kB / 3.529 GB, free: 21.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/9.659, allocations: 4.938 kB / 3.529 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01169/9.671, allocations: 2.52 MB / 3.531 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.542e-05/9.671, allocations: 14.91 kB / 3.531 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004165/9.672, allocations: 124.2 kB / 3.531 GB, free: 21.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/9.673, allocations: 321.5 kB / 3.531 GB, free: 21.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008889/9.674, allocations: 1.265 MB / 3.533 GB, free: 20.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/9.676, allocations: 143.1 kB / 3.533 GB, free: 20.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/9.676, allocations: 66.05 kB / 3.533 GB, free: 20.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * 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.0004469/9.676, allocations: 174.2 kB / 3.533 GB, free: 20.35 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003494/9.677, allocations: 125.1 kB / 3.533 GB, free: 20.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006989/9.684, allocations: 3.778 MB / 3.537 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-05/9.684, allocations: 42.89 kB / 3.537 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/9.684, allocations: 1.938 kB / 3.537 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005172/9.689, allocations: 2.977 MB / 3.54 GB, free: 19.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009948/9.699, allocations: 5.237 MB / 3.545 GB, free: 19.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/9.699, allocations: 0 / 3.545 GB, free: 19.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/9.7, allocations: 202.5 kB / 3.545 GB, free: 19.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005978/9.701, allocations: 173 kB / 3.545 GB, free: 19.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/9.701, allocations: 24.16 kB / 3.545 GB, free: 19.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009147/9.702, allocations: 1.346 MB / 3.547 GB, free: 18.06 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.963e-06/9.702, allocations: 0 / 3.547 GB, free: 18.06 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006964/9.709, allocations: 3.616 MB / 3.55 GB, free: 17.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/9.71, allocations: 497.6 kB / 3.551 GB, free: 17.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/9.711, allocations: 5.75 kB / 3.551 GB, free: 17.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/9.712, allocations: 98.42 kB / 3.551 GB, free: 17.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/9.712, allocations: 81.45 kB / 3.551 GB, free: 17.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/9.713, allocations: 35.72 kB / 3.551 GB, free: 17.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001563/9.714, allocations: 0.7981 MB / 3.552 GB, free: 17.26 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-06/9.714, allocations: 3.75 kB / 3.552 GB, free: 17.26 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007875/9.722, allocations: 2.096 MB / 3.554 GB, free: 17.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 25 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * 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.01061/9.733, allocations: 2.482 MB / 3.556 GB, free: 16.81 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005581/9.738, allocations: 2.763 MB / 3.559 GB, free: 16.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.407e-06/9.738, allocations: 0 / 3.559 GB, free: 16.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/9.741, allocations: 1.186 MB / 3.56 GB, free: 16.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/9.744, allocations: 0.508 MB / 3.56 GB, free: 16.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006855/9.751, allocations: 3.348 MB / 3.564 GB, free: 15.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/9.752, allocations: 1.613 MB / 3.565 GB, free: 14.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007159/9.753, allocations: 128.2 kB / 3.565 GB, free: 14.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.836e-06/9.753, allocations: 0 / 3.565 GB, free: 14.86 MB / 458.7 MB Notification: Performance of Templates: time 0.1023/9.855, allocations: 66.05 MB / 3.63 GB, free: 3.719 MB / 474.7 MB