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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.814/1.814, allocations: 209.3 MB / 222.4 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.154e-05, allocations: 8 kB / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.08892, allocations: 48.71 MB / 326.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.2/6.289, allocations: 2.545 GB / 2.864 GB, free: 70.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/6.289, allocations: 72.91 kB / 2.864 GB, free: 70.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.496/8.785, allocations: 0.5598 GB / 3.424 GB, free: 14.78 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.831e-06/8.785, allocations: 0 / 3.424 GB, free: 14.78 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001489/8.785, allocations: 43.94 kB / 3.424 GB, free: 14.74 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.0104/8.795, allocations: 2.77 MB / 3.426 GB, free: 11.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/8.795, allocations: 8.031 kB / 3.426 GB, free: 11.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005124/8.8, allocations: 0.5224 MB / 3.427 GB, free: 11.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004804/8.805, allocations: 1.439 MB / 3.428 GB, free: 9.898 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/8.806, allocations: 122.6 kB / 3.428 GB, free: 9.777 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004132/8.806, allocations: 123.9 kB / 3.429 GB, free: 9.656 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006367/8.812, allocations: 2.256 MB / 3.431 GB, free: 7.254 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.006e-05/8.812, allocations: 7.938 kB / 3.431 GB, free: 7.246 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/8.813, allocations: 51.98 kB / 3.431 GB, free: 7.195 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001868/8.813, allocations: 102.2 kB / 3.431 GB, free: 7.094 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005918/8.819, allocations: 1.961 MB / 3.433 GB, free: 5.125 MB / 458.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.296/9.115, allocations: 9.628 MB / 3.442 GB, free: 31.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004054/9.119, allocations: 1.322 MB / 3.444 GB, free: 31.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/9.12, allocations: 0.6054 MB / 3.444 GB, free: 31.15 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04343/9.164, allocations: 18.82 MB / 3.463 GB, free: 19.42 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003351/9.167, allocations: 1.026 MB / 3.464 GB, free: 19.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.957e-06/9.167, allocations: 1.844 kB / 3.464 GB, free: 19.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01488/9.182, allocations: 4.384 MB / 3.468 GB, free: 18.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.984e-05/9.182, allocations: 280 kB / 3.468 GB, free: 18.43 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001785/9.184, allocations: 0.9637 MB / 3.469 GB, free: 18.28 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002469/9.184, allocations: 45.95 kB / 3.469 GB, free: 18.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/9.185, allocations: 0.6394 MB / 3.47 GB, free: 17.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/9.185, allocations: 358.9 kB / 3.47 GB, free: 17.78 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/9.185, allocations: 22.97 kB / 3.47 GB, free: 17.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/9.185, allocations: 365.4 kB / 3.47 GB, free: 17.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/9.187, allocations: 0.6096 MB / 3.471 GB, free: 17.47 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/9.188, allocations: 0.9301 MB / 3.472 GB, free: 17.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/9.19, allocations: 0.7633 MB / 3.473 GB, free: 17.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.673e-06/9.19, allocations: 3.375 kB / 3.473 GB, free: 17.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004184/9.194, allocations: 1.786 MB / 3.474 GB, free: 16.94 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001648/9.196, allocations: 3.268 MB / 3.478 GB, free: 29.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.933e-05/9.196, allocations: 9.25 kB / 3.478 GB, free: 29.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006358/9.196, allocations: 131.6 kB / 3.478 GB, free: 29.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/9.198, allocations: 322.3 kB / 3.478 GB, free: 29.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/9.199, allocations: 1.251 MB / 3.479 GB, free: 28.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/9.201, allocations: 160.7 kB / 3.479 GB, free: 28.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/9.202, allocations: 66.16 kB / 3.479 GB, free: 28.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/9.202, allocations: 3.312 kB / 3.479 GB, free: 28.49 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003891/9.205, allocations: 1.699 MB / 3.481 GB, free: 28.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/9.206, allocations: 13.03 kB / 3.481 GB, free: 28.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005942/9.206, allocations: 136.4 kB / 3.481 GB, free: 28.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001841/9.208, allocations: 321.3 kB / 3.482 GB, free: 28.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/9.209, allocations: 1.252 MB / 3.483 GB, free: 27.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/9.211, allocations: 152.1 kB / 3.483 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/9.211, allocations: 63.58 kB / 3.483 GB, free: 27.36 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 () * 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.0005243/9.211, allocations: 218.8 kB / 3.483 GB, free: 27.22 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/9.212, allocations: 137.4 kB / 3.483 GB, free: 27.15 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007263/9.219, allocations: 4.684 MB / 3.488 GB, free: 26.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.423e-05/9.219, allocations: 51.75 kB / 3.488 GB, free: 26.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/9.219, allocations: 0 / 3.488 GB, free: 26.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005697/9.225, allocations: 3.922 MB / 3.492 GB, free: 26.24 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/9.235, allocations: 6.654 MB / 3.498 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/9.235, allocations: 0 / 3.498 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/9.237, allocations: 239.7 kB / 3.499 GB, free: 25.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008723/9.238, allocations: 177.7 kB / 3.499 GB, free: 25.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/9.238, allocations: 38.67 kB / 3.499 GB, free: 25.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/9.239, allocations: 1.286 MB / 3.5 GB, free: 24.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.068e-06/9.239, allocations: 1.812 kB / 3.5 GB, free: 24.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006639/9.246, allocations: 4.147 MB / 3.504 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/9.247, allocations: 0.5371 MB / 3.505 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003044/9.247, allocations: 33.78 kB / 3.505 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/9.248, allocations: 113.5 kB / 3.505 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/9.249, allocations: 96.34 kB / 3.505 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/9.249, allocations: 38.23 kB / 3.505 GB, free: 24.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001505/9.25, allocations: 0.8542 MB / 3.506 GB, free: 23.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.79e-07/9.25, allocations: 0 / 3.506 GB, free: 23.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008278/9.259, allocations: 2.171 MB / 3.508 GB, free: 23.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) * 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.01099/9.27, allocations: 2.369 MB / 3.51 GB, free: 23.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005966/9.276, allocations: 2.998 MB / 3.513 GB, free: 23.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.032e-06/9.276, allocations: 0 / 3.513 GB, free: 23.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002479/9.278, allocations: 1.405 MB / 3.514 GB, free: 23.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003674/9.282, allocations: 0.579 MB / 3.515 GB, free: 23.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5652/9.847, allocations: 123.4 MB / 3.635 GB, free: 64.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/9.849, allocations: 1.699 MB / 3.637 GB, free: 64 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007659/9.85, allocations: 133.8 kB / 3.637 GB, free: 64 MB / 490.7 MB Notification: Performance of SimCode: time 2.095e-06/9.85, allocations: 0 / 3.637 GB, free: 64 MB / 490.7 MB Notification: Performance of Templates: time 0.1044/9.954, allocations: 68.16 MB / 3.704 GB, free: 60.65 MB / 490.7 MB