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.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.833/1.833, allocations: 209.3 MB / 224.8 MB, free: 188 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004274, allocations: 8 kB / 282.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2902, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1122/0.4024, allocations: 76.99 MB / 408.2 MB, free: 1.375 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.05963/0.4621, allocations: 32.46 MB / 440.6 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003141/0.4653, allocations: 95.25 kB / 440.7 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003977/0.4693, allocations: 1.147 MB / 441.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02199/0.4913, allocations: 6.116 MB / 448 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02423/0.5155, allocations: 7.151 MB / 455.1 MB, free: 2.316 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008761/0.5243, allocations: 4.612 MB / 459.8 MB, free: 13.7 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002627/0.527, allocations: 1.288 MB / 461 MB, free: 12.38 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004906/0.5319, allocations: 2.088 MB / 463.1 MB, free: 10.29 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2957/0.8277, allocations: 18.15 MB / 481.3 MB, free: 22.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000558/0.8283, allocations: 111 kB / 481.4 MB, free: 22.61 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02144/0.8497, allocations: 9.95 MB / 491.3 MB, free: 22.59 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.8511, allocations: 0.767 MB / 492.1 MB, free: 22.59 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009284/0.852, allocations: 0.5228 MB / 492.6 MB, free: 22.55 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.8645, allocations: 6.525 MB / 499.2 MB, free: 22.14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.51e-06/0.8646, allocations: 0 / 499.2 MB, free: 22.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.8646, allocations: 6.312 kB / 499.2 MB, free: 22.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.167e-05/0.8646, allocations: 0 / 499.2 MB, free: 22.14 MB / 394.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.01071/0.8753, allocations: 3.761 MB / 0.4911 GB, free: 20.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.8754, allocations: 11.12 kB / 0.4911 GB, free: 20.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007256/0.8827, allocations: 0.7986 MB / 0.4919 GB, free: 20.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003664/0.8864, allocations: 1.61 MB / 0.4935 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.8866, allocations: 172.7 kB / 0.4937 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000426/0.887, allocations: 197.2 kB / 0.4938 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009373/0.8964, allocations: 3.59 MB / 0.4974 GB, free: 19.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-05/0.8965, allocations: 6.656 kB / 0.4974 GB, free: 19.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002995/0.8968, allocations: 83.67 kB / 0.4974 GB, free: 19.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002693/0.8971, allocations: 206.8 kB / 0.4976 GB, free: 19.37 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01027/0.9074, allocations: 3.489 MB / 0.501 GB, free: 17.72 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.0188/0.9262, allocations: 14.63 MB / 0.5153 GB, free: 4.301 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006365/0.9326, allocations: 2.192 MB / 0.5175 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04336/0.976, allocations: 19.08 MB / 0.5361 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005601/0.9817, allocations: 1.636 MB / 0.5377 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001158/0.9828, allocations: 175.5 kB / 0.5379 GB, free: 12.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=158): time 5.586e-06/0.9829, allocations: 3.656 kB / 0.5379 GB, free: 12.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=170): time 0.03175/1.015, allocations: 9.132 MB / 0.5468 GB, free: 5.234 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002275/1.015, allocations: 337.2 kB / 0.5471 GB, free: 4.836 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002974/1.018, allocations: 1.649 MB / 0.5487 GB, free: 3.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002453/1.018, allocations: 58.83 kB / 0.5488 GB, free: 3.566 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000911/1.019, allocations: 0.9459 MB / 0.5497 GB, free: 2.945 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007225/1.02, allocations: 0.5721 MB / 0.5503 GB, free: 2.457 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/1.02, allocations: 41.94 kB / 0.5503 GB, free: 2.445 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002657/1.02, allocations: 402 kB / 0.5507 GB, free: 2.078 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/1.023, allocations: 1.127 MB / 0.5518 GB, free: 1.309 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003363/1.027, allocations: 1.642 MB / 0.5534 GB, free: 15.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003169/1.03, allocations: 1.401 MB / 0.5548 GB, free: 14.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/1.03, allocations: 4 kB / 0.5548 GB, free: 14.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.008353/1.038, allocations: 3.399 MB / 0.5581 GB, free: 12.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004966/1.039, allocations: 0.5443 MB / 0.5586 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.53e-05/1.039, allocations: 20 kB / 0.5586 GB, free: 11.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006188/1.045, allocations: 0.9847 MB / 0.5596 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002653/1.048, allocations: 485.5 kB / 0.5601 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/1.052, allocations: 3.147 MB / 0.5631 GB, free: 7.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002671/1.054, allocations: 230 kB / 0.5633 GB, free: 7.535 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003092/1.055, allocations: 105.7 kB / 0.5634 GB, free: 7.453 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/1.055, allocations: 4 kB / 0.5634 GB, free: 7.449 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008203/1.063, allocations: 3.209 MB / 0.5666 GB, free: 5.246 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.615e-05/1.063, allocations: 19.98 kB / 0.5666 GB, free: 5.227 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/1.065, allocations: 369.4 kB / 0.567 GB, free: 4.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/1.067, allocations: 0.4971 MB / 0.5674 GB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005396/1.073, allocations: 4.148 MB / 0.5715 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/1.075, allocations: 226.9 kB / 0.5717 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/1.075, allocations: 112.1 kB / 0.5718 GB, free: 416 kB / 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,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,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.001737/1.077, allocations: 0.7679 MB / 0.5726 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005321/1.077, allocations: 205.5 kB / 0.5728 GB, free: 15.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/1.092, allocations: 7.813 MB / 0.5804 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.74e-05/1.092, allocations: 85.27 kB / 0.5805 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.32e-06/1.092, allocations: 0 / 0.5805 GB, free: 10.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01215/1.104, allocations: 6.853 MB / 0.5872 GB, free: 5.621 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/1.123, allocations: 10.78 MB / 0.5977 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/1.123, allocations: 0 / 0.5977 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/1.125, allocations: 348.7 kB / 0.598 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006579/1.132, allocations: 2.127 MB / 0.6001 GB, free: 12.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003424/1.132, allocations: 62.97 kB / 0.6002 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004871/1.137, allocations: 4.082 MB / 0.6041 GB, free: 9.016 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/1.137, allocations: 0 / 0.6041 GB, free: 9.016 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/1.152, allocations: 7.878 MB / 0.6118 GB, free: 3.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001937/1.154, allocations: 0.7249 MB / 0.6126 GB, free: 3.199 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/1.155, allocations: 49.73 kB / 0.6126 GB, free: 3.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/1.157, allocations: 192.7 kB / 0.6128 GB, free: 3.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/1.157, allocations: 138.7 kB / 0.6129 GB, free: 2.902 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/1.157, allocations: 67.16 kB / 0.613 GB, free: 2.852 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002356/1.16, allocations: 1.21 MB / 0.6142 GB, free: 1.938 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.289e-06/1.16, allocations: 4 kB / 0.6142 GB, free: 1.934 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008582/1.168, allocations: 2.604 MB / 0.6167 GB, free: 15.43 MB / 490.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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.008904/1.177, allocations: 2.121 MB / 0.6188 GB, free: 13.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01324/1.19, allocations: 5.455 MB / 0.6241 GB, free: 8.043 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.318e-06/1.191, allocations: 7.844 kB / 0.6241 GB, free: 8.039 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005228/1.196, allocations: 2.364 MB / 0.6264 GB, free: 5.688 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005278/1.201, allocations: 0.8887 MB / 0.6273 GB, free: 4.805 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/1.218, allocations: 8.827 MB / 0.6359 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/1.221, allocations: 2.247 MB / 0.6381 GB, free: 9.777 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009723/1.222, allocations: 195.4 kB / 0.6383 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of SimCode: time 1.598e-06/1.222, allocations: 0 / 0.6383 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of Templates: time 0.3662/1.588, allocations: 114.5 MB / 0.7501 GB, free: 132.6 MB / 0.4948 GB