Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.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.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.661/2.661, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.586e-05, allocations: 0 / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4188/0.4189, allocations: 54.85 MB / 364.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7913/1.21, allocations: 311.2 MB / 0.66 GB, free: 20.89 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/1.211, allocations: 85.58 kB / 0.6601 GB, free: 20.85 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.712/1.923, allocations: 96.45 MB / 0.7543 GB, free: 152.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.923, allocations: 0 / 0.7543 GB, free: 152.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.906e-05/1.923, allocations: 11.38 kB / 0.7543 GB, free: 152.4 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002019/1.925, allocations: 0.8233 MB / 0.7551 GB, free: 151.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/1.925, allocations: 11 kB / 0.7551 GB, free: 151.8 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/1.925, allocations: 70.89 kB / 0.7552 GB, free: 151.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/1.925, allocations: 52.66 kB / 0.7552 GB, free: 151.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/1.927, allocations: 485 kB / 0.7557 GB, free: 151.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.411e-05/1.927, allocations: 23.33 kB / 0.7557 GB, free: 151.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.259e-05/1.927, allocations: 26.84 kB / 0.7557 GB, free: 151.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/1.928, allocations: 0.515 MB / 0.7562 GB, free: 151.1 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/1.928, allocations: 0 / 0.7562 GB, free: 151.1 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.949e-05/1.928, allocations: 19.72 kB / 0.7563 GB, free: 151.1 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.687e-05/1.928, allocations: 24.19 kB / 0.7563 GB, free: 151.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009617/1.929, allocations: 435.7 kB / 0.7567 GB, free: 150.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/1.934, allocations: 2.253 MB / 0.7589 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/1.934, allocations: 206.6 kB / 0.7591 GB, free: 149.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/1.934, allocations: 108.7 kB / 0.7592 GB, free: 149.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001661/1.936, allocations: 1.062 MB / 0.7602 GB, free: 148.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/1.936, allocations: 147.6 kB / 0.7604 GB, free: 148.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 2.645e-06/1.936, allocations: 0 / 0.7604 GB, free: 148.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005453/1.937, allocations: 230 kB / 0.7606 GB, free: 148 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/1.937, allocations: 158.2 kB / 0.7607 GB, free: 147.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000667/1.938, allocations: 438.4 kB / 0.7612 GB, free: 147.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/1.938, allocations: 32.61 kB / 0.7612 GB, free: 147.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/1.938, allocations: 348 kB / 0.7615 GB, free: 147.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/1.938, allocations: 42.5 kB / 0.7616 GB, free: 147.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/1.938, allocations: 7.969 kB / 0.7616 GB, free: 147.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/1.938, allocations: 326.5 kB / 0.7619 GB, free: 146.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/1.938, allocations: 106.6 kB / 0.762 GB, free: 146.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/1.939, allocations: 327.1 kB / 0.7623 GB, free: 146.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/1.939, allocations: 198.1 kB / 0.7625 GB, free: 146.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/1.939, allocations: 3.688 kB / 0.7625 GB, free: 146.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009991/1.94, allocations: 476.4 kB / 0.7629 GB, free: 146.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006255/1.941, allocations: 2.816 MB / 0.7657 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/1.941, allocations: 7.719 kB / 0.7657 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-05/1.941, allocations: 11.62 kB / 0.7657 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006102/1.942, allocations: 87.06 kB / 0.7658 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.981e-05/1.942, allocations: 18.39 kB / 0.7658 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007302/1.942, allocations: 57.44 kB / 0.7659 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.764e-05/1.943, allocations: 30.58 kB / 0.7659 GB, free: 143.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.943, allocations: 3.062 kB / 0.7659 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001015/1.944, allocations: 447.2 kB / 0.7663 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/1.944, allocations: 8.531 kB / 0.7663 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/1.944, allocations: 13.28 kB / 0.7663 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005063/1.944, allocations: 92.03 kB / 0.7664 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/1.944, allocations: 20.69 kB / 0.7665 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/1.945, allocations: 45.41 kB / 0.7665 GB, free: 142.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/1.945, allocations: 25.19 kB / 0.7665 GB, free: 142.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000191/1.945, allocations: 169.7 kB / 0.7667 GB, free: 142.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/1.945, allocations: 48.97 kB / 0.7667 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007091/1.946, allocations: 287.2 kB / 0.767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/1.946, allocations: 0 / 0.767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.946, allocations: 0 / 0.767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/1.946, allocations: 3.188 kB / 0.767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005316/1.946, allocations: 386.2 kB / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/1.946, allocations: 0 / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/1.946, allocations: 23.41 kB / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/1.947, allocations: 3.984 kB / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/1.947, allocations: 11.89 kB / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/1.947, allocations: 0 / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.947, allocations: 0 / 0.7674 GB, free: 142.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005091/1.947, allocations: 281 kB / 0.7677 GB, free: 142.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/1.947, allocations: 131.4 kB / 0.7678 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.903e-05/1.947, allocations: 11.75 kB / 0.7678 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003477/1.948, allocations: 11.36 kB / 0.7678 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/1.948, allocations: 14.69 kB / 0.7678 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.023e-05/1.948, allocations: 3.938 kB / 0.7678 GB, free: 142 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000484/1.948, allocations: 332.4 kB / 0.7682 GB, free: 141.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.633e-06/1.948, allocations: 0 / 0.7682 GB, free: 141.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001787/1.95, allocations: 463.9 kB / 0.7686 GB, free: 141.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002187/1.952, allocations: 1.211 MB / 0.7698 GB, free: 140.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/1.954, allocations: 0.6259 MB / 0.7704 GB, free: 140.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.954, allocations: 0 / 0.7704 GB, free: 140.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/1.954, allocations: 159.5 kB / 0.7706 GB, free: 140.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/1.955, allocations: 131.8 kB / 0.7707 GB, free: 140.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/1.958, allocations: 0.8267 MB / 0.7715 GB, free: 140 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/1.958, allocations: 0.8513 MB / 0.7723 GB, free: 139.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002983/1.958, allocations: 152.5 kB / 0.7725 GB, free: 139.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.052e-06/1.958, allocations: 0 / 0.7725 GB, free: 139.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.024/4.982, allocations: 11.54 MB / 0.7837 GB, free: 132.9 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat