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.Torque.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.Torque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.365/2.365, allocations: 235 MB / 248.1 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.252e-05/3.264e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3967, allocations: 54.85 MB / 364.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2112/0.608, allocations: 101.4 MB / 466 MB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.6084, allocations: 72.66 kB / 466.1 MB, free: 10.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.876/1.484, allocations: 132 MB / 0.5841 GB, free: 101.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.484, allocations: 0 / 0.5841 GB, free: 101.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000458/1.485, allocations: 131.7 kB / 0.5842 GB, free: 101.3 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02945/1.514, allocations: 6.662 MB / 0.5907 GB, free: 97.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/1.514, allocations: 7 kB / 0.5908 GB, free: 97.77 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006034/1.52, allocations: 1.194 MB / 0.5919 GB, free: 96.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05502/1.576, allocations: 7.14 MB / 0.5989 GB, free: 93.36 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02701/1.603, allocations: 7.431 MB / 0.6062 GB, free: 86.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006385/1.603, allocations: 0.5072 MB / 0.6066 GB, free: 86.49 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003863/1.607, allocations: 0.6695 MB / 0.6073 GB, free: 85.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04992/1.657, allocations: 16.07 MB / 0.623 GB, free: 68.33 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005328/1.658, allocations: 91.2 kB / 0.6231 GB, free: 68.24 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003764/1.662, allocations: 327.8 kB / 0.6234 GB, free: 67.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003491/1.665, allocations: 1.546 MB / 0.6249 GB, free: 66.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04119/1.706, allocations: 12.94 MB / 0.6375 GB, free: 53.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.506/2.212, allocations: 72.97 MB / 0.7088 GB, free: 58.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0281/2.241, allocations: 6.465 MB / 0.7151 GB, free: 57.36 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00794/2.249, allocations: 3.672 MB / 0.7187 GB, free: 57.31 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02502/2.274, allocations: 9.282 MB / 0.7278 GB, free: 55.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.807e-05/2.274, allocations: 66.31 kB / 0.7278 GB, free: 55.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 6.953e-06/2.274, allocations: 0 / 0.7278 GB, free: 55.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.1178/2.392, allocations: 25.87 MB / 0.7531 GB, free: 50.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/2.392, allocations: 243.8 kB / 0.7533 GB, free: 50.28 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/2.408, allocations: 6.094 MB / 0.7593 GB, free: 48.61 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009381/2.409, allocations: 74.31 kB / 0.7594 GB, free: 48.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004359/2.413, allocations: 4.586 MB / 0.7638 GB, free: 44.88 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002099/2.415, allocations: 1.178 MB / 0.765 GB, free: 44.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001722/2.417, allocations: 181.5 kB / 0.7652 GB, free: 43.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008245/2.418, allocations: 0.6974 MB / 0.7658 GB, free: 43.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009349/2.427, allocations: 3.491 MB / 0.7692 GB, free: 42.21 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01304/2.441, allocations: 8.774 MB / 0.7778 GB, free: 33.95 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/2.453, allocations: 5.486 MB / 0.7832 GB, free: 32.32 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002396/2.454, allocations: 53.19 kB / 0.7832 GB, free: 32.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.038/2.492, allocations: 13.28 MB / 0.7962 GB, free: 25.12 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000157/2.492, allocations: 84 kB / 0.7963 GB, free: 25.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002881/2.492, allocations: 188 kB / 0.7964 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007349/2.499, allocations: 1.702 MB / 0.7981 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0143/2.514, allocations: 2.134 MB / 0.8002 GB, free: 21.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02235/2.536, allocations: 11.34 MB / 0.8113 GB, free: 11.57 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/2.548, allocations: 0.5301 MB / 0.8118 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002388/2.55, allocations: 0.5402 MB / 0.8123 GB, free: 10.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (1104): * Single equations (assignments): 1099 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003882/2.554, allocations: 0.7985 MB / 0.8131 GB, free: 9.801 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/2.556, allocations: 0.59 MB / 0.8137 GB, free: 9.203 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02149/2.578, allocations: 6.69 MB / 0.8202 GB, free: 3.785 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.999e-05/2.578, allocations: 32 kB / 0.8202 GB, free: 3.754 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/2.578, allocations: 12 kB / 0.8202 GB, free: 3.742 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.515e-05/2.578, allocations: 16.97 kB / 0.8203 GB, free: 3.742 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05651/2.634, allocations: 15.37 MB / 0.8353 GB, free: 6.656 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.446e-05/2.634, allocations: 6.906 kB / 0.8353 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006296/2.641, allocations: 0.5582 MB / 0.8358 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007411/2.648, allocations: 1.422 MB / 0.8372 GB, free: 4.668 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009406/2.649, allocations: 60 kB / 0.8373 GB, free: 4.609 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02551/2.675, allocations: 10.49 MB / 0.8475 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/2.675, allocations: 8.562 kB / 0.8475 GB, free: 9.863 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0338/2.709, allocations: 11.74 MB / 0.859 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005228/2.714, allocations: 1.153 MB / 0.8601 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002534/2.717, allocations: 52 kB / 0.8602 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006267/2.723, allocations: 218.8 kB / 0.8604 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001367/2.724, allocations: 189.9 kB / 0.8605 GB, free: 12.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000642/2.725, allocations: 83.06 kB / 0.8606 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0136/2.739, allocations: 4.344 MB / 0.8649 GB, free: 7.871 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.042e-06/2.739, allocations: 4.5 kB / 0.8649 GB, free: 7.867 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01274/2.751, allocations: 1.657 MB / 0.8665 GB, free: 6.215 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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.03559/2.787, allocations: 13.11 MB / 0.8793 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02426/2.811, allocations: 8.68 MB / 0.8878 GB, free: 212 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/2.811, allocations: 0 / 0.8878 GB, free: 212 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01227/2.824, allocations: 3.339 MB / 0.891 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008979/2.833, allocations: 0.709 MB / 0.8917 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07774/2.91, allocations: 16.16 MB / 0.9075 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01809/2.929, allocations: 5.026 MB / 0.9124 GB, free: 6.906 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01076/2.939, allocations: 3.288 MB / 0.9156 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of SimCode: time 1.974e-06/2.939, allocations: 0 / 0.9156 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.089/9.029, allocations: 189.2 MB / 1.1 GB, free: 55.32 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat