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.FrameTorques2.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.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.0004587, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3443, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1778/0.5222, allocations: 99.65 MB / 469 MB, free: 6.812 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.5225, allocations: 83.91 kB / 469.1 MB, free: 6.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.03/1.553, allocations: 169.9 MB / 0.624 GB, free: 9.246 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.553, allocations: 0 / 0.624 GB, free: 9.246 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007188/1.553, allocations: 164 kB / 0.6242 GB, free: 9.086 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: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.7181/2.271, allocations: 9.044 MB / 0.633 GB, free: 49.09 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.062e-05/2.272, allocations: 9.5 kB / 0.633 GB, free: 49.09 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008751/2.28, allocations: 1.472 MB / 0.6345 GB, free: 48.97 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08978/2.37, allocations: 12.07 MB / 0.6463 GB, free: 48.52 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03725/2.407, allocations: 10.99 MB / 0.657 GB, free: 48.02 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009034/2.408, allocations: 0.6407 MB / 0.6576 GB, free: 48 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004827/2.413, allocations: 0.8509 MB / 0.6585 GB, free: 47.99 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06463/2.478, allocations: 19.99 MB / 0.678 GB, free: 43.82 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009119/2.479, allocations: 111 kB / 0.6781 GB, free: 43.81 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005252/2.484, allocations: 404.1 kB / 0.6785 GB, free: 43.81 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/2.489, allocations: 1.816 MB / 0.6803 GB, free: 43.79 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0531/2.542, allocations: 16.29 MB / 0.6962 GB, free: 43.71 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/2.683, allocations: 82.24 MB / 0.7765 GB, free: 14.48 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03646/2.72, allocations: 8.146 MB / 0.7844 GB, free: 7.859 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001188/2.721, allocations: 0.6607 MB / 0.7851 GB, free: 7.145 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.969e-05/2.721, allocations: 68.81 kB / 0.7851 GB, free: 7.07 MB / 490.8 MB Notification: Performance of pre-optimization done (n=311): time 7.684e-06/2.721, allocations: 2.375 kB / 0.7851 GB, free: 7.07 MB / 490.8 MB Notification: Performance of matching and sorting (n=335): time 0.1501/2.871, allocations: 31.42 MB / 0.8158 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/2.871, allocations: 299.5 kB / 0.8161 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02054/2.892, allocations: 6.862 MB / 0.8228 GB, free: 7.125 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009167/2.893, allocations: 81.61 kB / 0.8229 GB, free: 7.043 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.006918/2.9, allocations: 5.535 MB / 0.8283 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002538/2.902, allocations: 1.27 MB / 0.8295 GB, free: 268 kB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001534/2.904, allocations: 200.8 kB / 0.8297 GB, free: 68 kB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.3732/3.277, allocations: 0.7093 MB / 0.8304 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01115/3.288, allocations: 3.522 MB / 0.8339 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01391/3.302, allocations: 9.199 MB / 0.8428 GB, free: 99.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/3.316, allocations: 5.557 MB / 0.8483 GB, free: 99.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002291/3.316, allocations: 56.78 kB / 0.8483 GB, free: 99.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03524/3.351, allocations: 13.04 MB / 0.8611 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001668/3.351, allocations: 93.03 kB / 0.8611 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003137/3.352, allocations: 200.1 kB / 0.8613 GB, free: 98.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004106/3.356, allocations: 1.058 MB / 0.8624 GB, free: 98.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01421/3.37, allocations: 2.244 MB / 0.8646 GB, free: 98.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/3.388, allocations: 11.47 MB / 0.8758 GB, free: 93.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/3.4, allocations: 0.5173 MB / 0.8763 GB, free: 93.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002439/3.402, allocations: 0.5714 MB / 0.8768 GB, free: 93.15 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1179): * Single equations (assignments): 1172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0118/3.414, allocations: 3.883 MB / 0.8806 GB, free: 92.83 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002/3.416, allocations: 0.6754 MB / 0.8813 GB, free: 92.83 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/3.444, allocations: 6.042 MB / 0.8872 GB, free: 92.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001158/3.444, allocations: 37.25 kB / 0.8872 GB, free: 92.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.39e-05/3.444, allocations: 7.844 kB / 0.8872 GB, free: 92.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001197/3.444, allocations: 21.45 kB / 0.8872 GB, free: 92.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07026/3.514, allocations: 15.11 MB / 0.902 GB, free: 88.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.583e-05/3.514, allocations: 0 / 0.902 GB, free: 88.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009017/3.523, allocations: 0.5639 MB / 0.9025 GB, free: 88.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005594/3.529, allocations: 0.6975 MB / 0.9032 GB, free: 88.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001158/3.53, allocations: 59.33 kB / 0.9033 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02494/3.555, allocations: 10.34 MB / 0.9134 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/3.555, allocations: 0 / 0.9134 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03941/3.595, allocations: 10.21 MB / 0.9233 GB, free: 76.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006556/3.601, allocations: 1.191 MB / 0.9245 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0036/3.605, allocations: 56.91 kB / 0.9246 GB, free: 76.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009187/3.614, allocations: 191 kB / 0.9247 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001652/3.616, allocations: 198.1 kB / 0.9249 GB, free: 76.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009849/3.617, allocations: 86.75 kB / 0.925 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.02027/3.637, allocations: 4.916 MB / 0.9298 GB, free: 74.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.763e-06/3.638, allocations: 0 / 0.9298 GB, free: 74.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02069/3.658, allocations: 1.865 MB / 0.9316 GB, free: 74.38 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0441/3.702, allocations: 11.17 MB / 0.9425 GB, free: 66.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03301/3.735, allocations: 8.989 MB / 0.9513 GB, free: 58.92 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/3.736, allocations: 0 / 0.9513 GB, free: 58.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0115/3.747, allocations: 3.246 MB / 0.9545 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01147/3.759, allocations: 0.9314 MB / 0.9554 GB, free: 55.25 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6338/4.392, allocations: 214 MB / 1.164 GB, free: 20.01 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01488/4.407, allocations: 6.124 MB / 1.17 GB, free: 19.09 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0105/4.418, allocations: 4.151 MB / 1.174 GB, free: 19.09 MB / 0.5574 GB Notification: Performance of SimCode: time 1.492e-06/4.418, allocations: 2.734 kB / 1.174 GB, free: 19.09 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.044/11.46, allocations: 296.5 MB / 1.464 GB, free: 123.5 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat