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.BranchingPipes15.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.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 1.935/1.935, allocations: 209.2 MB / 224.8 MB, free: 1.363 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004336/0.0004338, allocations: 12 kB / 282.5 MB, free: 9.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08784, allocations: 48.7 MB / 331.2 MB, free: 9.008 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.7517/0.8395, allocations: 180.8 MB / 0.5 GB, free: 3.297 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03683/0.8764, allocations: 22.05 MB / 0.5215 GB, free: 3 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003417/0.8799, allocations: 101.6 kB / 0.5216 GB, free: 3 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003294/0.8832, allocations: 0.9412 MB / 0.5225 GB, free: 2.996 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01265/0.8959, allocations: 3.554 MB / 0.526 GB, free: 2.93 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01674/0.9127, allocations: 5.105 MB / 0.531 GB, free: 2.543 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.007346/0.9201, allocations: 4.43 MB / 0.5353 GB, free: 1.707 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002395/0.9225, allocations: 1.259 MB / 0.5365 GB, free: 17.18 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004945/0.9275, allocations: 2.053 MB / 0.5385 GB, free: 16.86 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003559/0.9311, allocations: 1.615 MB / 0.5401 GB, free: 16.5 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006622/0.9318, allocations: 104.8 kB / 0.5402 GB, free: 16.5 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009301/0.9411, allocations: 3.192 MB / 0.5433 GB, free: 15.88 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001493/0.9426, allocations: 0.7343 MB / 0.5441 GB, free: 15.68 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009592/0.9436, allocations: 474.7 kB / 0.5445 GB, free: 15.64 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008676/0.9523, allocations: 3.746 MB / 0.5482 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.054e-06/0.9523, allocations: 0 / 0.5482 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.643e-06/0.9524, allocations: 0 / 0.5482 GB, free: 13.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.082e-05/0.9524, allocations: 0 / 0.5482 GB, free: 13.95 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.008481/0.9609, allocations: 2.908 MB / 0.551 GB, free: 12.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.961, allocations: 9.906 kB / 0.551 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.9645, allocations: 428.2 kB / 0.5514 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003761/0.9683, allocations: 1.428 MB / 0.5528 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.9685, allocations: 127.5 kB / 0.5529 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003794/0.9689, allocations: 161.7 kB / 0.5531 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005537/0.9744, allocations: 2.517 MB / 0.5556 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-05/0.9745, allocations: 6.469 kB / 0.5556 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.9748, allocations: 71.17 kB / 0.5556 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003333/0.9752, allocations: 187 kB / 0.5558 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0061/0.9813, allocations: 2.213 MB / 0.558 GB, free: 8.809 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.02052/1.002, allocations: 10.69 MB / 0.5684 GB, free: 15.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004246/1.006, allocations: 1.778 MB / 0.5701 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001159/1.007, allocations: 459 kB / 0.5706 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002759/1.01, allocations: 1.152 MB / 0.5717 GB, free: 12.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=158): time 6.806e-06/1.01, allocations: 3.938 kB / 0.5717 GB, free: 12.59 MB / 442.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=181): time 0.03596/1.046, allocations: 10.81 MB / 0.5823 GB, free: 3.988 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/1.046, allocations: 187.4 kB / 0.5824 GB, free: 3.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002746/1.049, allocations: 1.491 MB / 0.5839 GB, free: 2.641 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000448/1.05, allocations: 58.39 kB / 0.584 GB, free: 2.602 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008114/1.05, allocations: 0.8418 MB / 0.5848 GB, free: 2.059 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009068/1.051, allocations: 0.6148 MB / 0.5854 GB, free: 1.535 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001996/1.052, allocations: 39.62 kB / 0.5854 GB, free: 1.527 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000264/1.052, allocations: 393.6 kB / 0.5858 GB, free: 1.168 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002588/1.054, allocations: 1.01 MB / 0.5868 GB, free: 500 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003333/1.058, allocations: 1.504 MB / 0.5882 GB, free: 15.18 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/1.061, allocations: 1.287 MB / 0.5895 GB, free: 14.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.949e-05/1.061, allocations: 4 kB / 0.5895 GB, free: 14.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.007904/1.069, allocations: 3.012 MB / 0.5924 GB, free: 12.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005152/1.07, allocations: 0.5293 MB / 0.593 GB, free: 11.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.054e-05/1.07, allocations: 12 kB / 0.593 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006451/1.07, allocations: 198.2 kB / 0.5932 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003332/1.074, allocations: 0.5609 MB / 0.5937 GB, free: 10.85 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/1.076, allocations: 2.328 MB / 0.596 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/1.079, allocations: 213 kB / 0.5962 GB, free: 8.336 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006297/1.08, allocations: 195.2 kB / 0.5964 GB, free: 8.164 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.08, allocations: 0 / 0.5964 GB, free: 8.164 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007499/1.087, allocations: 2.853 MB / 0.5992 GB, free: 6.215 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.333e-05/1.087, allocations: 13.86 kB / 0.5992 GB, free: 6.203 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005925/1.088, allocations: 198.9 kB / 0.5994 GB, free: 6.023 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/1.091, allocations: 0.5499 MB / 0.5999 GB, free: 5.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/1.094, allocations: 2.336 MB / 0.6022 GB, free: 3.176 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/1.096, allocations: 205.9 kB / 0.6024 GB, free: 3.008 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005502/1.096, allocations: 186 kB / 0.6026 GB, free: 2.844 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.001766/1.098, allocations: 0.6895 MB / 0.6032 GB, free: 2.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006177/1.099, allocations: 205.5 kB / 0.6034 GB, free: 2.137 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/1.109, allocations: 3.493 MB / 0.6068 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-05/1.109, allocations: 20 kB / 0.6069 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.109, allocations: 3.938 kB / 0.6069 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00594/1.115, allocations: 2.722 MB / 0.6095 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01631/1.132, allocations: 6.778 MB / 0.6161 GB, free: 8.137 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/1.132, allocations: 8 kB / 0.6161 GB, free: 8.129 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002542/1.134, allocations: 443.4 kB / 0.6166 GB, free: 7.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006823/1.135, allocations: 191.9 kB / 0.6168 GB, free: 7.555 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003638/1.135, allocations: 102.2 kB / 0.6168 GB, free: 7.484 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003042/1.139, allocations: 3.073 MB / 0.6199 GB, free: 4.355 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-05/1.139, allocations: 14.61 kB / 0.6199 GB, free: 4.344 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009487/1.148, allocations: 4.196 MB / 0.624 GB, free: 1.223 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/1.15, allocations: 0.5197 MB / 0.6245 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005803/1.15, allocations: 54.55 kB / 0.6245 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/1.152, allocations: 122.4 kB / 0.6246 GB, free: 0.668 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004165/1.153, allocations: 179.6 kB / 0.6248 GB, free: 0.5195 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003744/1.153, allocations: 164.7 kB / 0.625 GB, free: 384 kB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001957/1.155, allocations: 0.9901 MB / 0.6259 GB, free: 15.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.155, allocations: 0 / 0.6259 GB, free: 15.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006282/1.161, allocations: 1.694 MB / 0.6276 GB, free: 14.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004165/1.166, allocations: 1.255 MB / 0.6288 GB, free: 12.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01034/1.176, allocations: 4.292 MB / 0.633 GB, free: 9.883 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/1.176, allocations: 0 / 0.633 GB, free: 9.883 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003286/1.179, allocations: 1.506 MB / 0.6345 GB, free: 8.742 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005269/1.185, allocations: 0.9107 MB / 0.6354 GB, free: 8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/1.197, allocations: 5.739 MB / 0.641 GB, free: 2.738 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/1.199, allocations: 1.695 MB / 0.6426 GB, free: 1.082 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/1.201, allocations: 366 kB / 0.643 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of SimCode: time 2.077e-06/1.201, allocations: 0 / 0.643 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of Templates: time 0.3386/1.539, allocations: 76.86 MB / 0.718 GB, free: 213.2 MB / 0.5105 GB