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.BranchingPipes4.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.BranchingPipes4,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|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.102/2.102, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004225/0.0004226, allocations: 12 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2857, allocations: 54.86 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4): time 0.1776/0.4633, allocations: 85.92 MB / 455.1 MB, free: 6.621 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.08455/0.5479, allocations: 34.26 MB / 489.4 MB, free: 4.293 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003086/0.5511, allocations: 103.2 kB / 489.5 MB, free: 4.191 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004108/0.5552, allocations: 1.241 MB / 490.7 MB, free: 2.945 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02617/0.5814, allocations: 6.506 MB / 497.2 MB, free: 12.42 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04709/0.6285, allocations: 7.552 MB / 0.4929 GB, free: 4.863 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01766/0.6462, allocations: 4.824 MB / 0.4976 GB, free: 28 kB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3089/0.9552, allocations: 1.271 MB / 0.4989 GB, free: 13.04 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005505/0.9607, allocations: 2.189 MB / 0.501 GB, free: 13.04 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03457/0.9953, allocations: 18.35 MB / 0.5189 GB, free: 12.74 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006222/0.996, allocations: 112 kB / 0.519 GB, free: 12.74 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02203/1.018, allocations: 10.14 MB / 0.5289 GB, free: 12.72 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001209/1.019, allocations: 0.7561 MB / 0.5297 GB, free: 12.45 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009204/1.02, allocations: 0.5379 MB / 0.5302 GB, free: 12.14 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/1.033, allocations: 6.598 MB / 0.5367 GB, free: 8.949 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.334e-06/1.033, allocations: 0 / 0.5367 GB, free: 8.949 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.033, allocations: 0 / 0.5367 GB, free: 8.949 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.348e-05/1.033, allocations: 0 / 0.5367 GB, free: 8.949 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01006/1.043, allocations: 3.744 MB / 0.5403 GB, free: 5.891 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/1.043, allocations: 12.03 kB / 0.5403 GB, free: 5.879 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00725/1.05, allocations: 0.8616 MB / 0.5412 GB, free: 5.266 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003657/1.054, allocations: 1.59 MB / 0.5427 GB, free: 4.191 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/1.054, allocations: 180.4 kB / 0.5429 GB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004001/1.055, allocations: 199.5 kB / 0.5431 GB, free: 3.961 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009098/1.064, allocations: 3.593 MB / 0.5466 GB, free: 1.199 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-05/1.064, allocations: 11.14 kB / 0.5466 GB, free: 1.195 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002839/1.064, allocations: 87.06 kB / 0.5467 GB, free: 1.176 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002658/1.064, allocations: 207.2 kB / 0.5469 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/1.075, allocations: 3.415 MB / 0.5502 GB, free: 14.56 MB / 442.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.0254/1.1, allocations: 15.29 MB / 0.5651 GB, free: 428 kB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007662/1.108, allocations: 2.258 MB / 0.5673 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04605/1.154, allocations: 19.11 MB / 0.586 GB, free: 9.805 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005964/1.16, allocations: 1.671 MB / 0.5876 GB, free: 8.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=163): time 6.244e-06/1.16, allocations: 0 / 0.5876 GB, free: 8.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=179): time 0.0324/1.193, allocations: 8.913 MB / 0.5963 GB, free: 1.586 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/1.193, allocations: 183.5 kB / 0.5965 GB, free: 1.375 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002912/1.196, allocations: 1.589 MB / 0.5981 GB, free: 188 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003168/1.196, allocations: 56.33 kB / 0.5981 GB, free: 148 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/1.197, allocations: 0.9696 MB / 0.5991 GB, free: 15.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007697/1.198, allocations: 0.5979 MB / 0.5997 GB, free: 14.98 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/1.198, allocations: 40.5 kB / 0.5997 GB, free: 14.98 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002806/1.198, allocations: 396.5 kB / 0.6001 GB, free: 14.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/1.201, allocations: 1.11 MB / 0.6012 GB, free: 13.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003464/1.205, allocations: 1.619 MB / 0.6027 GB, free: 12.44 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003314/1.208, allocations: 1.358 MB / 0.6041 GB, free: 11.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-05/1.208, allocations: 4 kB / 0.6041 GB, free: 11.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.008317/1.216, allocations: 3.163 MB / 0.6072 GB, free: 9.363 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005505/1.217, allocations: 0.5813 MB / 0.6077 GB, free: 8.629 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.948e-05/1.217, allocations: 12 kB / 0.6077 GB, free: 8.617 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/1.218, allocations: 257.4 kB / 0.608 GB, free: 8.402 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002984/1.221, allocations: 0.5308 MB / 0.6085 GB, free: 7.926 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/1.224, allocations: 2.443 MB / 0.6109 GB, free: 5.539 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002906/1.227, allocations: 269.9 kB / 0.6111 GB, free: 5.309 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003076/1.227, allocations: 104 kB / 0.6112 GB, free: 5.227 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.227, allocations: 4 kB / 0.6112 GB, free: 5.223 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007941/1.235, allocations: 3.029 MB / 0.6142 GB, free: 3.172 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.249e-05/1.235, allocations: 16 kB / 0.6142 GB, free: 3.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/1.236, allocations: 256.2 kB / 0.6145 GB, free: 2.949 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/1.239, allocations: 0.5262 MB / 0.615 GB, free: 2.477 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/1.241, allocations: 2.443 MB / 0.6174 GB, free: 96 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/1.244, allocations: 267.1 kB / 0.6176 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/1.244, allocations: 104.9 kB / 0.6177 GB, free: 15.78 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,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 (256): * Single equations (assignments): 250 * 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.001822/1.246, allocations: 0.7597 MB / 0.6185 GB, free: 15.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005714/1.246, allocations: 212.2 kB / 0.6187 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.26, allocations: 7.565 MB / 0.626 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.812e-05/1.261, allocations: 87.55 kB / 0.6261 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.261, allocations: 0 / 0.6261 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01183/1.272, allocations: 6.594 MB / 0.6326 GB, free: 5.234 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/1.292, allocations: 10.73 MB / 0.643 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/1.293, allocations: 0 / 0.643 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002306/1.295, allocations: 410.1 kB / 0.6434 GB, free: 13.83 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/1.297, allocations: 367.3 kB / 0.6438 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002415/1.297, allocations: 63.47 kB / 0.6439 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002354/1.299, allocations: 2.52 MB / 0.6463 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.734e-06/1.299, allocations: 3.75 kB / 0.6463 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/1.314, allocations: 7.047 MB / 0.6532 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001821/1.315, allocations: 0.7345 MB / 0.6539 GB, free: 5.684 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004317/1.316, allocations: 52.5 kB / 0.654 GB, free: 5.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001852/1.318, allocations: 209.4 kB / 0.6542 GB, free: 5.484 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003708/1.318, allocations: 141.1 kB / 0.6543 GB, free: 5.359 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002268/1.318, allocations: 71.97 kB / 0.6544 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002227/1.321, allocations: 1.169 MB / 0.6555 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.52e-07/1.321, allocations: 0 / 0.6555 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008635/1.329, allocations: 2.653 MB / 0.6581 GB, free: 1.934 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse40.phase,$cse40.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,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 (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.008706/1.338, allocations: 2.153 MB / 0.6602 GB, free: 52 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01235/1.35, allocations: 5.32 MB / 0.6654 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.939e-06/1.35, allocations: 4.062 kB / 0.6654 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004887/1.355, allocations: 2.464 MB / 0.6678 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005729/1.361, allocations: 0.9623 MB / 0.6687 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/1.378, allocations: 8.935 MB / 0.6775 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002705/1.381, allocations: 2.233 MB / 0.6797 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/1.382, allocations: 219.4 kB / 0.6799 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of SimCode: time 1.713e-06/1.382, allocations: 0 / 0.6799 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.4078/1.79, allocations: 115.7 MB / 0.7928 GB, free: 153.2 MB / 0.5417 GB