Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.872/1.872, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006373/0.0006374, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3765, allocations: 48.71 MB / 331.8 MB, free: 6.473 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.533/7.91, allocations: 2.545 GB / 2.869 GB, free: 90.84 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/7.91, allocations: 81.39 kB / 2.869 GB, free: 90.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.038/10.95, allocations: 0.5613 GB / 3.43 GB, free: 38.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.655e-06/10.95, allocations: 0 / 3.43 GB, free: 38.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002209/10.95, allocations: 41.86 kB / 3.43 GB, free: 38.96 MB / 458.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.01361/10.96, allocations: 2.961 MB / 3.433 GB, free: 37.39 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/10.96, allocations: 11.94 kB / 3.433 GB, free: 37.39 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005662/10.97, allocations: 0.5292 MB / 3.434 GB, free: 37.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00567/10.97, allocations: 1.451 MB / 3.435 GB, free: 36.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002152/10.97, allocations: 111.7 kB / 3.435 GB, free: 36.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005925/10.97, allocations: 125.9 kB / 3.435 GB, free: 36.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008078/10.98, allocations: 2.289 MB / 3.438 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.306e-05/10.98, allocations: 6.125 kB / 3.438 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003658/10.98, allocations: 58.73 kB / 3.438 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000211/10.98, allocations: 103.8 kB / 3.438 GB, free: 36.53 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008256/10.99, allocations: 2.041 MB / 3.44 GB, free: 36.51 MB / 458.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.02052/11.01, allocations: 9.646 MB / 3.449 GB, free: 30.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005911/11.02, allocations: 1.379 MB / 3.451 GB, free: 30.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05777/11.08, allocations: 18.77 MB / 3.469 GB, free: 18.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004111/11.08, allocations: 1.037 MB / 3.47 GB, free: 18.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.34e-06/11.08, allocations: 0 / 3.47 GB, free: 18.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.02102/11.1, allocations: 5.161 MB / 3.475 GB, free: 17.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.789e-05/11.1, allocations: 280.2 kB / 3.475 GB, free: 17.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/11.1, allocations: 1.111 MB / 3.476 GB, free: 17.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000385/11.1, allocations: 45.39 kB / 3.476 GB, free: 17.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006013/11.1, allocations: 0.6443 MB / 3.477 GB, free: 16.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005317/11.11, allocations: 356.4 kB / 3.477 GB, free: 16.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/11.11, allocations: 24 kB / 3.477 GB, free: 16.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/11.11, allocations: 359.9 kB / 3.478 GB, free: 16.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/11.11, allocations: 0.6794 MB / 3.478 GB, free: 16.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002383/11.11, allocations: 1.015 MB / 3.479 GB, free: 15.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002432/11.11, allocations: 0.8261 MB / 3.48 GB, free: 15.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/11.11, allocations: 3.375 kB / 3.48 GB, free: 15.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006001/11.12, allocations: 1.938 MB / 3.482 GB, free: 15.79 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002502/11.12, allocations: 375 kB / 3.482 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.561e-05/11.12, allocations: 11.09 kB / 3.482 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007882/11.12, allocations: 141.5 kB / 3.483 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002592/11.12, allocations: 322.8 kB / 3.483 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009727/11.12, allocations: 1.256 MB / 3.484 GB, free: 14.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/11.13, allocations: 155.4 kB / 3.484 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002889/11.13, allocations: 60.23 kB / 3.484 GB, free: 14.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/11.13, allocations: 3.812 kB / 3.484 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005509/11.13, allocations: 1.853 MB / 3.486 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.069e-05/11.13, allocations: 7.688 kB / 3.486 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007276/11.13, allocations: 145.1 kB / 3.486 GB, free: 14.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/11.13, allocations: 313.5 kB / 3.487 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/11.14, allocations: 1.262 MB / 3.488 GB, free: 29.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/11.14, allocations: 158.6 kB / 3.488 GB, free: 29.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/11.14, allocations: 64.92 kB / 3.488 GB, free: 29.07 MB / 474.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,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 (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.001499/11.14, allocations: 0.5264 MB / 3.489 GB, free: 28.83 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004078/11.14, allocations: 136 kB / 3.489 GB, free: 28.76 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009765/11.15, allocations: 4.767 MB / 3.493 GB, free: 26.75 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.158e-05/11.15, allocations: 51.16 kB / 3.493 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/11.15, allocations: 0 / 3.493 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00787/11.16, allocations: 3.98 MB / 3.497 GB, free: 24.94 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/11.17, allocations: 6.74 MB / 3.504 GB, free: 22.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/11.17, allocations: 0 / 3.504 GB, free: 22.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/11.17, allocations: 243.2 kB / 3.504 GB, free: 22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/11.18, allocations: 190.3 kB / 3.504 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/11.18, allocations: 39.89 kB / 3.504 GB, free: 21.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00113/11.18, allocations: 1.297 MB / 3.506 GB, free: 20.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/11.18, allocations: 0 / 3.506 GB, free: 20.77 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009714/11.19, allocations: 4.368 MB / 3.51 GB, free: 18.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/11.19, allocations: 0.526 MB / 3.51 GB, free: 17.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000632/11.19, allocations: 31.89 kB / 3.51 GB, free: 17.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/11.19, allocations: 124.6 kB / 3.511 GB, free: 17.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004325/11.19, allocations: 82.89 kB / 3.511 GB, free: 17.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/11.19, allocations: 47.14 kB / 3.511 GB, free: 17.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001947/11.19, allocations: 0.8668 MB / 3.511 GB, free: 16.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/11.19, allocations: 0 / 3.511 GB, free: 16.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009837/11.2, allocations: 2.17 MB / 3.514 GB, free: 14.83 MB / 474.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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.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.01407/11.22, allocations: 2.373 MB / 3.516 GB, free: 12.97 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01018/11.23, allocations: 3.179 MB / 3.519 GB, free: 10.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/11.23, allocations: 2.719 kB / 3.519 GB, free: 10.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003816/11.23, allocations: 1.452 MB / 3.52 GB, free: 8.832 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005633/11.24, allocations: 0.5752 MB / 3.521 GB, free: 8.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8193/12.06, allocations: 125.5 MB / 3.644 GB, free: 40.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/12.06, allocations: 1.698 MB / 3.645 GB, free: 39.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009705/12.06, allocations: 133.2 kB / 3.645 GB, free: 39.31 MB / 474.7 MB Notification: Performance of SimCode: time 1.473e-06/12.06, allocations: 0 / 3.645 GB, free: 39.31 MB / 474.7 MB Notification: Performance of Templates: time 0.4956/12.56, allocations: 68.48 MB / 3.712 GB, free: 62.52 MB / 490.7 MB