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.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.863/1.863, allocations: 209.2 MB / 224.8 MB, free: 1.141 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004413/0.0004411, allocations: 16 kB / 282.5 MB, free: 9.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08752, allocations: 48.7 MB / 331.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.3218/0.4093, allocations: 77.01 MB / 408.2 MB, free: 7.949 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05954/0.4689, allocations: 32.53 MB / 440.7 MB, free: 7.355 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003366/0.4723, allocations: 95.25 kB / 440.8 MB, free: 7.262 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004149/0.4765, allocations: 1.081 MB / 441.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02338/0.4999, allocations: 6.163 MB / 448.1 MB, free: 15.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04182/0.5418, allocations: 7.029 MB / 455.1 MB, free: 8.957 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01423/0.556, allocations: 4.508 MB / 459.6 MB, free: 4.441 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004191/0.5603, allocations: 1.226 MB / 460.8 MB, free: 3.195 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009032/0.5694, allocations: 2.056 MB / 462.9 MB, free: 1.133 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0474/0.6168, allocations: 20.74 MB / 483.6 MB, free: 12.38 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006368/0.6175, allocations: 108 kB / 483.7 MB, free: 12.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02531/0.6428, allocations: 9.887 MB / 493.6 MB, free: 2.379 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001568/0.6444, allocations: 0.7439 MB / 494.4 MB, free: 1.633 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.6456, allocations: 0.5161 MB / 494.9 MB, free: 1.109 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2825/0.9281, allocations: 6.448 MB / 0.4896 GB, free: 38.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.263e-06/0.9282, allocations: 0 / 0.4896 GB, free: 38.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.9282, allocations: 3.656 kB / 0.4896 GB, free: 38.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000108/0.9283, allocations: 0 / 0.4896 GB, free: 38.1 MB / 410.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.01301/0.9413, allocations: 3.516 MB / 0.493 GB, free: 36.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.9414, allocations: 8.906 kB / 0.493 GB, free: 36.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007895/0.9493, allocations: 0.8147 MB / 0.4938 GB, free: 36.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00458/0.9539, allocations: 1.575 MB / 0.4954 GB, free: 35.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.9542, allocations: 177.1 kB / 0.4955 GB, free: 35.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007188/0.955, allocations: 198.6 kB / 0.4957 GB, free: 35.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01198/0.967, allocations: 3.503 MB / 0.4991 GB, free: 35.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.343e-05/0.9671, allocations: 10.38 kB / 0.4991 GB, free: 35.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003425/0.9675, allocations: 85.14 kB / 0.4992 GB, free: 35.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003314/0.9678, allocations: 190.4 kB / 0.4994 GB, free: 35.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0121/0.9799, allocations: 3.276 MB / 0.5026 GB, free: 35.47 MB / 410.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.02447/1.004, allocations: 14.96 MB / 0.5172 GB, free: 26.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008186/1.013, allocations: 2.304 MB / 0.5195 GB, free: 26.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04212/1.055, allocations: 19.01 MB / 0.538 GB, free: 13.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005896/1.061, allocations: 1.614 MB / 0.5396 GB, free: 13.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 6.375e-06/1.061, allocations: 4 kB / 0.5396 GB, free: 13.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.02696/1.088, allocations: 8.144 MB / 0.5476 GB, free: 9.477 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/1.088, allocations: 234.1 kB / 0.5478 GB, free: 9.203 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002529/1.09, allocations: 1.574 MB / 0.5493 GB, free: 8.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000374/1.091, allocations: 55.33 kB / 0.5494 GB, free: 7.984 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006992/1.092, allocations: 0.9519 MB / 0.5503 GB, free: 7.344 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006811/1.092, allocations: 0.5751 MB / 0.5509 GB, free: 6.852 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/1.092, allocations: 40.75 kB / 0.5509 GB, free: 6.844 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/1.093, allocations: 402.5 kB / 0.5513 GB, free: 6.477 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00265/1.095, allocations: 1.13 MB / 0.5524 GB, free: 5.707 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003076/1.098, allocations: 1.678 MB / 0.554 GB, free: 4.227 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003134/1.102, allocations: 1.376 MB / 0.5554 GB, free: 3.344 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/1.102, allocations: 4 kB / 0.5554 GB, free: 3.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.009003/1.111, allocations: 3.85 MB / 0.5591 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002724/1.111, allocations: 0.5519 MB / 0.5597 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.735e-05/1.111, allocations: 23.94 kB / 0.5597 GB, free: 24 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0193/1.13, allocations: 2.962 MB / 0.5626 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/1.132, allocations: 332.9 kB / 0.5629 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007768/1.14, allocations: 3.481 MB / 0.5663 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003029/1.143, allocations: 252.2 kB / 0.5665 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000359/1.143, allocations: 107.3 kB / 0.5667 GB, free: 10.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/1.143, allocations: 4 kB / 0.5667 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009735/1.153, allocations: 3.624 MB / 0.5702 GB, free: 7.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-05/1.153, allocations: 16 kB / 0.5702 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008665/1.162, allocations: 1.708 MB / 0.5719 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/1.164, allocations: 371.4 kB / 0.5722 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/1.17, allocations: 2.758 MB / 0.5749 GB, free: 3.977 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002438/1.172, allocations: 260.9 kB / 0.5752 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/1.172, allocations: 98.36 kB / 0.5753 GB, free: 3.68 MB / 426.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 (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.001815/1.174, allocations: 0.7241 MB / 0.576 GB, free: 3.156 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005456/1.175, allocations: 197.3 kB / 0.5762 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/1.189, allocations: 7.742 MB / 0.5837 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001044/1.19, allocations: 88.92 kB / 0.5838 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.19, allocations: 0 / 0.5838 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01207/1.202, allocations: 6.642 MB / 0.5903 GB, free: 9.062 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/1.223, allocations: 10.86 MB / 0.6009 GB, free: 1.941 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/1.223, allocations: 0 / 0.6009 GB, free: 1.941 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002337/1.225, allocations: 398.3 kB / 0.6013 GB, free: 1.582 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/1.227, allocations: 382.2 kB / 0.6016 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003774/1.228, allocations: 67.83 kB / 0.6017 GB, free: 1.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002447/1.23, allocations: 2.575 MB / 0.6042 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.46e-06/1.23, allocations: 0 / 0.6042 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/1.245, allocations: 7.158 MB / 0.6112 GB, free: 9.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002126/1.247, allocations: 0.7293 MB / 0.6119 GB, free: 9.305 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005385/1.247, allocations: 51.23 kB / 0.612 GB, free: 9.285 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/1.249, allocations: 198.6 kB / 0.6122 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003901/1.25, allocations: 141 kB / 0.6123 GB, free: 8.992 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002071/1.25, allocations: 66.47 kB / 0.6124 GB, free: 8.941 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002339/1.252, allocations: 1.168 MB / 0.6135 GB, free: 8.059 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.086e-06/1.252, allocations: 1.422 kB / 0.6135 GB, free: 8.059 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01037/1.263, allocations: 2.565 MB / 0.616 GB, free: 5.652 MB / 458.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.01115/1.274, allocations: 2.085 MB / 0.618 GB, free: 3.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01344/1.287, allocations: 5.339 MB / 0.6233 GB, free: 64 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.287, allocations: 128 / 0.6233 GB, free: 64 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005361/1.293, allocations: 2.405 MB / 0.6256 GB, free: 13.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005485/1.298, allocations: 0.8606 MB / 0.6264 GB, free: 13.07 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01885/1.317, allocations: 9.236 MB / 0.6355 GB, free: 3.918 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003042/1.32, allocations: 2.258 MB / 0.6377 GB, free: 1.629 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.321, allocations: 191.4 kB / 0.6379 GB, free: 1.441 MB / 474.7 MB Notification: Performance of SimCode: time 1.715e-06/1.321, allocations: 0 / 0.6379 GB, free: 1.441 MB / 474.7 MB Notification: Performance of Templates: time 0.3864/1.708, allocations: 95.59 MB / 0.7312 GB, free: 170.6 MB / 0.4948 GB