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.BranchingPipes16.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.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 235 MB / 248.1 MB, free: 14.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.486e-05, allocations: 0 / 309.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4265, allocations: 54.85 MB / 364.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.951/2.378, allocations: 0.6876 GB / 1.044 GB, free: 40.39 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/2.378, allocations: 79.44 kB / 1.044 GB, free: 40.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.207/5.585, allocations: 0.5495 GB / 1.593 GB, free: 37.93 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.805e-06/5.585, allocations: 0 / 1.593 GB, free: 37.93 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002739/5.585, allocations: 60.3 kB / 1.593 GB, free: 37.92 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.01264/5.598, allocations: 3.016 MB / 1.596 GB, free: 36.17 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/5.598, allocations: 12.78 kB / 1.596 GB, free: 36.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001234/5.599, allocations: 252.3 kB / 1.597 GB, free: 36.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004993/5.604, allocations: 444.3 kB / 1.597 GB, free: 35.86 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008522/5.613, allocations: 1.933 MB / 1.599 GB, free: 34.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/5.613, allocations: 131.1 kB / 1.599 GB, free: 34.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/5.614, allocations: 162.3 kB / 1.599 GB, free: 34.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007528/5.622, allocations: 2.579 MB / 1.602 GB, free: 33.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.986e-05/5.622, allocations: 3.406 kB / 1.602 GB, free: 33.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004258/5.622, allocations: 82.39 kB / 1.602 GB, free: 33.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/5.622, allocations: 150.8 kB / 1.602 GB, free: 33.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007005/5.629, allocations: 2.176 MB / 1.604 GB, free: 31.49 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.02524/5.655, allocations: 10.97 MB / 1.615 GB, free: 19.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/5.66, allocations: 1.739 MB / 1.616 GB, free: 17.94 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00278/5.662, allocations: 1.032 MB / 1.617 GB, free: 16.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001506/5.664, allocations: 464.8 kB / 1.618 GB, free: 16.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003038/5.667, allocations: 1.159 MB / 1.619 GB, free: 15.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=162): time 5.501e-06/5.667, allocations: 0 / 1.619 GB, free: 15.22 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.03719/5.704, allocations: 8.46 MB / 1.627 GB, free: 6.633 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/5.704, allocations: 257.3 kB / 1.628 GB, free: 6.324 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002774/5.707, allocations: 1.329 MB / 1.629 GB, free: 4.996 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007104/5.708, allocations: 65.7 kB / 1.629 GB, free: 4.926 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007399/5.709, allocations: 0.8029 MB / 1.63 GB, free: 4.113 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/5.71, allocations: 0.6354 MB / 1.63 GB, free: 3.469 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002684/5.71, allocations: 40 kB / 1.63 GB, free: 3.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/5.71, allocations: 398.9 kB / 1.631 GB, free: 3.031 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/5.713, allocations: 0.9879 MB / 1.632 GB, free: 2.043 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003113/5.716, allocations: 1.434 MB / 1.633 GB, free: 456 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003634/5.72, allocations: 1.262 MB / 1.634 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/5.72, allocations: 4 kB / 1.634 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.009627/5.729, allocations: 2.881 MB / 1.637 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001827/5.731, allocations: 4.164 MB / 1.641 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.722e-05/5.731, allocations: 12 kB / 1.641 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008302/5.732, allocations: 187.3 kB / 1.641 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005104/5.737, allocations: 0.5461 MB / 1.642 GB, free: 7.008 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/5.74, allocations: 2.33 MB / 1.644 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004597/5.744, allocations: 215.9 kB / 1.644 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/5.745, allocations: 192 kB / 1.645 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/5.745, allocations: 4 kB / 1.645 GB, free: 4.172 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009531/5.755, allocations: 2.724 MB / 1.647 GB, free: 1.422 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.11e-05/5.755, allocations: 8 kB / 1.647 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/5.756, allocations: 191.9 kB / 1.647 GB, free: 1.215 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00497/5.761, allocations: 0.5344 MB / 1.648 GB, free: 0.6797 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/5.763, allocations: 2.33 MB / 1.65 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003757/5.767, allocations: 212 kB / 1.65 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009446/5.768, allocations: 184 kB / 1.651 GB, free: 13.86 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.001158/5.769, allocations: 296.7 kB / 1.651 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008334/5.77, allocations: 213.4 kB / 1.651 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/5.784, allocations: 3.459 MB / 1.654 GB, free: 9.855 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.259e-05/5.784, allocations: 20 kB / 1.655 GB, free: 9.836 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/5.784, allocations: 0 / 1.655 GB, free: 9.836 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008103/5.792, allocations: 2.712 MB / 1.657 GB, free: 7.016 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4786/6.271, allocations: 6.861 MB / 1.664 GB, free: 66.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.913e-05/6.271, allocations: 5.75 kB / 1.664 GB, free: 66.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004168/6.275, allocations: 445.1 kB / 1.664 GB, free: 66.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008088/6.276, allocations: 189.3 kB / 1.664 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005931/6.277, allocations: 110.8 kB / 1.665 GB, free: 66.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/6.279, allocations: 3.067 MB / 1.668 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.447e-05/6.279, allocations: 10.06 kB / 1.668 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/6.291, allocations: 4.646 MB / 1.672 GB, free: 62.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002243/6.293, allocations: 0.5337 MB / 1.673 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009922/6.294, allocations: 61.09 kB / 1.673 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00351/6.298, allocations: 129.1 kB / 1.673 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008163/6.299, allocations: 174.7 kB / 1.673 GB, free: 62.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004775/6.299, allocations: 168.5 kB / 1.673 GB, free: 62.34 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002475/6.302, allocations: 1.004 MB / 1.674 GB, free: 62.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.974e-06/6.302, allocations: 3.281 kB / 1.674 GB, free: 62.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0123/6.314, allocations: 1.955 MB / 1.676 GB, free: 62.22 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.03517/6.349, allocations: 9.241 MB / 1.685 GB, free: 58.67 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01396/6.364, allocations: 4.278 MB / 1.689 GB, free: 58.37 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/6.364, allocations: 0 / 1.689 GB, free: 58.37 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00394/6.368, allocations: 1.549 MB / 1.691 GB, free: 58.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007963/6.376, allocations: 0.9144 MB / 1.692 GB, free: 58.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/6.402, allocations: 6.517 MB / 1.698 GB, free: 57.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001841/6.404, allocations: 1.699 MB / 1.7 GB, free: 56.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003859/6.408, allocations: 1.036 MB / 1.701 GB, free: 56.33 MB / 0.5105 GB Notification: Performance of SimCode: time 2.645e-06/6.408, allocations: 0 / 1.701 GB, free: 56.33 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.587/10.99, allocations: 93.16 MB / 1.792 GB, free: 42.64 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat does not exist to compare? outputFormat=mat