Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.328/2.328, allocations: 235 MB / 248 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.798e-05, allocations: 0 / 309.8 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.4113, allocations: 54.85 MB / 364.6 MB, free: 5.395 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.6121, allocations: 98.81 MB / 463.4 MB, free: 13.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.6124, allocations: 75.97 kB / 463.5 MB, free: 13.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.991/1.603, allocations: 166.3 MB / 0.615 GB, free: 77.23 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.604, allocations: 0 / 0.615 GB, free: 77.23 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006294/1.604, allocations: 156 kB / 0.6152 GB, free: 77.08 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03956/1.644, allocations: 7.979 MB / 0.623 GB, free: 69.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/1.644, allocations: 12.03 kB / 0.623 GB, free: 69 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007819/1.652, allocations: 1.458 MB / 0.6244 GB, free: 67.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04852/1.7, allocations: 3.67 MB / 0.628 GB, free: 63.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0336/1.734, allocations: 9.691 MB / 0.6375 GB, free: 54.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008445/1.735, allocations: 0.6297 MB / 0.6381 GB, free: 53.44 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004787/1.74, allocations: 0.8282 MB / 0.6389 GB, free: 52.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05982/1.799, allocations: 19.37 MB / 0.6578 GB, free: 31.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004954/1.8, allocations: 99.11 kB / 0.6579 GB, free: 31.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004087/1.804, allocations: 395.8 kB / 0.6583 GB, free: 31.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004776/1.809, allocations: 1.873 MB / 0.6601 GB, free: 29.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04763/1.857, allocations: 15.03 MB / 0.6748 GB, free: 14.29 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8476/2.704, allocations: 81.53 MB / 0.7544 GB, free: 32.88 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02759/2.732, allocations: 5.93 MB / 0.7602 GB, free: 32.2 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00639/2.738, allocations: 2.471 MB / 0.7626 GB, free: 32.16 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03717/2.776, allocations: 11.33 MB / 0.7737 GB, free: 28.95 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.989e-05/2.776, allocations: 63.86 kB / 0.7737 GB, free: 28.91 MB / 474.8 MB Notification: Performance of pre-optimization done (n=250): time 9.328e-06/2.776, allocations: 1.312 kB / 0.7737 GB, free: 28.91 MB / 474.8 MB Notification: Performance of matching and sorting (n=274): time 0.08841/2.864, allocations: 14.99 MB / 0.7884 GB, free: 24.18 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.692e-05/2.864, allocations: 160.8 kB / 0.7885 GB, free: 24.02 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01465/2.879, allocations: 5.847 MB / 0.7942 GB, free: 23.43 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005936/2.88, allocations: 64.08 kB / 0.7943 GB, free: 23.4 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004823/2.885, allocations: 5.564 MB / 0.7997 GB, free: 20.15 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001634/2.886, allocations: 1.056 MB / 0.8008 GB, free: 19.56 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001312/2.888, allocations: 185 kB / 0.8009 GB, free: 19.56 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000865/2.888, allocations: 0.6943 MB / 0.8016 GB, free: 19.21 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007033/2.896, allocations: 2.48 MB / 0.804 GB, free: 18.41 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01091/2.906, allocations: 8.247 MB / 0.8121 GB, free: 9.82 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/2.917, allocations: 4.468 MB / 0.8165 GB, free: 8.59 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002874/2.918, allocations: 60.28 kB / 0.8165 GB, free: 8.59 MB / 474.8 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.02809/2.946, allocations: 10.18 MB / 0.8265 GB, free: 5.449 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001718/2.946, allocations: 91.69 kB / 0.8265 GB, free: 5.449 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003726/2.946, allocations: 211.9 kB / 0.8267 GB, free: 5.445 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003715/2.947, allocations: 303.3 kB / 0.827 GB, free: 5.441 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01455/2.961, allocations: 2.247 MB / 0.8292 GB, free: 5.168 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004888/2.962, allocations: 408.1 kB / 0.8296 GB, free: 5.078 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/2.974, allocations: 0.621 MB / 0.8302 GB, free: 4.902 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002098/2.976, allocations: 0.5572 MB / 0.8308 GB, free: 4.828 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1168): * Single equations (assignments): 1165 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003335/2.979, allocations: 0.8185 MB / 0.8316 GB, free: 4.156 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001734/2.981, allocations: 0.5866 MB / 0.8321 GB, free: 3.832 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00899/2.99, allocations: 2.933 MB / 0.835 GB, free: 2.691 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.042e-05/2.99, allocations: 30.5 kB / 0.835 GB, free: 2.688 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/2.99, allocations: 3.656 kB / 0.835 GB, free: 2.688 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-05/2.99, allocations: 14.72 kB / 0.8351 GB, free: 2.688 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06432/3.055, allocations: 24.81 MB / 0.8593 GB, free: 14.74 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002211/3.055, allocations: 64 kB / 0.8593 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004363/3.059, allocations: 0.5979 MB / 0.8599 GB, free: 14.16 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001465/3.06, allocations: 89.22 kB / 0.86 GB, free: 14.07 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007025/3.06, allocations: 139.1 kB / 0.8601 GB, free: 13.94 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001368/3.06, allocations: 126.6 kB / 0.8603 GB, free: 13.83 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.324e-05/3.061, allocations: 99.56 kB / 0.8604 GB, free: 13.73 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01886/3.079, allocations: 16.85 MB / 0.8768 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003248/3.083, allocations: 0.7144 MB / 0.8775 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002374/3.085, allocations: 146.4 kB / 0.8777 GB, free: 9.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006313/3.091, allocations: 215.8 kB / 0.8779 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00107/3.093, allocations: 407.5 kB / 0.8782 GB, free: 9.484 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003761/3.093, allocations: 174.3 kB / 0.8784 GB, free: 9.32 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01192/3.105, allocations: 4.081 MB / 0.8824 GB, free: 5.738 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.91e-07/3.105, allocations: 0 / 0.8824 GB, free: 5.738 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01261/3.118, allocations: 1.546 MB / 0.8839 GB, free: 4.195 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 315 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3902/3.508, allocations: 28.87 MB / 0.9121 GB, free: 130.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01607/3.524, allocations: 6.013 MB / 0.918 GB, free: 130.7 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 5.293e-05/3.524, allocations: 11.72 kB / 0.918 GB, free: 130.7 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.004225/3.528, allocations: 1.584 MB / 0.9195 GB, free: 130.7 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008021/3.536, allocations: 0.8989 MB / 0.9204 GB, free: 130.6 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06105/3.597, allocations: 18.39 MB / 0.9384 GB, free: 125.4 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01546/3.613, allocations: 5.953 MB / 0.9442 GB, free: 124.5 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009166/3.622, allocations: 3.93 MB / 0.948 GB, free: 124.5 MB / 0.5262 GB Notification: Performance of SimCode: time 2.856e-06/3.622, allocations: 0 / 0.948 GB, free: 124.5 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.311/8.934, allocations: 144.2 MB / 1.089 GB, free: 18.55 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat