Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000439/0.000439, allocations: 12 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.3872, allocations: 54.86 MB / 369.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.5573, allocations: 79.78 MB / 449.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/0.5576, allocations: 67.95 kB / 449.2 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008314/0.566, allocations: 1.954 MB / 451.2 MB, free: 8.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.566, allocations: 0 / 451.2 MB, free: 8.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.566, allocations: 8 kB / 451.2 MB, free: 8.812 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006165/0.5667, allocations: 379.3 kB / 451.5 MB, free: 8.391 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.5667, allocations: 12.03 kB / 451.5 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.5668, allocations: 38.55 kB / 451.6 MB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.5669, allocations: 23.77 kB / 451.6 MB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.567, allocations: 175 kB / 451.8 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.5671, allocations: 4.234 kB / 451.8 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.5671, allocations: 19.91 kB / 451.8 MB, free: 8.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.5675, allocations: 133 kB / 451.9 MB, free: 7.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.5675, allocations: 3.938 kB / 451.9 MB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.5675, allocations: 8 kB / 451.9 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.5675, allocations: 0 / 451.9 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.5677, allocations: 63.92 kB / 452 MB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.5688, allocations: 0.5411 MB / 452.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.569, allocations: 81.17 kB / 452.6 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.569, allocations: 8 kB / 452.6 MB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.5691, allocations: 34.5 kB / 452.7 MB, free: 7.109 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 2.465e-06/0.5691, allocations: 0 / 452.7 MB, free: 7.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008431/0.5699, allocations: 301.4 kB / 453 MB, free: 6.766 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.57, allocations: 96.98 kB / 453.1 MB, free: 6.652 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.5702, allocations: 112.9 kB / 453.2 MB, free: 6.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.5702, allocations: 25.7 kB / 453.2 MB, free: 6.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.5703, allocations: 186.1 kB / 453.4 MB, free: 6.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.5704, allocations: 31.55 kB / 453.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-06/0.5704, allocations: 0 / 453.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.5705, allocations: 318.8 kB / 453.7 MB, free: 5.969 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.747e-05/0.5706, allocations: 23.98 kB / 453.7 MB, free: 5.945 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.5707, allocations: 88.52 kB / 453.8 MB, free: 5.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.5708, allocations: 39.98 kB / 453.9 MB, free: 5.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.5709, allocations: 0 / 453.9 MB, free: 5.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000437/0.5713, allocations: 171.4 kB / 454 MB, free: 5.609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.5713, allocations: 4 kB / 454 MB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5714, allocations: 4.25 kB / 454 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.5716, allocations: 37.7 kB / 454.1 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.5718, allocations: 27.92 kB / 454.1 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.5743, allocations: 2.542 MB / 456.6 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.5744, allocations: 11.91 kB / 456.7 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.5745, allocations: 4 kB / 456.7 MB, free: 2.707 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.5746, allocations: 129.7 kB / 456.8 MB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.726e-05/0.5747, allocations: 7.984 kB / 456.8 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.5748, allocations: 11.91 kB / 456.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.5748, allocations: 3.938 kB / 456.8 MB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5748, allocations: 4.062 kB / 456.8 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5748, allocations: 4 kB / 456.8 MB, free: 2.527 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.5752, allocations: 205.5 kB / 457 MB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5752, allocations: 0 / 457 MB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.5754, allocations: 12 kB / 457 MB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001819/0.5756, allocations: 37.75 kB / 457.1 MB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.5756, allocations: 3.984 kB / 457.1 MB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002602/0.5782, allocations: 2.54 MB / 459.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5783, allocations: 0 / 459.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004759/0.5787, allocations: 326.2 kB / 459.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/0.5788, allocations: 88.95 kB / 460 MB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.5789, allocations: 7.953 kB / 460 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.579, allocations: 0 / 460 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.5791, allocations: 8.031 kB / 460 MB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.5791, allocations: 8 kB / 460 MB, free: 14.94 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.247e-05/0.5792, allocations: 95.64 kB / 460.1 MB, free: 14.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5792, allocations: 4 kB / 460.1 MB, free: 14.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005113/0.5797, allocations: 32 kB / 460.2 MB, free: 14.81 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.phi,J2.w,J3.phi,J4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008784/0.5806, allocations: 0.9165 MB / 461.1 MB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.5813, allocations: 301.2 kB / 461.4 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5813, allocations: 0 / 461.4 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.5817, allocations: 265.8 kB / 461.6 MB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.5822, allocations: 15.98 kB / 461.6 MB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.5851, allocations: 2.4 MB / 464 MB, free: 10.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.5856, allocations: 0.7161 MB / 464.8 MB, free: 9.992 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/0.5857, allocations: 27.42 kB / 464.8 MB, free: 9.965 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/0.5857, allocations: 0 / 464.8 MB, free: 9.965 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.096/3.682, allocations: 2.895 MB / 467.7 MB, free: 7.066 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat does not exist to compare? outputFormat=mat