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.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.497e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4138, allocations: 54.85 MB / 364.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.077/2.491, allocations: 0.6876 GB / 1.044 GB, free: 40.26 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/2.491, allocations: 78.64 kB / 1.044 GB, free: 40.22 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.21/5.701, allocations: 0.5495 GB / 1.593 GB, free: 37.51 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.106e-06/5.701, allocations: 2.562 kB / 1.593 GB, free: 37.51 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003498/5.702, allocations: 60.53 kB / 1.593 GB, free: 37.5 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.01348/5.715, allocations: 3.014 MB / 1.596 GB, free: 35.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/5.715, allocations: 10.41 kB / 1.596 GB, free: 35.77 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001073/5.716, allocations: 240.6 kB / 1.597 GB, free: 35.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004876/5.721, allocations: 449.1 kB / 1.597 GB, free: 35.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/5.73, allocations: 1.936 MB / 1.599 GB, free: 34.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/5.73, allocations: 128.6 kB / 1.599 GB, free: 34.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/5.731, allocations: 160.8 kB / 1.599 GB, free: 34.45 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007836/5.739, allocations: 2.582 MB / 1.602 GB, free: 33.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-05/5.739, allocations: 3.156 kB / 1.602 GB, free: 33.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004322/5.74, allocations: 73.3 kB / 1.602 GB, free: 33.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003179/5.74, allocations: 151.9 kB / 1.602 GB, free: 33.16 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007101/5.747, allocations: 2.176 MB / 1.604 GB, free: 31.71 MB / 490.7 MB 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.02561/5.773, allocations: 10.97 MB / 1.615 GB, free: 20.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004816/5.778, allocations: 1.75 MB / 1.616 GB, free: 18.31 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00273/5.781, allocations: 1.04 MB / 1.617 GB, free: 17.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001514/5.782, allocations: 449.1 kB / 1.618 GB, free: 16.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003112/5.785, allocations: 1.151 MB / 1.619 GB, free: 15.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 5.47e-06/5.785, allocations: 0 / 1.619 GB, free: 15.6 MB / 490.7 MB 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=185): time 0.03812/5.824, allocations: 8.469 MB / 1.627 GB, free: 7.004 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/5.824, allocations: 265.3 kB / 1.628 GB, free: 6.688 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/5.827, allocations: 1.325 MB / 1.629 GB, free: 5.363 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007425/5.827, allocations: 65.7 kB / 1.629 GB, free: 5.293 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000789/5.828, allocations: 0.8107 MB / 1.63 GB, free: 4.473 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001074/5.829, allocations: 0.6238 MB / 1.63 GB, free: 3.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/5.83, allocations: 40 kB / 1.63 GB, free: 3.801 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/5.83, allocations: 390.9 kB / 1.631 GB, free: 3.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002599/5.832, allocations: 0.9918 MB / 1.632 GB, free: 2.418 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003169/5.836, allocations: 1.434 MB / 1.633 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003704/5.839, allocations: 1.262 MB / 1.634 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-05/5.839, allocations: 0 / 1.634 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009809/5.849, allocations: 2.885 MB / 1.637 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001899/5.851, allocations: 4.167 MB / 1.641 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/5.851, allocations: 8 kB / 1.641 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/5.852, allocations: 195.3 kB / 1.641 GB, free: 7.918 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005125/5.857, allocations: 0.5383 MB / 1.642 GB, free: 7.379 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/5.86, allocations: 2.327 MB / 1.644 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/5.864, allocations: 219.7 kB / 1.644 GB, free: 4.734 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009888/5.865, allocations: 188 kB / 1.645 GB, free: 4.551 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/5.865, allocations: 4 kB / 1.645 GB, free: 4.547 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00868/5.874, allocations: 2.724 MB / 1.647 GB, free: 1.797 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.292e-05/5.874, allocations: 16 kB / 1.647 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006733/5.875, allocations: 191.9 kB / 1.647 GB, free: 1.582 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004823/5.88, allocations: 0.5344 MB / 1.648 GB, free: 1.047 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/5.882, allocations: 2.334 MB / 1.65 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003605/5.886, allocations: 203.8 kB / 1.65 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009586/5.887, allocations: 188 kB / 1.651 GB, free: 14.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (250): * Single equations (assignments): 244 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00106/5.888, allocations: 300.7 kB / 1.651 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007972/5.889, allocations: 209.5 kB / 1.651 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01376/5.902, allocations: 3.463 MB / 1.654 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/5.902, allocations: 20 kB / 1.654 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/5.902, allocations: 3.984 kB / 1.654 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008016/5.91, allocations: 2.705 MB / 1.657 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02262/5.933, allocations: 6.873 MB / 1.664 GB, free: 200 kB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/5.933, allocations: 4 kB / 1.664 GB, free: 196 kB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.4105/6.344, allocations: 441.8 kB / 1.664 GB, free: 66.92 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007984/6.345, allocations: 186.4 kB / 1.664 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005482/6.345, allocations: 104 kB / 1.665 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/6.347, allocations: 3.068 MB / 1.668 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/6.348, allocations: 10.59 kB / 1.668 GB, free: 64.11 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01157/6.359, allocations: 4.65 MB / 1.672 GB, free: 63.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002223/6.361, allocations: 0.5248 MB / 1.673 GB, free: 62.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008935/6.362, allocations: 59.31 kB / 1.673 GB, free: 62.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002794/6.365, allocations: 139 kB / 1.673 GB, free: 62.94 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005098/6.366, allocations: 173.8 kB / 1.673 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004426/6.366, allocations: 171.8 kB / 1.673 GB, free: 62.93 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002213/6.368, allocations: 1.009 MB / 1.674 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.91e-07/6.368, allocations: 2.062 kB / 1.674 GB, free: 62.82 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00979/6.378, allocations: 1.95 MB / 1.676 GB, free: 62.82 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (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) * 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 (196): * Single equations (assignments): 190 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02164/6.4, allocations: 9.247 MB / 1.685 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01202/6.412, allocations: 4.275 MB / 1.689 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/6.412, allocations: 3.25 kB / 1.689 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003741/6.416, allocations: 1.538 MB / 1.691 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008004/6.424, allocations: 0.9044 MB / 1.692 GB, free: 58.71 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/6.448, allocations: 6.525 MB / 1.698 GB, free: 57.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/6.45, allocations: 1.704 MB / 1.7 GB, free: 56.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003692/6.454, allocations: 1.035 MB / 1.701 GB, free: 56.92 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/6.454, allocations: 2.719 kB / 1.701 GB, free: 56.92 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.626/11.08, allocations: 93.15 MB / 1.792 GB, free: 43.15 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat does not exist to compare? outputFormat=mat