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.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007303/0.0007303, allocations: 16 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3621, allocations: 54.86 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1173/0.4794, allocations: 77.65 MB / 446.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3951/0.8746, allocations: 32.62 MB / 479.5 MB, free: 6.656 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.8781, allocations: 99.7 kB / 479.6 MB, free: 6.656 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006123/0.8843, allocations: 1.144 MB / 480.8 MB, free: 6.652 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03237/0.9167, allocations: 6.195 MB / 487 MB, free: 6.582 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03572/0.9524, allocations: 7.209 MB / 494.2 MB, free: 6.465 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.9631, allocations: 4.646 MB / 498.8 MB, free: 6.457 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002973/0.9661, allocations: 1.31 MB / 0.4884 GB, free: 6.332 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006521/0.9727, allocations: 2.107 MB / 0.4905 GB, free: 6.332 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04351/1.016, allocations: 18.35 MB / 0.5084 GB, free: 15.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009455/1.017, allocations: 115 kB / 0.5085 GB, free: 15.87 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03053/1.048, allocations: 10.11 MB / 0.5184 GB, free: 8.023 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002053/1.05, allocations: 0.7676 MB / 0.5191 GB, free: 7.523 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001517/1.051, allocations: 0.524 MB / 0.5196 GB, free: 7.223 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01833/1.07, allocations: 6.608 MB / 0.5261 GB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/1.07, allocations: 0 / 0.5261 GB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.905e-06/1.07, allocations: 0 / 0.5261 GB, free: 1.602 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001014/1.07, allocations: 0 / 0.5261 GB, free: 1.602 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01658/1.087, allocations: 3.834 MB / 0.5298 GB, free: 13.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/1.087, allocations: 8.031 kB / 0.5298 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001016/1.088, allocations: 296.8 kB / 0.5301 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007749/1.095, allocations: 0.8243 MB / 0.5309 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004997/1.1, allocations: 1.627 MB / 0.5325 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002821/1.101, allocations: 177.1 kB / 0.5327 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007314/1.102, allocations: 197.1 kB / 0.5329 GB, free: 11.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/1.114, allocations: 3.604 MB / 0.5364 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.798e-05/1.114, allocations: 6.062 kB / 0.5364 GB, free: 8.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003792/1.114, allocations: 82.39 kB / 0.5365 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004246/1.114, allocations: 203.4 kB / 0.5367 GB, free: 8.609 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/1.128, allocations: 3.5 MB / 0.5401 GB, free: 6.148 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.03052/1.158, allocations: 14.66 MB / 0.5544 GB, free: 8.691 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008262/1.167, allocations: 2.186 MB / 0.5565 GB, free: 7.129 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0667/1.233, allocations: 19.12 MB / 0.5752 GB, free: 2.141 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006558/1.24, allocations: 1.648 MB / 0.5768 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001418/1.242, allocations: 174.1 kB / 0.577 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of pre-optimization done (n=162): time 7.514e-06/1.242, allocations: 0 / 0.577 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.0426/1.284, allocations: 9.165 MB / 0.5859 GB, free: 9.551 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002155/1.284, allocations: 332.4 kB / 0.5862 GB, free: 9.156 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00334/1.288, allocations: 1.658 MB / 0.5879 GB, free: 7.918 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000481/1.288, allocations: 55.27 kB / 0.5879 GB, free: 7.879 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/1.289, allocations: 0.956 MB / 0.5889 GB, free: 7.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009944/1.29, allocations: 0.5873 MB / 0.5894 GB, free: 6.75 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/1.291, allocations: 41.56 kB / 0.5895 GB, free: 6.742 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002282/1.291, allocations: 393.1 kB / 0.5898 GB, free: 6.383 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003714/1.295, allocations: 1.135 MB / 0.5909 GB, free: 5.609 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004262/1.299, allocations: 1.663 MB / 0.5926 GB, free: 4.148 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004326/1.303, allocations: 1.408 MB / 0.5939 GB, free: 3.234 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-05/1.303, allocations: 4 kB / 0.594 GB, free: 3.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=272) (initialization): time 0.01095/1.314, allocations: 3.38 MB / 0.5973 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004792/1.315, allocations: 0.5594 MB / 0.5978 GB, free: 204 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.996e-05/1.315, allocations: 17.88 kB / 0.5978 GB, free: 188 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008572/1.323, allocations: 0.9857 MB / 0.5988 GB, free: 15.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003868/1.327, allocations: 488 kB / 0.5992 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004372/1.332, allocations: 3.148 MB / 0.6023 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003637/1.335, allocations: 231.9 kB / 0.6025 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004075/1.336, allocations: 107.4 kB / 0.6026 GB, free: 11.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.336, allocations: 11.95 kB / 0.6027 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01054/1.346, allocations: 3.199 MB / 0.6058 GB, free: 9.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.386e-05/1.347, allocations: 18.23 kB / 0.6058 GB, free: 9.531 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/1.349, allocations: 364.6 kB / 0.6061 GB, free: 9.234 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004016/1.353, allocations: 0.512 MB / 0.6066 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005835/1.358, allocations: 4.124 MB / 0.6107 GB, free: 4.992 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/1.361, allocations: 235.6 kB / 0.6109 GB, free: 4.797 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003369/1.362, allocations: 101.6 kB / 0.611 GB, free: 4.715 MB / 490.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: 29 (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,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.001995/1.364, allocations: 0.7719 MB / 0.6117 GB, free: 4.156 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006384/1.364, allocations: 213.5 kB / 0.6119 GB, free: 3.945 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01838/1.383, allocations: 7.825 MB / 0.6196 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001134/1.383, allocations: 79.88 kB / 0.6197 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/1.383, allocations: 7.953 kB / 0.6197 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01512/1.398, allocations: 6.855 MB / 0.6264 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02402/1.422, allocations: 10.8 MB / 0.6369 GB, free: 11.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.906e-05/1.422, allocations: 4 kB / 0.6369 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002839/1.425, allocations: 346.1 kB / 0.6372 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008358/1.434, allocations: 2.182 MB / 0.6394 GB, free: 8.707 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004312/1.434, allocations: 59.97 kB / 0.6394 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005496/1.44, allocations: 4.077 MB / 0.6434 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/1.44, allocations: 0 / 0.6434 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01892/1.458, allocations: 7.889 MB / 0.6511 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002203/1.461, allocations: 0.7262 MB / 0.6518 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007366/1.462, allocations: 47.98 kB / 0.6519 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002824/1.464, allocations: 191.6 kB / 0.6521 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005145/1.465, allocations: 141 kB / 0.6522 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/1.465, allocations: 67.92 kB / 0.6523 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002842/1.468, allocations: 1.217 MB / 0.6534 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.61e-07/1.468, allocations: 0 / 0.6534 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01022/1.478, allocations: 2.623 MB / 0.656 GB, free: 7.414 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,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: 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.3279/1.806, allocations: 9.748 MB / 0.6655 GB, free: 222.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01525/1.822, allocations: 5.593 MB / 0.671 GB, free: 221.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.822, allocations: 0 / 0.671 GB, free: 221.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005314/1.827, allocations: 2.422 MB / 0.6734 GB, free: 220.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007213/1.834, allocations: 0.8895 MB / 0.6742 GB, free: 220.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02267/1.857, allocations: 11.29 MB / 0.6853 GB, free: 214.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002112/1.859, allocations: 2.249 MB / 0.6875 GB, free: 213.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002493/1.862, allocations: 1.318 MB / 0.6887 GB, free: 212.4 MB / 0.5261 GB Notification: Performance of SimCode: time 2.264e-06/1.862, allocations: 0 / 0.6887 GB, free: 212.4 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.839/6.701, allocations: 126.2 MB / 0.812 GB, free: 89.27 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat