Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.653e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3467, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2379/0.5846, allocations: 103.3 MB / 461.4 MB, free: 7.406 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002907/0.585, allocations: 83.94 kB / 461.5 MB, free: 7.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.885/1.47, allocations: 145.2 MB / 0.5924 GB, free: 6.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.47, allocations: 0 / 0.5924 GB, free: 6.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005481/1.471, allocations: 152 kB / 0.5926 GB, free: 6.102 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2760 * Number of variables: 2760 Notification: Performance of Generate backend data structure: time 0.03431/1.505, allocations: 7.38 MB / 0.5998 GB, free: 14.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/1.505, allocations: 12.03 kB / 0.5998 GB, free: 14.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05701/1.562, allocations: 7.322 MB / 0.607 GB, free: 7.289 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03182/1.594, allocations: 7.865 MB / 0.6146 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006394/1.595, allocations: 252 kB / 0.6149 GB, free: 15.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004318/1.599, allocations: 463.9 kB / 0.6153 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04011/1.639, allocations: 10.98 MB / 0.626 GB, free: 3.648 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7204/2.36, allocations: 16.43 MB / 0.6421 GB, free: 60.09 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004365/2.36, allocations: 101.1 kB / 0.6422 GB, free: 60.09 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003142/2.363, allocations: 50.36 kB / 0.6422 GB, free: 60.09 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00443/2.368, allocations: 1.837 MB / 0.644 GB, free: 60.07 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1207/2.489, allocations: 77.68 MB / 0.7199 GB, free: 32.41 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/2.501, allocations: 6.739 MB / 0.7265 GB, free: 29.01 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008036/2.509, allocations: 4.35 MB / 0.7307 GB, free: 27.21 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00158/2.51, allocations: 0.7228 MB / 0.7314 GB, free: 26.61 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.565e-05/2.51, allocations: 77.25 kB / 0.7315 GB, free: 26.55 MB / 474.8 MB Notification: Performance of pre-optimization done (n=340): time 8.526e-06/2.51, allocations: 0 / 0.7315 GB, free: 26.55 MB / 474.8 MB Notification: Performance of matching and sorting (n=384): time 0.1162/2.627, allocations: 32.2 MB / 0.7629 GB, free: 14.36 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001958/2.627, allocations: 253.7 kB / 0.7632 GB, free: 14.11 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01817/2.645, allocations: 5.004 MB / 0.7681 GB, free: 10.09 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00124/2.646, allocations: 25.7 kB / 0.7681 GB, free: 10.05 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007464/2.654, allocations: 5.276 MB / 0.7732 GB, free: 5.32 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003555/2.657, allocations: 1.388 MB / 0.7746 GB, free: 4.07 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/2.659, allocations: 3.469 kB / 0.7746 GB, free: 4.07 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001316/2.661, allocations: 0.7505 MB / 0.7753 GB, free: 3.438 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01553/2.676, allocations: 3.938 MB / 0.7792 GB, free: 0 / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02278/2.699, allocations: 9.687 MB / 0.7886 GB, free: 4.297 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01839/2.718, allocations: 6.105 MB / 0.7946 GB, free: 15.33 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002667/2.718, allocations: 60 kB / 0.7947 GB, free: 15.27 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1347) (initialization): time 0.04396/2.762, allocations: 13.73 MB / 0.8081 GB, free: 3.496 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/2.762, allocations: 95.94 kB / 0.8082 GB, free: 3.402 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004174/2.762, allocations: 208 kB / 0.8084 GB, free: 3.199 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007702/2.77, allocations: 1.729 MB / 0.8101 GB, free: 1.891 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3837/3.154, allocations: 2.523 MB / 0.8125 GB, free: 100.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02379/3.178, allocations: 10.82 MB / 0.8231 GB, free: 97.61 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01216/3.19, allocations: 401.9 kB / 0.8235 GB, free: 97.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00308/3.193, allocations: 0.5939 MB / 0.8241 GB, free: 97.6 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 66 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1275): * Single equations (assignments): 1270 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004752/3.198, allocations: 0.6277 MB / 0.8247 GB, free: 97.49 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02217/3.22, allocations: 7.448 MB / 0.8319 GB, free: 97.36 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002296/3.222, allocations: 0.5488 MB / 0.8325 GB, free: 97.36 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02267/3.245, allocations: 7.491 MB / 0.8398 GB, free: 97.14 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000139/3.245, allocations: 43.88 kB / 0.8398 GB, free: 97.14 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.437e-05/3.245, allocations: 14.48 kB / 0.8398 GB, free: 97.14 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001232/3.246, allocations: 18.8 kB / 0.8399 GB, free: 97.14 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05022/3.296, allocations: 16.39 MB / 0.8559 GB, free: 96.23 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.672e-05/3.296, allocations: 7.5 kB / 0.8559 GB, free: 96.23 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007472/3.303, allocations: 0.7506 MB / 0.8566 GB, free: 96.23 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006462/3.31, allocations: 1.41 MB / 0.858 GB, free: 96.21 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00109/3.311, allocations: 20.67 kB / 0.858 GB, free: 96.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0196/3.331, allocations: 9.902 MB / 0.8677 GB, free: 92.65 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-05/3.331, allocations: 9.656 kB / 0.8677 GB, free: 92.65 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03004/3.361, allocations: 13.29 MB / 0.8807 GB, free: 86.77 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004646/3.365, allocations: 1.175 MB / 0.8818 GB, free: 86.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001713/3.367, allocations: 10.09 kB / 0.8818 GB, free: 86.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006141/3.373, allocations: 194.6 kB / 0.882 GB, free: 86.12 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001418/3.375, allocations: 237.8 kB / 0.8822 GB, free: 86.09 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004564/3.375, allocations: 108.4 kB / 0.8823 GB, free: 86.06 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008553/3.384, allocations: 3.354 MB / 0.8856 GB, free: 84.84 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.22e-07/3.384, allocations: 0 / 0.8856 GB, free: 84.84 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01281/3.397, allocations: 1.603 MB / 0.8872 GB, free: 84.84 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (330): * Single equations (assignments): 325 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03112/3.428, allocations: 14.95 MB / 0.9018 GB, free: 77.42 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02382/3.452, allocations: 9.794 MB / 0.9114 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/3.452, allocations: 9.969 kB / 0.9114 GB, free: 71.62 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.009585/3.461, allocations: 3.82 MB / 0.9151 GB, free: 68.28 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0055/3.467, allocations: 0.5687 MB / 0.9156 GB, free: 67.8 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05465/3.522, allocations: 17.96 MB / 0.9332 GB, free: 52.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01282/3.535, allocations: 5.649 MB / 0.9387 GB, free: 48.38 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009604/3.544, allocations: 3.707 MB / 0.9423 GB, free: 44.95 MB / 0.4949 GB Notification: Performance of SimCode: time 1.784e-06/3.544, allocations: 2.625 kB / 0.9423 GB, free: 44.95 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.721/9.266, allocations: 207.2 MB / 1.145 GB, free: 27.98 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat