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.SeriesPipes1.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.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.868/1.868, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004369, allocations: 12 kB / 282.5 MB, free: 9.652 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2795, allocations: 48.7 MB / 331.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.1096/0.3891, allocations: 77.01 MB / 408.2 MB, free: 1.383 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0579/0.447, allocations: 32.52 MB / 440.7 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00294/0.45, allocations: 95.25 kB / 440.8 MB, free: 0.707 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003519/0.4535, allocations: 1.081 MB / 441.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02181/0.4754, allocations: 6.175 MB / 448.1 MB, free: 9.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02735/0.5028, allocations: 7.016 MB / 455.1 MB, free: 2.398 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009799/0.5126, allocations: 4.446 MB / 459.5 MB, free: 13.95 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003899/0.5165, allocations: 1.221 MB / 460.8 MB, free: 12.7 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008009/0.5246, allocations: 2.072 MB / 462.8 MB, free: 10.62 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3657/0.8904, allocations: 20.73 MB / 483.6 MB, free: 22.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005909/0.891, allocations: 108.4 kB / 483.7 MB, free: 22.43 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02166/0.9127, allocations: 9.886 MB / 493.5 MB, free: 22.41 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.914, allocations: 0.7454 MB / 494.3 MB, free: 22.41 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009891/0.915, allocations: 0.5142 MB / 494.8 MB, free: 22.38 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.9275, allocations: 6.453 MB / 0.4895 GB, free: 21.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.9276, allocations: 0 / 0.4895 GB, free: 21.97 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.989e-06/0.9276, allocations: 0 / 0.4895 GB, free: 21.97 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.618e-05/0.9276, allocations: 0 / 0.4895 GB, free: 21.97 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.01644/0.9441, allocations: 3.519 MB / 0.4929 GB, free: 20.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.9441, allocations: 10.31 kB / 0.493 GB, free: 20.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008157/0.9523, allocations: 0.8165 MB / 0.4938 GB, free: 20.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003771/0.9561, allocations: 1.57 MB / 0.4953 GB, free: 19.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.9563, allocations: 179.4 kB / 0.4955 GB, free: 19.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003877/0.9567, allocations: 198.6 kB / 0.4956 GB, free: 19.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009997/0.9667, allocations: 3.503 MB / 0.4991 GB, free: 18.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.375e-05/0.9669, allocations: 3 kB / 0.4991 GB, free: 18.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003228/0.9672, allocations: 83.73 kB / 0.4991 GB, free: 18.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002775/0.9675, allocations: 186 kB / 0.4993 GB, free: 18.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.9778, allocations: 3.283 MB / 0.5025 GB, free: 16.25 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.02041/0.9982, allocations: 14.99 MB / 0.5172 GB, free: 2.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007098/1.005, allocations: 2.308 MB / 0.5194 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04437/1.05, allocations: 19 MB / 0.538 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00563/1.055, allocations: 1.622 MB / 0.5396 GB, free: 10.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 6.175e-06/1.055, allocations: 2.625 kB / 0.5396 GB, free: 10.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=169): time 0.03186/1.087, allocations: 8.819 MB / 0.5482 GB, free: 3.855 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/1.088, allocations: 234.9 kB / 0.5484 GB, free: 3.578 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/1.091, allocations: 1.579 MB / 0.5499 GB, free: 2.395 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003512/1.091, allocations: 54.77 kB / 0.55 GB, free: 2.359 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009676/1.092, allocations: 0.9479 MB / 0.5509 GB, free: 1.719 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007862/1.093, allocations: 0.5833 MB / 0.5515 GB, free: 1.223 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/1.093, allocations: 43 kB / 0.5515 GB, free: 1.215 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002637/1.093, allocations: 396.7 kB / 0.5519 GB, free: 0.8555 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002913/1.096, allocations: 1.14 MB / 0.553 GB, free: 76 kB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003606/1.1, allocations: 1.667 MB / 0.5547 GB, free: 14.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00356/1.103, allocations: 1.386 MB / 0.556 GB, free: 13.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.93e-05/1.103, allocations: 4 kB / 0.556 GB, free: 13.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.008548/1.112, allocations: 3.234 MB / 0.5592 GB, free: 11.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005253/1.113, allocations: 0.5577 MB / 0.5597 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.214e-05/1.113, allocations: 16 kB / 0.5597 GB, free: 10.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/1.114, allocations: 272.8 kB / 0.56 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002997/1.117, allocations: 0.533 MB / 0.5605 GB, free: 10.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/1.119, allocations: 2.499 MB / 0.563 GB, free: 7.633 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002781/1.122, allocations: 262.4 kB / 0.5632 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/1.123, allocations: 112.9 kB / 0.5633 GB, free: 7.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/1.123, allocations: 6.438 kB / 0.5633 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007951/1.131, allocations: 3.087 MB / 0.5663 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.205e-05/1.131, allocations: 16 kB / 0.5663 GB, free: 5.215 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/1.132, allocations: 276.8 kB / 0.5666 GB, free: 4.988 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002914/1.135, allocations: 0.5258 MB / 0.5671 GB, free: 4.516 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00238/1.137, allocations: 2.5 MB / 0.5696 GB, free: 2.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002354/1.14, allocations: 258.2 kB / 0.5698 GB, free: 1.871 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/1.14, allocations: 104.2 kB / 0.5699 GB, free: 1.789 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 (258): * Single equations (assignments): 251 * 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: 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 prepare postOptimizeDAE: time 0.001897/1.142, allocations: 0.7233 MB / 0.5706 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/1.142, allocations: 193.7 kB / 0.5708 GB, free: 1.086 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01467/1.157, allocations: 7.739 MB / 0.5784 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.157, allocations: 90.61 kB / 0.5784 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.157, allocations: 4 kB / 0.5784 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01189/1.169, allocations: 6.64 MB / 0.5849 GB, free: 7.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02021/1.189, allocations: 10.86 MB / 0.5955 GB, free: 72 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/1.19, allocations: 3.984 kB / 0.5955 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002363/1.192, allocations: 405.5 kB / 0.5959 GB, free: 15.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/1.194, allocations: 382.3 kB / 0.5963 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003539/1.194, allocations: 61.53 kB / 0.5964 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/1.197, allocations: 2.575 MB / 0.5989 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.42e-06/1.197, allocations: 0 / 0.5989 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/1.214, allocations: 7.164 MB / 0.6059 GB, free: 8.051 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002958/1.217, allocations: 0.7298 MB / 0.6066 GB, free: 7.426 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001021/1.218, allocations: 47.36 kB / 0.6066 GB, free: 7.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003405/1.221, allocations: 195.3 kB / 0.6068 GB, free: 7.246 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000666/1.222, allocations: 153.5 kB / 0.607 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003287/1.222, allocations: 67.59 kB / 0.607 GB, free: 7.059 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003445/1.226, allocations: 1.161 MB / 0.6082 GB, free: 6.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.05e-06/1.226, allocations: 0 / 0.6082 GB, free: 6.18 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00896/1.235, allocations: 2.565 MB / 0.6107 GB, free: 3.777 MB / 474.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.009241/1.244, allocations: 2.085 MB / 0.6127 GB, free: 1.941 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01266/1.257, allocations: 5.245 MB / 0.6178 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.793e-06/1.257, allocations: 2 kB / 0.6178 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004933/1.262, allocations: 2.408 MB / 0.6202 GB, free: 12.55 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005392/1.267, allocations: 0.8726 MB / 0.621 GB, free: 11.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/1.285, allocations: 9.19 MB / 0.63 GB, free: 2.586 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002732/1.288, allocations: 2.261 MB / 0.6322 GB, free: 304 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/1.289, allocations: 211.4 kB / 0.6324 GB, free: 92 kB / 490.7 MB Notification: Performance of SimCode: time 2.122e-06/1.289, allocations: 4 kB / 0.6324 GB, free: 88 kB / 490.7 MB Notification: Performance of Templates: time 0.4678/1.757, allocations: 115.4 MB / 0.7451 GB, free: 138.6 MB / 0.4948 GB