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.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.326/2.326, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.825e-05/4.843e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4282, allocations: 54.86 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.933/2.361, allocations: 0.6877 GB / 1.044 GB, free: 40.73 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/2.362, allocations: 78.02 kB / 1.044 GB, free: 40.69 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.866/6.227, allocations: 0.6141 GB / 1.658 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.475e-06/6.228, allocations: 0 / 1.658 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004054/6.228, allocations: 67.77 kB / 1.658 GB, free: 36.33 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01497/6.243, allocations: 3.187 MB / 1.661 GB, free: 35.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/6.243, allocations: 7.781 kB / 1.661 GB, free: 35.3 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001265/6.244, allocations: 255.7 kB / 1.661 GB, free: 35.26 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005192/6.25, allocations: 465.1 kB / 1.662 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009334/6.259, allocations: 1.994 MB / 1.664 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/6.259, allocations: 137.2 kB / 1.664 GB, free: 34.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/6.261, allocations: 184.5 kB / 1.664 GB, free: 34.77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009102/6.27, allocations: 2.688 MB / 1.667 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.496e-05/6.27, allocations: 6.75 kB / 1.667 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005201/6.27, allocations: 78.98 kB / 1.667 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003756/6.271, allocations: 156 kB / 1.667 GB, free: 34.31 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008343/6.279, allocations: 2.275 MB / 1.669 GB, free: 34.3 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.02865/6.308, allocations: 11.55 MB / 1.681 GB, free: 28.15 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005419/6.313, allocations: 1.814 MB / 1.682 GB, free: 27.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00301/6.316, allocations: 1.09 MB / 1.683 GB, free: 27.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001608/6.318, allocations: 462.8 kB / 1.684 GB, free: 27.52 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003582/6.322, allocations: 1.197 MB / 1.685 GB, free: 27.39 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=172): time 6.833e-06/6.322, allocations: 0 / 1.685 GB, free: 27.39 MB / 0.4948 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.04701/6.369, allocations: 9.519 MB / 1.694 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/6.369, allocations: 258.2 kB / 1.694 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002975/6.372, allocations: 1.382 MB / 1.696 GB, free: 25.73 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008295/6.373, allocations: 72.48 kB / 1.696 GB, free: 25.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008521/6.374, allocations: 0.8517 MB / 1.697 GB, free: 25.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001163/6.375, allocations: 0.6773 MB / 1.697 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/6.375, allocations: 45.59 kB / 1.697 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001711/6.375, allocations: 405.5 kB / 1.698 GB, free: 24.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/6.378, allocations: 1.031 MB / 1.699 GB, free: 24.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003523/6.382, allocations: 1.525 MB / 1.7 GB, free: 24.05 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003683/6.385, allocations: 1.329 MB / 1.702 GB, free: 23.97 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.831e-05/6.385, allocations: 3.688 kB / 1.702 GB, free: 23.97 MB / 0.4948 GB Notification: Performance of matching and sorting (n=288) (initialization): time 0.009204/6.395, allocations: 3.116 MB / 1.705 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001097/6.396, allocations: 4.687 MB / 1.709 GB, free: 18.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/6.396, allocations: 11.28 kB / 1.709 GB, free: 18.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/6.397, allocations: 298.2 kB / 1.71 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005043/6.402, allocations: 0.5761 MB / 1.71 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/6.405, allocations: 2.999 MB / 1.713 GB, free: 16.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004764/6.41, allocations: 218.4 kB / 1.713 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009796/6.411, allocations: 208.1 kB / 1.713 GB, free: 16.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/6.411, allocations: 7.047 kB / 1.713 GB, free: 16.22 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008676/6.419, allocations: 2.956 MB / 1.716 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.467e-05/6.419, allocations: 12.53 kB / 1.716 GB, free: 16.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/6.42, allocations: 300.4 kB / 1.717 GB, free: 16.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004754/6.425, allocations: 0.5679 MB / 1.717 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/6.429, allocations: 2.997 MB / 1.72 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00387/6.432, allocations: 216.1 kB / 1.72 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006392/6.433, allocations: 204.4 kB / 1.721 GB, free: 29.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001121/6.434, allocations: 314.8 kB / 1.721 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008247/6.435, allocations: 220.4 kB / 1.721 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/6.448, allocations: 3.735 MB / 1.725 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/6.448, allocations: 18.75 kB / 1.725 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/6.448, allocations: 3.062 kB / 1.725 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007396/6.456, allocations: 2.876 MB / 1.728 GB, free: 28.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02071/6.476, allocations: 7.007 MB / 1.734 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/6.477, allocations: 6.875 kB / 1.734 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003887/6.48, allocations: 456.5 kB / 1.735 GB, free: 26.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/6.482, allocations: 318.9 kB / 1.735 GB, free: 26.94 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006892/6.483, allocations: 111.6 kB / 1.735 GB, free: 26.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003858/6.487, allocations: 3.748 MB / 1.739 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/6.487, allocations: 10.34 kB / 1.739 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/6.498, allocations: 4.879 MB / 1.744 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002449/6.501, allocations: 0.55 MB / 1.744 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000909/6.502, allocations: 70.61 kB / 1.744 GB, free: 22.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003246/6.505, allocations: 131.9 kB / 1.744 GB, free: 22.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006059/6.506, allocations: 185.5 kB / 1.745 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004828/6.506, allocations: 190.1 kB / 1.745 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002326/6.509, allocations: 1.047 MB / 1.746 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.22e-07/6.509, allocations: 0 / 1.746 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01035/6.519, allocations: 2.052 MB / 1.748 GB, free: 21.83 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 198 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02359/6.543, allocations: 9.489 MB / 1.757 GB, free: 18.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01358/6.556, allocations: 4.536 MB / 1.761 GB, free: 17.76 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-05/6.556, allocations: 0 / 1.761 GB, free: 17.76 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004766/6.561, allocations: 1.625 MB / 1.763 GB, free: 17.51 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009139/6.57, allocations: 1.048 MB / 1.764 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02636/6.597, allocations: 6.77 MB / 1.771 GB, free: 16.12 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001792/6.599, allocations: 1.744 MB / 1.772 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003866/6.602, allocations: 1.096 MB / 1.773 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of SimCode: time 1.563e-06/6.602, allocations: 1.5 kB / 1.773 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.304/11.91, allocations: 106.4 MB / 1.877 GB, free: 63.68 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat does not exist to compare? outputFormat=mat