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.848/1.848, allocations: 209.3 MB / 224.8 MB, free: 276 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004591/0.0004593, allocations: 19.94 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2841, allocations: 48.69 MB / 331.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.0789/0.3631, allocations: 55.14 MB / 386.3 MB, free: 7.289 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04672/0.4098, allocations: 25.82 MB / 412.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002491/0.4124, allocations: 71.44 kB / 412.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002927/0.4153, allocations: 0.7661 MB / 413 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01895/0.4343, allocations: 5.053 MB / 418 MB, free: 7.504 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01914/0.4535, allocations: 5.496 MB / 423.5 MB, free: 2 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005921/0.4594, allocations: 2.996 MB / 426.5 MB, free: 15 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001826/0.4613, allocations: 0.8083 MB / 427.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003847/0.4652, allocations: 1.402 MB / 428.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02477/0.49, allocations: 12.03 MB / 440.8 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004091/0.4905, allocations: 68 kB / 440.8 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02316/0.5136, allocations: 9.052 MB / 449.9 MB, free: 7.598 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.5148, allocations: 494.5 kB / 450.4 MB, free: 7.113 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007611/0.5155, allocations: 348.9 kB / 450.7 MB, free: 6.766 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01236/0.5279, allocations: 5.176 MB / 455.9 MB, free: 1.578 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.21e-06/0.528, allocations: 0 / 455.9 MB, free: 1.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.528, allocations: 0 / 455.9 MB, free: 1.578 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.164e-05/0.528, allocations: 0 / 455.9 MB, free: 1.578 MB / 378.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.00823/0.5363, allocations: 2.601 MB / 458.5 MB, free: 14.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.5364, allocations: 12.03 kB / 458.5 MB, free: 14.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004884/0.5412, allocations: 0.5248 MB / 459 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003019/0.5443, allocations: 1.085 MB / 460.1 MB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.5445, allocations: 114.4 kB / 460.2 MB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/0.5449, allocations: 124 kB / 460.3 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006799/0.5517, allocations: 2.216 MB / 462.6 MB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/0.5518, allocations: 11.94 kB / 462.6 MB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.552, allocations: 55.94 kB / 462.6 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/0.5523, allocations: 118.2 kB / 462.7 MB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007135/0.5594, allocations: 2.038 MB / 464.8 MB, free: 8.449 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.2424/0.8018, allocations: 9.564 MB / 474.3 MB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005138/0.807, allocations: 1.374 MB / 475.7 MB, free: 116.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03948/0.8465, allocations: 18.98 MB / 494.7 MB, free: 103.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003693/0.8502, allocations: 1.016 MB / 495.7 MB, free: 102.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=94): time 5.965e-06/0.8503, allocations: 0 / 495.7 MB, free: 102.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=102): time 0.02281/0.8731, allocations: 5.124 MB / 0.4891 GB, free: 99.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.941e-05/0.8732, allocations: 218.4 kB / 0.4893 GB, free: 99.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001679/0.8749, allocations: 1.086 MB / 0.4904 GB, free: 99.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/0.8751, allocations: 45.08 kB / 0.4904 GB, free: 99.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004321/0.8755, allocations: 0.6571 MB / 0.4911 GB, free: 98.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.8759, allocations: 356 kB / 0.4914 GB, free: 98.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.876, allocations: 28.42 kB / 0.4914 GB, free: 98.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.8761, allocations: 369.3 kB / 0.4918 GB, free: 97.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.8777, allocations: 0.6703 MB / 0.4924 GB, free: 97.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.8795, allocations: 1.028 MB / 0.4934 GB, free: 96.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.8813, allocations: 0.83 MB / 0.4942 GB, free: 96.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.003e-06/0.8813, allocations: 0 / 0.4942 GB, free: 96.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004749/0.8861, allocations: 1.945 MB / 0.4961 GB, free: 95.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001916/0.8863, allocations: 414 kB / 0.4965 GB, free: 94.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.8864, allocations: 11.66 kB / 0.4965 GB, free: 94.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000635/0.887, allocations: 149.6 kB / 0.4967 GB, free: 94.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.8887, allocations: 331.5 kB / 0.497 GB, free: 94.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007848/0.8895, allocations: 1.261 MB / 0.4982 GB, free: 92.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.8911, allocations: 155.9 kB / 0.4984 GB, free: 92.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.8913, allocations: 67.97 kB / 0.4985 GB, free: 92.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.8913, allocations: 4 kB / 0.4985 GB, free: 92.74 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004075/0.8954, allocations: 1.856 MB / 0.5003 GB, free: 90.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.8954, allocations: 13.97 kB / 0.5003 GB, free: 90.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005959/0.896, allocations: 142 kB / 0.5004 GB, free: 90.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/0.8976, allocations: 335.5 kB / 0.5007 GB, free: 90.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000733/0.8984, allocations: 1.249 MB / 0.502 GB, free: 89.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.8996, allocations: 155.7 kB / 0.5021 GB, free: 88.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.8998, allocations: 63.98 kB / 0.5022 GB, free: 88.87 MB / 394.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: 16 (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,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.0009716/0.9008, allocations: 0.5373 MB / 0.5027 GB, free: 88.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/0.901, allocations: 134.4 kB / 0.5028 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006937/0.908, allocations: 4.719 MB / 0.5074 GB, free: 83.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.041e-05/0.9081, allocations: 59.91 kB / 0.5075 GB, free: 83.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.615e-06/0.9081, allocations: 0 / 0.5075 GB, free: 83.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005637/0.9138, allocations: 3.956 MB / 0.5113 GB, free: 79.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.924, allocations: 6.682 MB / 0.5179 GB, free: 72.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.924, allocations: 3.984 kB / 0.5179 GB, free: 72.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/0.9253, allocations: 243.7 kB / 0.5181 GB, free: 72.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009434/0.9263, allocations: 193.2 kB / 0.5183 GB, free: 72.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.9265, allocations: 35.98 kB / 0.5183 GB, free: 72.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007669/0.9273, allocations: 1.288 MB / 0.5196 GB, free: 70.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.643e-06/0.9273, allocations: 0 / 0.5196 GB, free: 70.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006997/0.9343, allocations: 4.312 MB / 0.5238 GB, free: 66.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009512/0.9353, allocations: 0.5208 MB / 0.5243 GB, free: 65.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002593/0.9356, allocations: 35.98 kB / 0.5243 GB, free: 65.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.9367, allocations: 111.8 kB / 0.5244 GB, free: 65.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.9369, allocations: 84.88 kB / 0.5245 GB, free: 65.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.937, allocations: 35.98 kB / 0.5246 GB, free: 65.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001287/0.9383, allocations: 0.8449 MB / 0.5254 GB, free: 64.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.3e-07/0.9383, allocations: 0 / 0.5254 GB, free: 64.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005306/0.9436, allocations: 2.043 MB / 0.5274 GB, free: 62.89 MB / 394.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,$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) * 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.00675/0.9504, allocations: 1.846 MB / 0.5292 GB, free: 61.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006282/0.9567, allocations: 3.192 MB / 0.5323 GB, free: 58.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.349e-06/0.9568, allocations: 0 / 0.5323 GB, free: 58.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/0.9591, allocations: 1.444 MB / 0.5337 GB, free: 56.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.9623, allocations: 0.574 MB / 0.5343 GB, free: 56.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008436/0.9708, allocations: 5.917 MB / 0.5401 GB, free: 50.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.972, allocations: 1.697 MB / 0.5417 GB, free: 48.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/0.9727, allocations: 135.4 kB / 0.5418 GB, free: 48.41 MB / 394.7 MB Notification: Performance of SimCode: time 2.108e-06/0.9727, allocations: 0 / 0.5418 GB, free: 48.41 MB / 394.7 MB Notification: Performance of Templates: time 0.0964/1.069, allocations: 67.58 MB / 0.6078 GB, free: 12.77 MB / 426.7 MB