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.CutForceAndTorque1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.137/2.137, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.776e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3245, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.515, allocations: 100.2 MB / 458.3 MB, free: 10.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/0.5153, allocations: 79.95 kB / 458.4 MB, free: 10.47 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.469/1.984, allocations: 195.9 MB / 0.6389 GB, free: 45.65 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.984, allocations: 0 / 0.6389 GB, free: 45.65 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005178/1.985, allocations: 198.1 kB / 0.6391 GB, free: 45.65 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: 3662 * Number of variables: 3662 Notification: Performance of Generate backend data structure: time 0.0381/2.023, allocations: 9.406 MB / 0.6483 GB, free: 42.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/2.023, allocations: 10.91 kB / 0.6483 GB, free: 42.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03511/2.058, allocations: 4.03 MB / 0.6522 GB, free: 41.35 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03472/2.093, allocations: 10.56 MB / 0.6626 GB, free: 40.26 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007804/2.094, allocations: 348.1 kB / 0.6629 GB, free: 40.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005812/2.1, allocations: 0.6027 MB / 0.6635 GB, free: 40.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04753/2.147, allocations: 14.54 MB / 0.6777 GB, free: 40.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06859/2.216, allocations: 20.73 MB / 0.6979 GB, free: 35.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009081/2.217, allocations: 99.58 kB / 0.698 GB, free: 35.79 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006286/2.223, allocations: 50.66 kB / 0.6981 GB, free: 35.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007468/2.231, allocations: 2.272 MB / 0.7003 GB, free: 35.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1831/2.414, allocations: 93.81 MB / 0.7919 GB, free: 0.8008 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/2.425, allocations: 4.145 MB / 0.796 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005299/2.43, allocations: 1.94 MB / 0.7978 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003676/2.43, allocations: 63.2 kB / 0.7979 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.056e-05/2.43, allocations: 75.66 kB / 0.798 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=330): time 7.324e-06/2.431, allocations: 0 / 0.798 GB, free: 11.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=342): time 0.4609/2.891, allocations: 14.87 MB / 0.8125 GB, free: 84.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.439e-05/2.892, allocations: 167.4 kB / 0.8127 GB, free: 84.41 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01744/2.909, allocations: 5.659 MB / 0.8182 GB, free: 84.07 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008199/2.91, allocations: 29.17 kB / 0.8182 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006133/2.916, allocations: 6.79 MB / 0.8249 GB, free: 81.06 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002443/2.919, allocations: 1.267 MB / 0.8261 GB, free: 80.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/2.92, allocations: 0 / 0.8261 GB, free: 80.41 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008149/2.921, allocations: 0.7774 MB / 0.8268 GB, free: 80.08 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007568/2.928, allocations: 2.862 MB / 0.8296 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01291/2.941, allocations: 9.634 MB / 0.8391 GB, free: 71.24 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0121/2.953, allocations: 5.155 MB / 0.8441 GB, free: 71.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002703/2.954, allocations: 70.28 kB / 0.8442 GB, free: 71.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1444) (initialization): time 0.03027/2.984, allocations: 10.85 MB / 0.8548 GB, free: 70.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002228/2.984, allocations: 114.8 kB / 0.8549 GB, free: 70.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004336/2.985, allocations: 243.4 kB / 0.8551 GB, free: 70.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/2.985, allocations: 357.4 kB / 0.8554 GB, free: 70.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01772/3.003, allocations: 2.711 MB / 0.8581 GB, free: 70.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004571/3.003, allocations: 479.2 kB / 0.8585 GB, free: 70.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01404/3.018, allocations: 0.495 MB / 0.859 GB, free: 70.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00286/3.02, allocations: 0.6657 MB / 0.8597 GB, free: 70.49 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1112 * Number of states: 0 () * Number of discrete variables: 69 (body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[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 (1420): * Single equations (assignments): 1417 * 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.004521/3.025, allocations: 0.7099 MB / 0.8604 GB, free: 69.99 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01072/3.036, allocations: 3.708 MB / 0.864 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002319/3.038, allocations: 0.614 MB / 0.8646 GB, free: 69.18 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/3.049, allocations: 3.571 MB / 0.8681 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.712e-05/3.049, allocations: 36.41 kB / 0.8681 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-05/3.049, allocations: 3.938 kB / 0.8681 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.94e-05/3.049, allocations: 17.3 kB / 0.8681 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09682/3.146, allocations: 45.71 MB / 0.9128 GB, free: 59.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002519/3.146, allocations: 66.62 kB / 0.9128 GB, free: 59.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005771/3.152, allocations: 0.7065 MB / 0.9135 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/3.152, allocations: 95.88 kB / 0.9136 GB, free: 59.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008984/3.153, allocations: 105.3 kB / 0.9137 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001088/3.153, allocations: 135.7 kB / 0.9138 GB, free: 59.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-05/3.154, allocations: 109.9 kB / 0.9139 GB, free: 59.53 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/3.169, allocations: 18.97 MB / 0.9325 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002782/3.172, allocations: 0.7198 MB / 0.9332 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00257/3.175, allocations: 106 kB / 0.9333 GB, free: 39.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007267/3.182, allocations: 212.1 kB / 0.9335 GB, free: 39.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001385/3.183, allocations: 452.4 kB / 0.9339 GB, free: 38.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008761/3.184, allocations: 200 kB / 0.9341 GB, free: 38.53 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01042/3.195, allocations: 3.775 MB / 0.9378 GB, free: 35.28 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.022e-06/3.195, allocations: 0 / 0.9378 GB, free: 35.28 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01535/3.21, allocations: 1.605 MB / 0.9394 GB, free: 33.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 306 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (358): * Single equations (assignments): 355 * 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.01833/3.228, allocations: 31.87 MB / 0.9705 GB, free: 16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01953/3.248, allocations: 6.795 MB / 0.9771 GB, free: 9.875 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.212e-05/3.248, allocations: 12 kB / 0.9771 GB, free: 9.863 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005445/3.254, allocations: 1.878 MB / 0.979 GB, free: 8.223 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008657/3.262, allocations: 0.8082 MB / 0.9798 GB, free: 7.535 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4526/3.715, allocations: 21.94 MB / 1.001 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01968/3.735, allocations: 7.094 MB / 1.008 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01126/3.746, allocations: 4.798 MB / 1.013 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.513e-06/3.746, allocations: 3.594 kB / 1.013 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.432/9.178, allocations: 168.4 MB / 1.177 GB, free: 13.22 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat does not exist to compare? outputFormat=mat