Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005454/0.0005453, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1012, allocations: 44.5 MB / 308.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5485, allocations: 94.74 MB / 403.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.5489, allocations: 85.05 kB / 403.4 MB, free: 13.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.409/0.9579, allocations: 97.14 MB / 0.4888 GB, free: 3.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.9579, allocations: 4 kB / 0.4888 GB, free: 3.246 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003163/0.9582, allocations: 92 kB / 0.4889 GB, free: 3.156 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: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.02156/0.9798, allocations: 4.98 MB / 0.4937 GB, free: 14.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.9799, allocations: 11.97 kB / 0.4937 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004264/0.9842, allocations: 0.8657 MB / 0.4946 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03471/1.019, allocations: 4.494 MB / 0.499 GB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02021/1.039, allocations: 5.053 MB / 0.5039 GB, free: 3.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005725/1.04, allocations: 369.4 kB / 0.5043 GB, free: 3.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002794/1.043, allocations: 479.8 kB / 0.5047 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03941/1.082, allocations: 12.05 MB / 0.5165 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002922/1.082, allocations: 59.41 kB / 0.5165 GB, free: 5.598 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002176/1.085, allocations: 231.9 kB / 0.5168 GB, free: 5.371 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003141/1.088, allocations: 1.199 MB / 0.5179 GB, free: 4.172 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3063/1.394, allocations: 9.961 MB / 0.5277 GB, free: 81.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09522/1.489, allocations: 52.85 MB / 0.5793 GB, free: 51.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0268/1.516, allocations: 5.239 MB / 0.5844 GB, free: 51.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01894/1.535, allocations: 8.036 MB / 0.5922 GB, free: 47.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/1.535, allocations: 59.16 kB / 0.5923 GB, free: 47.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 5.48e-06/1.535, allocations: 0 / 0.5923 GB, free: 47.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.07905/1.614, allocations: 19.42 MB / 0.6113 GB, free: 40.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/1.615, allocations: 184 kB / 0.6114 GB, free: 40.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00996/1.625, allocations: 4.192 MB / 0.6155 GB, free: 38.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005971/1.625, allocations: 68.27 kB / 0.6156 GB, free: 38.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002875/1.628, allocations: 3.289 MB / 0.6188 GB, free: 36.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001633/1.63, allocations: 0.896 MB / 0.6197 GB, free: 35.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008965/1.631, allocations: 130.5 kB / 0.6198 GB, free: 35.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00044/1.631, allocations: 0.5916 MB / 0.6204 GB, free: 34.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006438/1.638, allocations: 2.503 MB / 0.6228 GB, free: 34.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008674/1.646, allocations: 6.38 MB / 0.6291 GB, free: 27.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008868/1.655, allocations: 3.928 MB / 0.6329 GB, free: 26.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.655, allocations: 41.22 kB / 0.6329 GB, free: 26.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02463/1.68, allocations: 9.315 MB / 0.642 GB, free: 19.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/1.68, allocations: 64 kB / 0.6421 GB, free: 19.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001866/1.68, allocations: 139 kB / 0.6422 GB, free: 19.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003526/1.684, allocations: 0.9247 MB / 0.6431 GB, free: 18.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009822/1.694, allocations: 1.597 MB / 0.6447 GB, free: 17.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/1.705, allocations: 5.925 MB / 0.6505 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007451/1.712, allocations: 383.5 kB / 0.6508 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001683/1.714, allocations: 401.7 kB / 0.6512 GB, free: 11.16 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 812 * Array equations: 3 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006589/1.72, allocations: 2.363 MB / 0.6535 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/1.722, allocations: 426.5 kB / 0.6539 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.734, allocations: 4.285 MB / 0.6581 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-05/1.734, allocations: 28 kB / 0.6581 GB, free: 5.109 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/1.734, allocations: 4 kB / 0.6581 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.776e-05/1.734, allocations: 10.31 kB / 0.6582 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03172/1.766, allocations: 10.48 MB / 0.6684 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.522e-05/1.766, allocations: 7.953 kB / 0.6684 GB, free: 12.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004588/1.77, allocations: 468.3 kB / 0.6688 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003435/1.774, allocations: 0.7294 MB / 0.6696 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000563/1.774, allocations: 40 kB / 0.6696 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/1.787, allocations: 5.471 MB / 0.6749 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/1.787, allocations: 8 kB / 0.6749 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3049/2.092, allocations: 8.344 MB / 0.6831 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002862/2.095, allocations: 0.8173 MB / 0.6839 GB, free: 90.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/2.096, allocations: 41.19 kB / 0.6839 GB, free: 90.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003873/2.1, allocations: 147.2 kB / 0.6841 GB, free: 90.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007946/2.101, allocations: 146.3 kB / 0.6842 GB, free: 90.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002868/2.101, allocations: 68.52 kB / 0.6843 GB, free: 90.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009135/2.11, allocations: 3.008 MB / 0.6872 GB, free: 90.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.82e-07/2.11, allocations: 0 / 0.6872 GB, free: 90.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008769/2.119, allocations: 1.148 MB / 0.6883 GB, free: 90.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * Array equations: 3 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0212/2.14, allocations: 10.14 MB / 0.6982 GB, free: 87.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01453/2.155, allocations: 6.137 MB / 0.7042 GB, free: 87.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/2.155, allocations: 0 / 0.7042 GB, free: 87.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006397/2.161, allocations: 2.269 MB / 0.7064 GB, free: 86.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004297/2.166, allocations: 483.6 kB / 0.7069 GB, free: 86.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1316/2.297, allocations: 136.8 MB / 0.8405 GB, free: 18.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008405/2.306, allocations: 3.765 MB / 0.8442 GB, free: 17.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00572/2.311, allocations: 2.267 MB / 0.8464 GB, free: 15.49 MB / 474.7 MB Notification: Performance of SimCode: time 1.503e-06/2.312, allocations: 2.25 kB / 0.8464 GB, free: 15.49 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.853/7.164, allocations: 115.3 MB / 0.959 GB, free: 116 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat