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.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.196/2.196, allocations: 234.9 MB / 250.4 MB, free: 9.773 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004351, allocations: 16 kB / 314.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3572, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1296/0.4869, allocations: 83.43 MB / 452.7 MB, free: 9.164 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06686/0.5538, allocations: 32.69 MB / 485.4 MB, free: 8.395 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003182/0.5571, allocations: 103.2 kB / 485.5 MB, free: 8.293 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005134/0.5622, allocations: 1.167 MB / 486.7 MB, free: 7.121 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02562/0.5879, allocations: 6.225 MB / 492.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02835/0.6163, allocations: 7.204 MB / 0.4884 GB, free: 9.672 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.009859/0.6262, allocations: 4.406 MB / 0.4927 GB, free: 5.262 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002906/0.6291, allocations: 1.218 MB / 0.4939 GB, free: 4.027 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006508/0.6357, allocations: 2.006 MB / 0.4958 GB, free: 2.016 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3927/1.028, allocations: 18.23 MB / 0.5136 GB, free: 14.93 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009617/1.03, allocations: 105.7 kB / 0.5137 GB, free: 14.93 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02648/1.056, allocations: 9.992 MB / 0.5235 GB, free: 14.91 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/1.058, allocations: 0.689 MB / 0.5242 GB, free: 14.91 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/1.059, allocations: 498.7 kB / 0.5246 GB, free: 14.88 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01528/1.074, allocations: 6.287 MB / 0.5308 GB, free: 14.47 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/1.074, allocations: 2.625 kB / 0.5308 GB, free: 14.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.074, allocations: 0 / 0.5308 GB, free: 14.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001032/1.074, allocations: 0 / 0.5308 GB, free: 14.47 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01256/1.087, allocations: 3.496 MB / 0.5342 GB, free: 12.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/1.087, allocations: 8.031 kB / 0.5342 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008533/1.088, allocations: 275.7 kB / 0.5345 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007129/1.095, allocations: 0.7803 MB / 0.5352 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004265/1.099, allocations: 1.481 MB / 0.5367 GB, free: 10.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/1.1, allocations: 160.8 kB / 0.5368 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005116/1.1, allocations: 184.9 kB / 0.537 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009986/1.11, allocations: 3.212 MB / 0.5401 GB, free: 8.473 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-05/1.11, allocations: 9.25 kB / 0.5401 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/1.111, allocations: 76.53 kB / 0.5402 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/1.111, allocations: 173.5 kB / 0.5404 GB, free: 8.332 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/1.122, allocations: 2.999 MB / 0.5433 GB, free: 6.512 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.02666/1.149, allocations: 13.96 MB / 0.5569 GB, free: 9.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007953/1.157, allocations: 2.024 MB / 0.5589 GB, free: 8.113 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0651/1.222, allocations: 19.1 MB / 0.5776 GB, free: 3.137 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006184/1.228, allocations: 1.541 MB / 0.5791 GB, free: 1.934 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001506/1.23, allocations: 157.2 kB / 0.5792 GB, free: 1.801 MB / 458.7 MB Notification: Performance of pre-optimization done (n=146): time 5.611e-06/1.23, allocations: 0.5625 kB / 0.5792 GB, free: 1.801 MB / 458.7 MB Notification: Performance of matching and sorting (n=158): time 0.03618/1.266, allocations: 8.171 MB / 0.5872 GB, free: 11.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/1.266, allocations: 185 kB / 0.5874 GB, free: 11.17 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/1.269, allocations: 1.487 MB / 0.5888 GB, free: 10.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004225/1.269, allocations: 56.2 kB / 0.5889 GB, free: 10.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009004/1.27, allocations: 0.8708 MB / 0.5897 GB, free: 9.426 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008378/1.271, allocations: 0.527 MB / 0.5902 GB, free: 8.977 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/1.271, allocations: 39.17 kB / 0.5903 GB, free: 8.969 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/1.272, allocations: 382.1 kB / 0.5907 GB, free: 8.617 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003266/1.275, allocations: 1.011 MB / 0.5916 GB, free: 7.938 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003704/1.279, allocations: 1.448 MB / 0.5931 GB, free: 6.684 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003774/1.282, allocations: 1.248 MB / 0.5943 GB, free: 5.871 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.671e-05/1.283, allocations: 4 kB / 0.5943 GB, free: 5.867 MB / 474.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.0119/1.294, allocations: 3.093 MB / 0.5973 GB, free: 3.699 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004751/1.295, allocations: 0.5296 MB / 0.5978 GB, free: 3.039 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/1.295, allocations: 12 kB / 0.5978 GB, free: 3.027 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005138/1.3, allocations: 0.6117 MB / 0.5984 GB, free: 2.488 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00356/1.304, allocations: 463.5 kB / 0.5989 GB, free: 2.082 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003241/1.307, allocations: 2.802 MB / 0.6016 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/1.31, allocations: 235.2 kB / 0.6018 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000299/1.311, allocations: 92.97 kB / 0.6019 GB, free: 15.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/1.311, allocations: 4 kB / 0.6019 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008492/1.319, allocations: 2.764 MB / 0.6046 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.229e-05/1.319, allocations: 12 kB / 0.6046 GB, free: 13.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/1.321, allocations: 212 kB / 0.6048 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/1.324, allocations: 480.4 kB / 0.6053 GB, free: 12.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/1.326, allocations: 1.88 MB / 0.6071 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00284/1.329, allocations: 232.3 kB / 0.6073 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003236/1.329, allocations: 96.73 kB / 0.6074 GB, free: 10.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.002/1.332, allocations: 0.7138 MB / 0.6081 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006901/1.332, allocations: 193.2 kB / 0.6083 GB, free: 9.875 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/1.349, allocations: 7.413 MB / 0.6156 GB, free: 4.918 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001222/1.349, allocations: 87.56 kB / 0.6156 GB, free: 4.855 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/1.349, allocations: 0 / 0.6156 GB, free: 4.855 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0135/1.363, allocations: 6.498 MB / 0.622 GB, free: 444 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02172/1.384, allocations: 10.24 MB / 0.632 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/1.384, allocations: 0 / 0.632 GB, free: 9.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00271/1.387, allocations: 332 kB / 0.6323 GB, free: 9.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005389/1.393, allocations: 1.341 MB / 0.6336 GB, free: 8.355 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004019/1.393, allocations: 55.41 kB / 0.6337 GB, free: 8.328 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/1.397, allocations: 3.456 MB / 0.637 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.397, allocations: 3.953 kB / 0.637 GB, free: 5.328 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0156/1.413, allocations: 7.15 MB / 0.644 GB, free: 0.6406 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/1.415, allocations: 0.6887 MB / 0.6447 GB, free: 52 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005436/1.415, allocations: 44.27 kB / 0.6447 GB, free: 32 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002332/1.418, allocations: 188.2 kB / 0.6449 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003717/1.418, allocations: 129.2 kB / 0.645 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001992/1.418, allocations: 67.09 kB / 0.6451 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00232/1.42, allocations: 1.108 MB / 0.6462 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.51e-07/1.42, allocations: 0 / 0.6462 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009398/1.43, allocations: 2.508 MB / 0.6486 GB, free: 12.51 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.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,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02644/1.456, allocations: 9.212 MB / 0.6576 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0133/1.47, allocations: 4.87 MB / 0.6624 GB, free: 2.387 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.47, allocations: 0.625 kB / 0.6624 GB, free: 2.387 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005508/1.475, allocations: 2.303 MB / 0.6646 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007533/1.483, allocations: 0.8996 MB / 0.6655 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02453/1.507, allocations: 10.59 MB / 0.6759 GB, free: 4.934 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002439/1.51, allocations: 2.142 MB / 0.678 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002705/1.513, allocations: 1.226 MB / 0.6791 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of SimCode: time 1.312e-06/1.513, allocations: 0 / 0.6791 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.194/6.706, allocations: 118.9 MB / 0.7953 GB, free: 151.6 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat