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.SimpleDriveTrain.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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.435/2.435, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004433, allocations: 16 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.3723, allocations: 54.86 MB / 369.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1599/0.5323, allocations: 81.39 MB / 450.7 MB, free: 9.086 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003887/0.5327, allocations: 79.78 kB / 450.8 MB, free: 9.012 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01965/0.5524, allocations: 2.331 MB / 453.2 MB, free: 6.672 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.5525, allocations: 0 / 453.2 MB, free: 6.672 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.5525, allocations: 4 kB / 453.2 MB, free: 6.668 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.005269/0.5578, allocations: 422.8 kB / 453.6 MB, free: 6.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.5579, allocations: 8.031 kB / 453.6 MB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.845e-05/0.558, allocations: 46.55 kB / 453.6 MB, free: 6.145 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.561e-05/0.5581, allocations: 15.81 kB / 453.6 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.5584, allocations: 206.8 kB / 453.8 MB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.5585, allocations: 12 kB / 453.9 MB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.043e-05/0.5585, allocations: 12 kB / 453.9 MB, free: 5.863 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.5591, allocations: 125.6 kB / 454 MB, free: 5.734 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.5591, allocations: 4 kB / 454 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.5592, allocations: 11.94 kB / 454 MB, free: 5.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.5592, allocations: 4 kB / 454 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.5597, allocations: 79.95 kB / 454.1 MB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.5611, allocations: 472.2 kB / 454.5 MB, free: 5.125 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.5616, allocations: 122.5 kB / 454.7 MB, free: 4.996 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.5617, allocations: 0 / 454.7 MB, free: 4.996 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.5617, allocations: 30.56 kB / 454.7 MB, free: 4.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 5.45e-06/0.5618, allocations: 3.938 kB / 454.7 MB, free: 4.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.01152/0.5733, allocations: 0.8217 MB / 455.5 MB, free: 4.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.087e-05/0.5734, allocations: 59.39 kB / 455.6 MB, free: 3.969 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.5737, allocations: 125.3 kB / 455.7 MB, free: 3.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.5737, allocations: 29.7 kB / 455.7 MB, free: 3.801 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.5739, allocations: 178.7 kB / 455.9 MB, free: 3.625 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.574, allocations: 63.02 kB / 456 MB, free: 3.562 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.956e-05/0.574, allocations: 4 kB / 456 MB, free: 3.559 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.5742, allocations: 322.8 kB / 456.3 MB, free: 3.234 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.5745, allocations: 48.34 kB / 456.3 MB, free: 3.184 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.5748, allocations: 85.78 kB / 456.4 MB, free: 3.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000278/0.5751, allocations: 52 kB / 456.5 MB, free: 3.039 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5751, allocations: 0 / 456.5 MB, free: 3.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0009023/0.576, allocations: 214.2 kB / 456.7 MB, free: 2.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.5761, allocations: 5.875 kB / 456.7 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5761, allocations: 4 kB / 456.7 MB, free: 2.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.5764, allocations: 36.84 kB / 456.7 MB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000429/0.5769, allocations: 35.97 kB / 456.8 MB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/0.5799, allocations: 1.577 MB / 458.3 MB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.5801, allocations: 4.031 kB / 458.3 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.5802, allocations: 12 kB / 458.3 MB, free: 1.008 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002366/0.5804, allocations: 126 kB / 458.5 MB, free: 0.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.571e-05/0.5806, allocations: 11.91 kB / 458.5 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.19e-05/0.5807, allocations: 29.2 kB / 458.5 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.5807, allocations: 0 / 458.5 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.5807, allocations: 0 / 458.5 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.5807, allocations: 0 / 458.5 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.5827, allocations: 0.5584 MB / 459.1 MB, free: 220 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.5828, allocations: 3.953 kB / 459.1 MB, free: 216 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/0.5833, allocations: 35.92 kB / 459.1 MB, free: 180 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002856/0.5836, allocations: 32.83 kB / 459.1 MB, free: 144 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.5837, allocations: 8.031 kB / 459.2 MB, free: 136 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/0.5983, allocations: 1.375 MB / 460.5 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5983, allocations: 4.062 kB / 460.5 MB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.5995, allocations: 366 kB / 460.9 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.5996, allocations: 97 kB / 461 MB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.567e-05/0.5997, allocations: 8 kB / 461 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002316/0.5999, allocations: 8 kB / 461 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/0.6, allocations: 8.266 kB / 461 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.503e-05/0.6001, allocations: 8 kB / 461 MB, free: 14.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001646/0.6003, allocations: 111.2 kB / 461.1 MB, free: 13.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6003, allocations: 0 / 461.1 MB, free: 13.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008956/0.6012, allocations: 40 kB / 461.2 MB, free: 13.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/0.6033, allocations: 0.9683 MB / 462.1 MB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.6044, allocations: 270.5 kB / 462.4 MB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.6045, allocations: 0 / 462.4 MB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008026/0.6125, allocations: 204.7 kB / 462.6 MB, free: 12.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005324/0.6131, allocations: 14.27 kB / 462.6 MB, free: 12.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003959/0.617, allocations: 1.567 MB / 464.2 MB, free: 10.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.6176, allocations: 0.7285 MB / 464.9 MB, free: 10.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.6178, allocations: 43.42 kB / 464.9 MB, free: 9.992 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6178, allocations: 0 / 464.9 MB, free: 9.992 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.72/3.338, allocations: 2.994 MB / 467.9 MB, free: 6.996 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat