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.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|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.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.876/1.876, allocations: 209.3 MB / 224.8 MB, free: 1.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004262, allocations: 8 kB / 282.5 MB, free: 9.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08576, allocations: 48.71 MB / 331.2 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.3584/0.4442, allocations: 76.98 MB / 408.2 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05658/0.5009, allocations: 31.78 MB / 440 MB, free: 8.145 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.5039, allocations: 87.25 kB / 440 MB, free: 8.059 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00329/0.5072, allocations: 1.144 MB / 441.2 MB, free: 6.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0208/0.528, allocations: 5.836 MB / 447 MB, free: 1.059 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02429/0.5524, allocations: 7.335 MB / 454.4 MB, free: 9.723 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008649/0.561, allocations: 4.585 MB / 458.9 MB, free: 5.129 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.5635, allocations: 1.285 MB / 460.2 MB, free: 3.824 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03638/0.5999, allocations: 18.22 MB / 478.5 MB, free: 1.586 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3613/0.9612, allocations: 18.13 MB / 496.6 MB, free: 44.28 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006953/0.9619, allocations: 110.4 kB / 496.7 MB, free: 44.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02377/0.9857, allocations: 9.756 MB / 0.4946 GB, free: 44.28 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.9873, allocations: 0.7637 MB / 0.4953 GB, free: 44.28 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000987/0.9883, allocations: 0.5236 MB / 0.4958 GB, free: 44.25 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01397/1.002, allocations: 6.377 MB / 0.5021 GB, free: 43.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.371e-06/1.002, allocations: 0 / 0.5021 GB, free: 43.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.288e-06/1.002, allocations: 0 / 0.5021 GB, free: 43.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.915e-05/1.002, allocations: 0 / 0.5021 GB, free: 43.85 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01145/1.014, allocations: 3.687 MB / 0.5057 GB, free: 42.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/1.014, allocations: 12 kB / 0.5057 GB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006572/1.02, allocations: 0.8035 MB / 0.5065 GB, free: 42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003418/1.024, allocations: 1.544 MB / 0.508 GB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/1.024, allocations: 174.9 kB / 0.5081 GB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004151/1.025, allocations: 195.2 kB / 0.5083 GB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009466/1.034, allocations: 3.592 MB / 0.5118 GB, free: 41.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/1.034, allocations: 12.28 kB / 0.5118 GB, free: 41.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003052/1.034, allocations: 85.75 kB / 0.5119 GB, free: 41.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000308/1.035, allocations: 202.5 kB / 0.5121 GB, free: 41.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/1.046, allocations: 3.495 MB / 0.5155 GB, free: 40.81 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.02031/1.066, allocations: 14.59 MB / 0.5298 GB, free: 30.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006777/1.073, allocations: 2.196 MB / 0.5319 GB, free: 29.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04122/1.114, allocations: 19.08 MB / 0.5505 GB, free: 8.742 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005481/1.12, allocations: 1.636 MB / 0.5521 GB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001102/1.121, allocations: 167.2 kB / 0.5523 GB, free: 7.328 MB / 410.7 MB Notification: Performance of pre-optimization done (n=158): time 5.563e-06/1.121, allocations: 0 / 0.5523 GB, free: 7.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=170): time 0.02998/1.151, allocations: 9.139 MB / 0.5612 GB, free: 184 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001922/1.151, allocations: 336.6 kB / 0.5616 GB, free: 15.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002922/1.154, allocations: 1.637 MB / 0.5632 GB, free: 14.56 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003527/1.154, allocations: 56.45 kB / 0.5632 GB, free: 14.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009107/1.155, allocations: 0.9556 MB / 0.5641 GB, free: 13.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007014/1.156, allocations: 0.5702 MB / 0.5647 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/1.156, allocations: 46.52 kB / 0.5647 GB, free: 13.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/1.156, allocations: 400.1 kB / 0.5651 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002855/1.159, allocations: 1.125 MB / 0.5662 GB, free: 12.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003309/1.163, allocations: 1.659 MB / 0.5678 GB, free: 10.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003202/1.166, allocations: 1.386 MB / 0.5692 GB, free: 9.902 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/1.166, allocations: 4 kB / 0.5692 GB, free: 9.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.008381/1.174, allocations: 3.392 MB / 0.5725 GB, free: 7.551 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005056/1.175, allocations: 0.5533 MB / 0.573 GB, free: 6.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/1.175, allocations: 16 kB / 0.5731 GB, free: 6.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006129/1.181, allocations: 0.9807 MB / 0.574 GB, free: 5.973 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002674/1.184, allocations: 492.2 kB / 0.5745 GB, free: 5.539 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00394/1.188, allocations: 3.142 MB / 0.5776 GB, free: 2.688 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002671/1.19, allocations: 225.8 kB / 0.5778 GB, free: 2.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002897/1.191, allocations: 110.3 kB / 0.5779 GB, free: 2.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/1.191, allocations: 4 kB / 0.5779 GB, free: 2.406 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008036/1.199, allocations: 3.208 MB / 0.581 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.025e-05/1.199, allocations: 16.78 kB / 0.581 GB, free: 192 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/1.201, allocations: 372.7 kB / 0.5814 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/1.203, allocations: 0.4995 MB / 0.5819 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/1.209, allocations: 4.136 MB / 0.5859 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/1.211, allocations: 233.5 kB / 0.5861 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/1.211, allocations: 99.97 kB / 0.5862 GB, free: 11.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001702/1.213, allocations: 0.7676 MB / 0.587 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005277/1.213, allocations: 209.5 kB / 0.5872 GB, free: 10.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01429/1.228, allocations: 7.818 MB / 0.5948 GB, free: 5.336 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.612e-05/1.228, allocations: 84.44 kB / 0.5949 GB, free: 5.273 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.333e-06/1.228, allocations: 0 / 0.5949 GB, free: 5.273 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01191/1.24, allocations: 6.845 MB / 0.6016 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0195/1.259, allocations: 10.79 MB / 0.6121 GB, free: 9.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/1.259, allocations: 4 kB / 0.6121 GB, free: 9.566 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/1.261, allocations: 346 kB / 0.6125 GB, free: 9.254 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/1.274, allocations: 2.126 MB / 0.6145 GB, free: 7.391 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006186/1.275, allocations: 67.03 kB / 0.6146 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00885/1.284, allocations: 4.083 MB / 0.6186 GB, free: 4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.754e-06/1.284, allocations: 8.094 kB / 0.6186 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02846/1.312, allocations: 7.874 MB / 0.6263 GB, free: 13.72 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003372/1.316, allocations: 0.7301 MB / 0.627 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008607/1.317, allocations: 51.98 kB / 0.627 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00356/1.32, allocations: 178.5 kB / 0.6272 GB, free: 12.74 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006592/1.321, allocations: 145.7 kB / 0.6273 GB, free: 12.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004083/1.321, allocations: 67.97 kB / 0.6274 GB, free: 12.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004495/1.326, allocations: 1.197 MB / 0.6286 GB, free: 11.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.27e-06/1.326, allocations: 0 / 0.6286 GB, free: 11.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01571/1.342, allocations: 2.491 MB / 0.631 GB, free: 8.828 MB / 474.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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.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,$cse42.phase,$cse42.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01296/1.355, allocations: 1.956 MB / 0.6329 GB, free: 7.043 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01337/1.368, allocations: 5.463 MB / 0.6383 GB, free: 1.578 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.368, allocations: 1.812 kB / 0.6383 GB, free: 1.578 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005253/1.373, allocations: 2.367 MB / 0.6406 GB, free: 15.22 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005261/1.379, allocations: 0.8773 MB / 0.6414 GB, free: 14.35 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.395, allocations: 8.77 MB / 0.65 GB, free: 5.664 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.398, allocations: 2.247 MB / 0.6522 GB, free: 3.387 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009853/1.399, allocations: 195.4 kB / 0.6524 GB, free: 3.195 MB / 490.7 MB Notification: Performance of SimCode: time 1.75e-06/1.399, allocations: 0 / 0.6524 GB, free: 3.195 MB / 490.7 MB Notification: Performance of Templates: time 0.3808/1.78, allocations: 112.8 MB / 0.7625 GB, free: 143.2 MB / 0.4948 GB