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.88/1.88, allocations: 209.2 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004402/0.0004403, allocations: 15.98 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.286, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.338/6.624, allocations: 2.545 GB / 2.868 GB, free: 75.13 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/6.624, allocations: 76.89 kB / 2.869 GB, free: 75.13 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.498/9.123, allocations: 0.5613 GB / 3.43 GB, free: 37.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.363e-06/9.123, allocations: 0 / 3.43 GB, free: 37.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001501/9.123, allocations: 48.05 kB / 3.43 GB, free: 37.26 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.0101/9.133, allocations: 2.964 MB / 3.433 GB, free: 35.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/9.133, allocations: 10.81 kB / 3.433 GB, free: 35.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00489/9.138, allocations: 0.5221 MB / 3.433 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004377/9.143, allocations: 1.45 MB / 3.435 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/9.143, allocations: 111.1 kB / 3.435 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/9.143, allocations: 121.8 kB / 3.435 GB, free: 35.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006209/9.149, allocations: 2.273 MB / 3.437 GB, free: 34.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-05/9.149, allocations: 7.344 kB / 3.437 GB, free: 34.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/9.15, allocations: 57.72 kB / 3.437 GB, free: 34.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/9.15, allocations: 102 kB / 3.437 GB, free: 34.85 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007015/9.157, allocations: 2.047 MB / 3.439 GB, free: 34.84 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.0135/9.17, allocations: 9.636 MB / 3.449 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004158/9.175, allocations: 1.382 MB / 3.45 GB, free: 28.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04008/9.215, allocations: 18.77 MB / 3.468 GB, free: 17.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00368/9.218, allocations: 1.029 MB / 3.469 GB, free: 17.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 4.927e-06/9.218, allocations: 0 / 3.469 GB, free: 17.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01779/9.236, allocations: 5.165 MB / 3.474 GB, free: 32.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/9.237, allocations: 280.3 kB / 3.475 GB, free: 31.94 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001854/9.238, allocations: 0.9861 MB / 3.476 GB, free: 31.78 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/9.239, allocations: 47.58 kB / 3.476 GB, free: 31.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005452/9.239, allocations: 0.6343 MB / 3.476 GB, free: 31.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003945/9.24, allocations: 353.9 kB / 3.477 GB, free: 31.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/9.24, allocations: 24.47 kB / 3.477 GB, free: 31.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/9.24, allocations: 362.9 kB / 3.477 GB, free: 30.87 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/9.242, allocations: 0.6764 MB / 3.478 GB, free: 30.87 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/9.244, allocations: 1.009 MB / 3.479 GB, free: 30.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/9.246, allocations: 0.8326 MB / 3.48 GB, free: 30.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/9.246, allocations: 0 / 3.48 GB, free: 30.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004934/9.251, allocations: 1.943 MB / 3.481 GB, free: 30.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00162/9.252, allocations: 3.253 MB / 3.485 GB, free: 26.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/9.252, allocations: 13.66 kB / 3.485 GB, free: 26.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006691/9.253, allocations: 141.7 kB / 3.485 GB, free: 26.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/9.255, allocations: 323.8 kB / 3.485 GB, free: 26.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/9.256, allocations: 1.26 MB / 3.486 GB, free: 25.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/9.258, allocations: 164 kB / 3.486 GB, free: 25.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/9.258, allocations: 64.88 kB / 3.487 GB, free: 25.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/9.258, allocations: 7.688 kB / 3.487 GB, free: 25.88 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004695/9.263, allocations: 1.837 MB / 3.488 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/9.263, allocations: 11.06 kB / 3.488 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006619/9.264, allocations: 139.8 kB / 3.488 GB, free: 25.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/9.265, allocations: 330.6 kB / 3.489 GB, free: 25.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001168/9.266, allocations: 1.251 MB / 3.49 GB, free: 24.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/9.268, allocations: 155.9 kB / 3.49 GB, free: 24.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/9.268, allocations: 66.02 kB / 3.49 GB, free: 24.71 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.001262/9.269, allocations: 0.5258 MB / 3.491 GB, free: 24.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003268/9.27, allocations: 136.9 kB / 3.491 GB, free: 24.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007768/9.278, allocations: 4.751 MB / 3.496 GB, free: 23.87 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.324e-05/9.278, allocations: 56.78 kB / 3.496 GB, free: 23.87 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.916e-06/9.278, allocations: 2.062 kB / 3.496 GB, free: 23.87 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006294/9.284, allocations: 3.981 MB / 3.499 GB, free: 23.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/9.295, allocations: 6.749 MB / 3.506 GB, free: 22.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/9.295, allocations: 0 / 3.506 GB, free: 22.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/9.297, allocations: 242.4 kB / 3.506 GB, free: 22.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/9.298, allocations: 196.8 kB / 3.506 GB, free: 22.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/9.298, allocations: 37.44 kB / 3.506 GB, free: 22.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/9.299, allocations: 1.287 MB / 3.508 GB, free: 21.76 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.065e-06/9.299, allocations: 7.609 kB / 3.508 GB, free: 21.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/9.308, allocations: 4.357 MB / 3.512 GB, free: 20.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/9.309, allocations: 0.5295 MB / 3.513 GB, free: 20.31 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/9.309, allocations: 23.84 kB / 3.513 GB, free: 20.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/9.311, allocations: 129.5 kB / 3.513 GB, free: 20.26 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/9.311, allocations: 88.47 kB / 3.513 GB, free: 20.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/9.311, allocations: 39.08 kB / 3.513 GB, free: 20.24 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001643/9.313, allocations: 0.8705 MB / 3.514 GB, free: 19.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.01e-07/9.313, allocations: 3.969 kB / 3.514 GB, free: 19.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008225/9.321, allocations: 2.163 MB / 3.516 GB, free: 19.43 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.01098/9.332, allocations: 2.364 MB / 3.518 GB, free: 18.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006849/9.339, allocations: 3.178 MB / 3.521 GB, free: 17.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.576e-06/9.339, allocations: 0 / 3.521 GB, free: 17.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003014/9.342, allocations: 1.453 MB / 3.523 GB, free: 17.01 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/9.346, allocations: 0.5782 MB / 3.523 GB, free: 16.87 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5668/9.913, allocations: 126.2 MB / 3.646 GB, free: 40.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/9.914, allocations: 1.698 MB / 3.648 GB, free: 40.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000676/9.915, allocations: 134.2 kB / 3.648 GB, free: 40.21 MB / 474.7 MB Notification: Performance of SimCode: time 1.645e-06/9.915, allocations: 0 / 3.648 GB, free: 40.21 MB / 474.7 MB Notification: Performance of Templates: time 0.09348/10.01, allocations: 68.49 MB / 3.715 GB, free: 9.176 MB / 474.7 MB