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.SeriesPipes12.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.SeriesPipes12,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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.214/2.214, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004284/0.0004286, allocations: 12 kB / 314.3 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2726, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1059/0.3785, allocations: 77.63 MB / 446.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3368/0.7154, allocations: 32.7 MB / 479.5 MB, free: 6.812 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002805/0.7182, allocations: 95.31 kB / 479.6 MB, free: 6.812 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003395/0.7217, allocations: 1.083 MB / 480.7 MB, free: 6.809 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01951/0.7412, allocations: 6.25 MB / 487 MB, free: 6.734 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02151/0.7627, allocations: 7.055 MB / 494 MB, free: 6.637 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007246/0.77, allocations: 4.564 MB / 498.6 MB, free: 6.633 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002108/0.7722, allocations: 1.231 MB / 499.8 MB, free: 6.516 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004504/0.7767, allocations: 2.071 MB / 0.4901 GB, free: 6.512 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03475/0.8115, allocations: 20.96 MB / 0.5106 GB, free: 13.88 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006419/0.8122, allocations: 108 kB / 0.5107 GB, free: 13.77 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0255/0.8377, allocations: 10.05 MB / 0.5205 GB, free: 5.973 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001559/0.8393, allocations: 0.7475 MB / 0.5212 GB, free: 5.484 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.8404, allocations: 0.5161 MB / 0.5217 GB, free: 5.188 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01507/0.8555, allocations: 6.522 MB / 0.5281 GB, free: 15.64 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.27e-06/0.8556, allocations: 0 / 0.5281 GB, free: 15.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.383e-06/0.8556, allocations: 2.844 kB / 0.5281 GB, free: 15.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.54e-05/0.8556, allocations: 4 kB / 0.5281 GB, free: 15.63 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01108/0.8667, allocations: 3.59 MB / 0.5316 GB, free: 12.26 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.8668, allocations: 12.03 kB / 0.5316 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007461/0.8743, allocations: 0.8395 MB / 0.5324 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004093/0.8784, allocations: 1.569 MB / 0.534 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002401/0.8787, allocations: 176.9 kB / 0.5341 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005046/0.8792, allocations: 210.3 kB / 0.5343 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009875/0.8891, allocations: 3.504 MB / 0.5378 GB, free: 7.305 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.658e-05/0.8892, allocations: 6.625 kB / 0.5378 GB, free: 7.301 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/0.8895, allocations: 83.7 kB / 0.5379 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000331/0.8898, allocations: 196.4 kB / 0.538 GB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01022/0.9001, allocations: 3.276 MB / 0.5412 GB, free: 4.758 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.02444/0.9246, allocations: 14.98 MB / 0.5559 GB, free: 6.938 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007421/0.932, allocations: 2.305 MB / 0.5581 GB, free: 5.281 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04484/0.9769, allocations: 19.04 MB / 0.5767 GB, free: 404 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005762/0.9827, allocations: 1.624 MB / 0.5783 GB, free: 15.14 MB / 474.7 MB Notification: Performance of pre-optimization done (n=155): time 6.28e-06/0.9828, allocations: 4 kB / 0.5783 GB, free: 15.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=171): time 0.02638/1.009, allocations: 8.149 MB / 0.5863 GB, free: 9.004 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/1.009, allocations: 230.9 kB / 0.5865 GB, free: 8.734 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00287/1.012, allocations: 1.576 MB / 0.588 GB, free: 7.555 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003127/1.013, allocations: 58.2 kB / 0.5881 GB, free: 7.516 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009532/1.014, allocations: 0.9502 MB / 0.589 GB, free: 6.875 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007933/1.014, allocations: 0.5855 MB / 0.5896 GB, free: 6.375 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.015, allocations: 40.38 kB / 0.5896 GB, free: 6.367 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000263/1.015, allocations: 397 kB / 0.59 GB, free: 6.004 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002848/1.018, allocations: 1.14 MB / 0.5911 GB, free: 5.227 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003398/1.021, allocations: 1.679 MB / 0.5927 GB, free: 3.746 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003267/1.024, allocations: 1.383 MB / 0.5941 GB, free: 2.859 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/1.024, allocations: 4 kB / 0.5941 GB, free: 2.855 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.009439/1.034, allocations: 3.839 MB / 0.5978 GB, free: 276 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005548/1.035, allocations: 0.5528 MB / 0.5984 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.193e-05/1.035, allocations: 18.73 kB / 0.5984 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.019/1.054, allocations: 2.975 MB / 0.6013 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/1.055, allocations: 338.2 kB / 0.6016 GB, free: 12.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007578/1.063, allocations: 3.489 MB / 0.605 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/1.066, allocations: 251.3 kB / 0.6053 GB, free: 9.879 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003179/1.066, allocations: 104.2 kB / 0.6054 GB, free: 9.797 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.066, allocations: 4 kB / 0.6054 GB, free: 9.793 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008827/1.075, allocations: 3.564 MB / 0.6089 GB, free: 7.414 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-05/1.075, allocations: 19.95 kB / 0.6089 GB, free: 7.395 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00865/1.084, allocations: 1.712 MB / 0.6106 GB, free: 5.945 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/1.085, allocations: 367.4 kB / 0.6109 GB, free: 5.625 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005668/1.091, allocations: 2.762 MB / 0.6136 GB, free: 3.543 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/1.093, allocations: 256.4 kB / 0.6138 GB, free: 3.324 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000271/1.094, allocations: 102.1 kB / 0.6139 GB, free: 3.246 MB / 490.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: 23 (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,valveOpening1.nextEventScaled,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 (169): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.00164/1.095, allocations: 0.7289 MB / 0.6147 GB, free: 2.727 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005024/1.096, allocations: 199.6 kB / 0.6148 GB, free: 2.531 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01528/1.111, allocations: 7.733 MB / 0.6224 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001142/1.111, allocations: 91.86 kB / 0.6225 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.111, allocations: 2.719 kB / 0.6225 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01239/1.124, allocations: 6.642 MB / 0.629 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02067/1.144, allocations: 10.87 MB / 0.6396 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/1.144, allocations: 0 / 0.6396 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002285/1.147, allocations: 402.4 kB / 0.64 GB, free: 8.469 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/1.149, allocations: 381.7 kB / 0.6403 GB, free: 8.086 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/1.149, allocations: 59.97 kB / 0.6404 GB, free: 8.027 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/1.152, allocations: 2.579 MB / 0.6429 GB, free: 5.352 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.606e-06/1.152, allocations: 0 / 0.6429 GB, free: 5.352 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01435/1.166, allocations: 7.16 MB / 0.6499 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001856/1.168, allocations: 0.7377 MB / 0.6506 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004807/1.168, allocations: 55.98 kB / 0.6507 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001894/1.17, allocations: 194.3 kB / 0.6509 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003788/1.171, allocations: 149.8 kB / 0.651 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002048/1.171, allocations: 67.97 kB / 0.6511 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002336/1.173, allocations: 1.167 MB / 0.6522 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.03e-07/1.173, allocations: 0 / 0.6522 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00806/1.181, allocations: 2.585 MB / 0.6547 GB, free: 9.09 MB / 0.5261 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (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.008342/1.19, allocations: 2.094 MB / 0.6568 GB, free: 7.184 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01304/1.203, allocations: 5.414 MB / 0.6621 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.706e-06/1.203, allocations: 0 / 0.6621 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.2591/1.462, allocations: 2.427 MB / 0.6644 GB, free: 225.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005179/1.467, allocations: 0.8658 MB / 0.6653 GB, free: 225.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/1.483, allocations: 9.24 MB / 0.6743 GB, free: 222.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/1.485, allocations: 2.258 MB / 0.6765 GB, free: 221.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009187/1.486, allocations: 188.6 kB / 0.6767 GB, free: 221.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.745e-06/1.486, allocations: 0 / 0.6767 GB, free: 221.3 MB / 0.5261 GB Notification: Performance of Templates: time 0.1452/1.631, allocations: 95.97 MB / 0.7704 GB, free: 134.9 MB / 0.5261 GB