Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.255/2.255, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004391/0.0004393, allocations: 12 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3278, allocations: 54.86 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.0833/0.4112, allocations: 55.58 MB / 424.8 MB, free: 5.035 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07395/0.4852, allocations: 25.96 MB / 450.7 MB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003353/0.4886, allocations: 71.44 kB / 450.8 MB, free: 10.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004697/0.4933, allocations: 0.7778 MB / 451.6 MB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02744/0.5208, allocations: 5.107 MB / 456.7 MB, free: 5.047 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01919/0.54, allocations: 5.525 MB / 462.2 MB, free: 15.51 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005893/0.546, allocations: 3.023 MB / 465.2 MB, free: 12.48 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.5478, allocations: 0.8161 MB / 466.1 MB, free: 11.64 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.5515, allocations: 1.402 MB / 467.5 MB, free: 10.24 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0244/0.576, allocations: 12.16 MB / 479.6 MB, free: 14.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000385/0.5764, allocations: 72 kB / 479.7 MB, free: 14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02871/0.6051, allocations: 9.185 MB / 488.9 MB, free: 4.809 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.6067, allocations: 490.6 kB / 489.3 MB, free: 4.328 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.6079, allocations: 352.9 kB / 489.7 MB, free: 3.977 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.6209, allocations: 5.231 MB / 494.9 MB, free: 14.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.378e-06/0.621, allocations: 0 / 494.9 MB, free: 14.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.636e-06/0.621, allocations: 0 / 494.9 MB, free: 14.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.762e-05/0.621, allocations: 0 / 494.9 MB, free: 14.73 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.00816/0.6292, allocations: 2.653 MB / 497.6 MB, free: 12.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.6293, allocations: 8.031 kB / 497.6 MB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004779/0.634, allocations: 0.5482 MB / 498.1 MB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/0.637, allocations: 1.097 MB / 499.2 MB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.6372, allocations: 110.4 kB / 499.3 MB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002832/0.6375, allocations: 124 kB / 499.5 MB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006346/0.6439, allocations: 2.228 MB / 0.4899 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.267e-05/0.6439, allocations: 3.938 kB / 0.4899 GB, free: 7.742 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001975/0.6441, allocations: 59.97 kB / 0.49 GB, free: 7.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002125/0.6444, allocations: 118.2 kB / 0.4901 GB, free: 7.566 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006618/0.651, allocations: 2.038 MB / 0.4921 GB, free: 5.52 MB / 426.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.2975/0.9485, allocations: 9.583 MB / 0.5014 GB, free: 121.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004831/0.9534, allocations: 1.379 MB / 0.5028 GB, free: 120.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04012/0.9936, allocations: 19.02 MB / 0.5214 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003677/0.9973, allocations: 1.027 MB / 0.5224 GB, free: 105.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 5.086e-06/0.9974, allocations: 0 / 0.5224 GB, free: 105.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=104): time 0.01586/1.013, allocations: 5.125 MB / 0.5274 GB, free: 100.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/1.013, allocations: 226.6 kB / 0.5276 GB, free: 100.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001619/1.015, allocations: 1.076 MB / 0.5286 GB, free: 99.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/1.015, allocations: 49.7 kB / 0.5287 GB, free: 99.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000421/1.016, allocations: 0.6586 MB / 0.5293 GB, free: 98.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/1.016, allocations: 359.3 kB / 0.5297 GB, free: 98.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/1.016, allocations: 24 kB / 0.5297 GB, free: 98.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/1.016, allocations: 366.7 kB / 0.53 GB, free: 98.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/1.018, allocations: 0.6747 MB / 0.5307 GB, free: 97.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/1.019, allocations: 1.04 MB / 0.5317 GB, free: 96.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/1.021, allocations: 0.8334 MB / 0.5325 GB, free: 95.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.528e-06/1.021, allocations: 4 kB / 0.5325 GB, free: 95.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004334/1.025, allocations: 1.942 MB / 0.5344 GB, free: 93.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/1.026, allocations: 417.1 kB / 0.5348 GB, free: 92.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-05/1.026, allocations: 15.66 kB / 0.5348 GB, free: 92.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006452/1.026, allocations: 143 kB / 0.535 GB, free: 92.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/1.028, allocations: 335.6 kB / 0.5353 GB, free: 92.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008447/1.029, allocations: 1.253 MB / 0.5365 GB, free: 91.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/1.031, allocations: 155.7 kB / 0.5367 GB, free: 90.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/1.031, allocations: 63.98 kB / 0.5367 GB, free: 90.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/1.031, allocations: 4 kB / 0.5367 GB, free: 90.84 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004149/1.035, allocations: 1.854 MB / 0.5386 GB, free: 88.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.039e-05/1.035, allocations: 15.95 kB / 0.5386 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005916/1.036, allocations: 146.2 kB / 0.5387 GB, free: 88.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/1.037, allocations: 327.5 kB / 0.539 GB, free: 88.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000759/1.038, allocations: 1.253 MB / 0.5402 GB, free: 87.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/1.04, allocations: 163.8 kB / 0.5404 GB, free: 87.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/1.04, allocations: 67.98 kB / 0.5405 GB, free: 86.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.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,valveOpening1.nextEventScaled,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 (158): * Single equations (assignments): 153 * 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.001016/1.041, allocations: 0.5365 MB / 0.541 GB, free: 86.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003125/1.041, allocations: 135.5 kB / 0.5411 GB, free: 86.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007133/1.048, allocations: 4.72 MB / 0.5457 GB, free: 81.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.155e-05/1.048, allocations: 63.86 kB / 0.5458 GB, free: 81.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/1.048, allocations: 0 / 0.5458 GB, free: 81.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006013/1.054, allocations: 3.948 MB / 0.5496 GB, free: 77.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/1.065, allocations: 6.694 MB / 0.5562 GB, free: 70.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/1.065, allocations: 4 kB / 0.5562 GB, free: 70.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/1.066, allocations: 239.7 kB / 0.5564 GB, free: 70.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009373/1.067, allocations: 194 kB / 0.5566 GB, free: 70.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/1.067, allocations: 35.98 kB / 0.5566 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007597/1.068, allocations: 1.288 MB / 0.5579 GB, free: 68.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.068, allocations: 8.172 kB / 0.5579 GB, free: 68.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00688/1.075, allocations: 4.324 MB / 0.5621 GB, free: 64.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.076, allocations: 0.5131 MB / 0.5626 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/1.076, allocations: 32 kB / 0.5627 GB, free: 63.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/1.077, allocations: 119.8 kB / 0.5628 GB, free: 63.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/1.077, allocations: 84.86 kB / 0.5628 GB, free: 63.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/1.078, allocations: 39.98 kB / 0.5629 GB, free: 63.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001316/1.079, allocations: 0.8412 MB / 0.5637 GB, free: 62.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.18e-07/1.079, allocations: 4 kB / 0.5637 GB, free: 62.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005491/1.084, allocations: 2.046 MB / 0.5657 GB, free: 60.95 MB / 426.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: 36 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.007125/1.092, allocations: 1.851 MB / 0.5675 GB, free: 59.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006455/1.098, allocations: 3.257 MB / 0.5707 GB, free: 56.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.494e-06/1.098, allocations: 4 kB / 0.5707 GB, free: 56.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/1.101, allocations: 1.471 MB / 0.5721 GB, free: 54.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003168/1.104, allocations: 0.5884 MB / 0.5727 GB, free: 54.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008965/1.113, allocations: 5.936 MB / 0.5785 GB, free: 48.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/1.114, allocations: 1.701 MB / 0.5802 GB, free: 46.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006444/1.115, allocations: 131.4 kB / 0.5803 GB, free: 46.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.741e-06/1.115, allocations: 4 kB / 0.5803 GB, free: 46.32 MB / 426.7 MB Notification: Performance of Templates: time 0.09973/1.214, allocations: 67.89 MB / 0.6466 GB, free: 10.37 MB / 458.7 MB