Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FixedRotation.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.MultiBody.Parts.FixedRotation,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FixedRotation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.223/2.223, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004511, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.3843, allocations: 54.85 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.5464, allocations: 90.08 MB / 459.4 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.5468, allocations: 83.91 kB / 459.5 MB, free: 436 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.967/1.514, allocations: 138.8 MB / 0.5843 GB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.016e-06/1.514, allocations: 0 / 0.5843 GB, free: 1.055 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003412/1.514, allocations: 120 kB / 0.5844 GB, free: 0.9375 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2814 * Number of variables: 2814 Notification: Performance of Generate backend data structure: time 0.02522/1.539, allocations: 6.256 MB / 0.5905 GB, free: 10.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/1.54, allocations: 12.03 kB / 0.5905 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00735/1.547, allocations: 1.393 MB / 0.5919 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04956/1.596, allocations: 6.529 MB / 0.5983 GB, free: 2.633 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/1.613, allocations: 4.284 MB / 0.6025 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009147/1.614, allocations: 0.5013 MB / 0.6029 GB, free: 13.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004987/1.619, allocations: 0.656 MB / 0.6036 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0799/1.699, allocations: 18.12 MB / 0.6213 GB, free: 10.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004724/1.699, allocations: 39.62 kB / 0.6213 GB, free: 10.19 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005502/1.705, allocations: 311.7 kB / 0.6216 GB, free: 9.887 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006676/1.711, allocations: 2.145 MB / 0.6237 GB, free: 7.734 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05682/1.768, allocations: 17.49 MB / 0.6408 GB, free: 6.219 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.477/2.245, allocations: 61.73 MB / 0.7011 GB, free: 69.24 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02337/2.269, allocations: 8.433 MB / 0.7093 GB, free: 66.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0335/2.302, allocations: 11.83 MB / 0.7209 GB, free: 62.79 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/2.302, allocations: 62.31 kB / 0.7209 GB, free: 62.73 MB / 474.7 MB Notification: Performance of pre-optimization done (n=321): time 7.244e-06/2.302, allocations: 3.938 kB / 0.7209 GB, free: 62.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=321): time 0.03083/2.333, allocations: 8.554 MB / 0.7293 GB, free: 59.58 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/2.333, allocations: 106.5 kB / 0.7294 GB, free: 59.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01253/2.346, allocations: 4.992 MB / 0.7343 GB, free: 57.84 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006433/2.347, allocations: 64.5 kB / 0.7343 GB, free: 57.78 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004476/2.351, allocations: 4.984 MB / 0.7392 GB, free: 54.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001944/2.353, allocations: 1.195 MB / 0.7403 GB, free: 53.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/2.354, allocations: 185 kB / 0.7405 GB, free: 53.55 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007467/2.355, allocations: 0.7138 MB / 0.7412 GB, free: 53.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00788/2.363, allocations: 3.087 MB / 0.7442 GB, free: 52.15 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01199/2.375, allocations: 8.432 MB / 0.7525 GB, free: 44.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.386, allocations: 5.161 MB / 0.7575 GB, free: 41.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001821/2.387, allocations: 52 kB / 0.7576 GB, free: 41.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=1228) (initialization): time 0.02932/2.416, allocations: 11.2 MB / 0.7685 GB, free: 31.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001465/2.416, allocations: 88 kB / 0.7686 GB, free: 31.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000312/2.416, allocations: 188 kB / 0.7688 GB, free: 31.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002825/2.417, allocations: 282.6 kB / 0.769 GB, free: 31.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01213/2.429, allocations: 2.064 MB / 0.771 GB, free: 29.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003605/2.429, allocations: 371.8 kB / 0.7714 GB, free: 29.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009776/2.439, allocations: 1.301 MB / 0.7727 GB, free: 27.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002074/2.441, allocations: 0.5377 MB / 0.7732 GB, free: 27.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 860 * Number of states: 0 () * Number of discrete variables: 30 (frameT4.color_x[3],frameT4.color_x[2],frameT4.color_x[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],frameT3.color_x[3],frameT3.color_x[2],frameT3.color_x[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],frameT2.color_x[3],frameT2.color_x[2],frameT2.color_x[1],frameT1.color_x[3],frameT1.color_x[2],frameT1.color_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1132): * Single equations (assignments): 1120 * Array equations: 12 * Algorithm blocks: 0 * 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.009668/2.451, allocations: 3.696 MB / 0.7768 GB, free: 24.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/2.452, allocations: 481.5 kB / 0.7773 GB, free: 23.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/2.454, allocations: 0.6576 MB / 0.7779 GB, free: 23.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001285/2.454, allocations: 52 kB / 0.778 GB, free: 23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.059e-05/2.454, allocations: 0 / 0.778 GB, free: 23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.194e-05/2.454, allocations: 11.67 kB / 0.778 GB, free: 23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03181/2.486, allocations: 12.66 MB / 0.7903 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/2.486, allocations: 12 kB / 0.7903 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003283/2.49, allocations: 428.4 kB / 0.7907 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-05/2.49, allocations: 24 kB / 0.7908 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002392/2.49, allocations: 62.58 kB / 0.7908 GB, free: 11.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.071e-05/2.49, allocations: 31.23 kB / 0.7909 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-05/2.49, allocations: 23.88 kB / 0.7909 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008647/2.499, allocations: 6.574 MB / 0.7973 GB, free: 4.965 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/2.5, allocations: 0.589 MB / 0.7979 GB, free: 4.371 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001234/2.501, allocations: 59.41 kB / 0.7979 GB, free: 4.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002769/2.504, allocations: 122.7 kB / 0.798 GB, free: 4.238 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004766/2.505, allocations: 178.5 kB / 0.7982 GB, free: 4.113 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002873/2.505, allocations: 103.5 kB / 0.7983 GB, free: 4.016 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007693/2.513, allocations: 3.436 MB / 0.8017 GB, free: 1.227 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.513, allocations: 0 / 0.8017 GB, free: 1.227 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0105/2.523, allocations: 1.984 MB / 0.8036 GB, free: 15.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * 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 simulation (225): * Single equations (assignments): 213 * Array equations: 12 * Algorithm blocks: 0 * 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.01412/2.537, allocations: 10.12 MB / 0.8135 GB, free: 5.086 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01989/2.557, allocations: 7.214 MB / 0.8205 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.491e-05/2.557, allocations: 0.875 kB / 0.8205 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004932/2.562, allocations: 1.994 MB / 0.8225 GB, free: 13.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004057/2.567, allocations: 0.5815 MB / 0.8231 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5225/3.089, allocations: 182.6 MB / 1.001 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01659/3.106, allocations: 5.586 MB / 1.007 GB, free: 19.17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009582/3.115, allocations: 3.392 MB / 1.01 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of SimCode: time 1.763e-06/3.115, allocations: 0 / 1.01 GB, free: 19.15 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.352/8.467, allocations: 133.4 MB / 1.14 GB, free: 142.5 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FixedRotation_res.mat does not exist to compare? outputFormat=mat