Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.142/2.142, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005843/0.0005844, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3248, allocations: 54.88 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.1217/0.4466, allocations: 77.63 MB / 446.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3914/0.838, allocations: 31.96 MB / 478.9 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002996/0.841, allocations: 93.31 kB / 479 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004832/0.8459, allocations: 1.138 MB / 480.1 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02241/0.8684, allocations: 5.906 MB / 486 MB, free: 6.742 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02728/0.8957, allocations: 7.375 MB / 493.4 MB, free: 6.637 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009976/0.9057, allocations: 4.637 MB / 498 MB, free: 6.633 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003022/0.9087, allocations: 1.3 MB / 499.3 MB, free: 6.512 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04515/0.9539, allocations: 18.43 MB / 0.5056 GB, free: 1.867 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04753/1.001, allocations: 18.32 MB / 0.5235 GB, free: 1.062 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009271/1.002, allocations: 115.4 kB / 0.5236 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02945/1.032, allocations: 9.897 MB / 0.5333 GB, free: 9.281 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/1.034, allocations: 0.7578 MB / 0.534 GB, free: 8.789 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001426/1.035, allocations: 0.5299 MB / 0.5345 GB, free: 8.484 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01741/1.053, allocations: 6.436 MB / 0.5408 GB, free: 3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/1.053, allocations: 0 / 0.5408 GB, free: 3 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.367e-06/1.053, allocations: 0 / 0.5408 GB, free: 3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001171/1.053, allocations: 0 / 0.5408 GB, free: 3 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01595/1.069, allocations: 3.765 MB / 0.5445 GB, free: 15.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/1.069, allocations: 15.78 kB / 0.5445 GB, free: 15.44 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009253/1.07, allocations: 293.1 kB / 0.5448 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007549/1.078, allocations: 0.8263 MB / 0.5456 GB, free: 14.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004577/1.082, allocations: 1.564 MB / 0.5471 GB, free: 13.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002611/1.082, allocations: 177.8 kB / 0.5473 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006537/1.083, allocations: 192.8 kB / 0.5475 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/1.095, allocations: 3.606 MB / 0.551 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-05/1.095, allocations: 10.91 kB / 0.551 GB, free: 10.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000372/1.096, allocations: 79.38 kB / 0.5511 GB, free: 10.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004325/1.096, allocations: 199.5 kB / 0.5513 GB, free: 10.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0131/1.109, allocations: 3.499 MB / 0.5547 GB, free: 7.664 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.02995/1.139, allocations: 14.64 MB / 0.569 GB, free: 10.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008192/1.147, allocations: 2.188 MB / 0.5711 GB, free: 8.664 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06536/1.213, allocations: 19.11 MB / 0.5898 GB, free: 3.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006421/1.219, allocations: 1.647 MB / 0.5914 GB, free: 2.402 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001312/1.221, allocations: 179.9 kB / 0.5916 GB, free: 2.25 MB / 474.7 MB Notification: Performance of pre-optimization done (n=162): time 5.52e-06/1.221, allocations: 4 kB / 0.5916 GB, free: 2.246 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.04388/1.264, allocations: 9.153 MB / 0.6005 GB, free: 11.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002109/1.265, allocations: 337.9 kB / 0.6008 GB, free: 10.69 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003334/1.268, allocations: 1.652 MB / 0.6025 GB, free: 9.457 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004769/1.269, allocations: 56.52 kB / 0.6025 GB, free: 9.418 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/1.27, allocations: 0.9456 MB / 0.6034 GB, free: 8.801 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009977/1.271, allocations: 0.5905 MB / 0.604 GB, free: 8.293 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/1.271, allocations: 40.05 kB / 0.604 GB, free: 8.285 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000234/1.271, allocations: 400.2 kB / 0.6044 GB, free: 7.922 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003656/1.275, allocations: 1.13 MB / 0.6055 GB, free: 7.152 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004223/1.279, allocations: 1.665 MB / 0.6072 GB, free: 5.691 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004291/1.283, allocations: 1.402 MB / 0.6085 GB, free: 4.781 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.15e-05/1.283, allocations: 8 kB / 0.6085 GB, free: 4.773 MB / 490.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01094/1.294, allocations: 3.384 MB / 0.6118 GB, free: 2.441 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005229/1.295, allocations: 0.5569 MB / 0.6124 GB, free: 1.742 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.191e-05/1.295, allocations: 19.98 kB / 0.6124 GB, free: 1.723 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008787/1.304, allocations: 0.9722 MB / 0.6134 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003897/1.308, allocations: 491.9 kB / 0.6138 GB, free: 436 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004561/1.312, allocations: 3.154 MB / 0.6169 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003598/1.316, allocations: 231.5 kB / 0.6171 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003936/1.316, allocations: 105.8 kB / 0.6172 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/1.316, allocations: 7.953 kB / 0.6172 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01067/1.327, allocations: 3.196 MB / 0.6204 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.84e-05/1.327, allocations: 16.09 kB / 0.6204 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002048/1.329, allocations: 371.8 kB / 0.6207 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004052/1.333, allocations: 0.5044 MB / 0.6212 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/1.339, allocations: 4.132 MB / 0.6252 GB, free: 6.539 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002929/1.342, allocations: 227.6 kB / 0.6255 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005397/1.343, allocations: 103.3 kB / 0.6256 GB, free: 6.266 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002266/1.345, allocations: 0.7743 MB / 0.6263 GB, free: 5.703 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006723/1.346, allocations: 209.5 kB / 0.6265 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01944/1.365, allocations: 7.836 MB / 0.6342 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000132/1.366, allocations: 83.88 kB / 0.6343 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/1.366, allocations: 3.953 kB / 0.6343 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01594/1.382, allocations: 6.854 MB / 0.641 GB, free: 7.023 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.407, allocations: 10.8 MB / 0.6515 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/1.407, allocations: 4 kB / 0.6515 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002869/1.41, allocations: 345 kB / 0.6518 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009896/1.42, allocations: 2.165 MB / 0.6539 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005434/1.42, allocations: 63.95 kB / 0.654 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007329/1.428, allocations: 4.082 MB / 0.658 GB, free: 5.387 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/1.428, allocations: 6.938 kB / 0.658 GB, free: 5.383 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3409/1.769, allocations: 7.874 MB / 0.6657 GB, free: 222.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002116/1.771, allocations: 0.7213 MB / 0.6664 GB, free: 222.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008315/1.772, allocations: 52.45 kB / 0.6664 GB, free: 222.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002998/1.775, allocations: 195 kB / 0.6666 GB, free: 222.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005076/1.775, allocations: 134.7 kB / 0.6668 GB, free: 222.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/1.775, allocations: 73.75 kB / 0.6668 GB, free: 222.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002919/1.778, allocations: 1.197 MB / 0.668 GB, free: 222.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.91e-07/1.778, allocations: 0 / 0.668 GB, free: 222.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009547/1.788, allocations: 2.512 MB / 0.6704 GB, free: 221.9 MB / 0.5261 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (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.02577/1.814, allocations: 9.589 MB / 0.6798 GB, free: 218.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01414/1.828, allocations: 5.59 MB / 0.6853 GB, free: 216.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.188e-06/1.828, allocations: 7.969 kB / 0.6853 GB, free: 216.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005336/1.833, allocations: 2.42 MB / 0.6876 GB, free: 215 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007473/1.841, allocations: 0.892 MB / 0.6885 GB, free: 214.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02295/1.864, allocations: 11.17 MB / 0.6994 GB, free: 205 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002078/1.866, allocations: 2.252 MB / 0.7016 GB, free: 202.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/1.868, allocations: 1.315 MB / 0.7029 GB, free: 201.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.563e-06/1.869, allocations: 0 / 0.7029 GB, free: 201.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.096/6.964, allocations: 124.4 MB / 0.8244 GB, free: 76.73 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat