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.Torque2.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.Torque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.709e-05, allocations: 7.984 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3389, allocations: 54.84 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2035/0.5424, allocations: 104.6 MB / 462.8 MB, free: 6.055 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.5428, allocations: 83.83 kB / 462.8 MB, free: 5.973 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.738/2.281, allocations: 234.3 MB / 0.6808 GB, free: 40.87 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.281, allocations: 0 / 0.6808 GB, free: 40.87 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008216/2.281, allocations: 252.8 kB / 0.681 GB, free: 40.86 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: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.05223/2.334, allocations: 12.35 MB / 0.6931 GB, free: 36.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/2.334, allocations: 10.75 kB / 0.6931 GB, free: 36.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09218/2.426, allocations: 12.81 MB / 0.7056 GB, free: 35.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04514/2.471, allocations: 13.29 MB / 0.7186 GB, free: 33.97 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008736/2.472, allocations: 422.2 kB / 0.719 GB, free: 33.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006864/2.479, allocations: 0.7543 MB / 0.7197 GB, free: 33.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0441/2.523, allocations: 17.53 MB / 0.7368 GB, free: 30.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07641/2.6, allocations: 26.02 MB / 0.7623 GB, free: 6.371 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001073/2.601, allocations: 147 kB / 0.7624 GB, free: 6.293 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01473/2.616, allocations: 71.84 kB / 0.7625 GB, free: 6.227 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01251/2.628, allocations: 2.865 MB / 0.7653 GB, free: 3.855 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6885/3.317, allocations: 121.5 MB / 0.884 GB, free: 31.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02049/3.337, allocations: 10.79 MB / 0.8945 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0144/3.352, allocations: 7.534 MB / 0.9019 GB, free: 29.75 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002507/3.354, allocations: 1.094 MB / 0.9029 GB, free: 28.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/3.354, allocations: 106.9 kB / 0.903 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=548): time 1.12e-05/3.354, allocations: 0 / 0.903 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=636): time 0.2165/3.571, allocations: 61.49 MB / 0.9631 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/3.571, allocations: 385.7 kB / 0.9634 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02257/3.594, allocations: 8.016 MB / 0.9713 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001943/3.596, allocations: 29.02 kB / 0.9713 GB, free: 7.352 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.008412/3.604, allocations: 8.388 MB / 0.9795 GB, free: 1.109 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004881/3.609, allocations: 2.275 MB / 0.9817 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003224/3.612, allocations: 3.719 kB / 0.9817 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.002332/3.615, allocations: 0.9879 MB / 0.9827 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01862/3.634, allocations: 6.444 MB / 0.989 GB, free: 8.789 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02786/3.661, allocations: 15.1 MB / 1.004 GB, free: 6.734 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02815/3.69, allocations: 9.943 MB / 1.013 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004256/3.69, allocations: 84 kB / 1.014 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2081) (initialization): time 0.5013/4.191, allocations: 22.57 MB / 1.036 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003207/4.192, allocations: 140 kB / 1.036 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000674/4.192, allocations: 305.3 kB / 1.036 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/4.207, allocations: 3.332 MB / 1.039 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02744/4.235, allocations: 3.873 MB / 1.043 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04382/4.279, allocations: 21.38 MB / 1.064 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02002/4.299, allocations: 0.6447 MB / 1.065 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004609/4.303, allocations: 0.9133 MB / 1.065 GB, free: 118.1 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1961): * Single equations (assignments): 1954 * 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 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007478/4.311, allocations: 0.9055 MB / 1.066 GB, free: 117.9 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04049/4.351, allocations: 13.18 MB / 1.079 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004552/4.356, allocations: 0.9078 MB / 1.08 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04392/4.4, allocations: 13.79 MB / 1.094 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002174/4.4, allocations: 62.66 kB / 1.094 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001124/4.4, allocations: 17.81 kB / 1.094 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000215/4.401, allocations: 35.83 kB / 1.094 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09102/4.492, allocations: 28.83 MB / 1.122 GB, free: 110 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.411e-05/4.492, allocations: 9.781 kB / 1.122 GB, free: 110 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01257/4.504, allocations: 1.221 MB / 1.123 GB, free: 110 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01294/4.517, allocations: 2.806 MB / 1.126 GB, free: 109.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002103/4.52, allocations: 31.97 kB / 1.126 GB, free: 109.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03996/4.56, allocations: 19.78 MB / 1.145 GB, free: 98.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/4.56, allocations: 13.69 kB / 1.145 GB, free: 98.9 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05819/4.618, allocations: 23.36 MB / 1.168 GB, free: 79.56 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008197/4.626, allocations: 1.931 MB / 1.17 GB, free: 77.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004454/4.631, allocations: 15.7 kB / 1.17 GB, free: 77.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01131/4.642, allocations: 348.6 kB / 1.17 GB, free: 77.61 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002925/4.645, allocations: 393.5 kB / 1.17 GB, free: 77.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002109/4.647, allocations: 167.4 kB / 1.171 GB, free: 77.21 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0149/4.662, allocations: 5.421 MB / 1.176 GB, free: 72.55 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.082e-06/4.662, allocations: 8.25 kB / 1.176 GB, free: 72.54 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02313/4.685, allocations: 2.675 MB / 1.179 GB, free: 69.88 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,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 (547): * Single equations (assignments): 540 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.06131/4.747, allocations: 24.88 MB / 1.203 GB, free: 47.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04099/4.788, allocations: 16.38 MB / 1.219 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/4.788, allocations: 0 / 1.219 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01921/4.807, allocations: 6.822 MB / 1.226 GB, free: 27.07 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01083/4.818, allocations: 0.9723 MB / 1.226 GB, free: 26.27 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5063/5.324, allocations: 30.22 MB / 1.256 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02532/5.35, allocations: 8.905 MB / 1.265 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01861/5.368, allocations: 6.51 MB / 1.271 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of SimCode: time 1.422e-06/5.368, allocations: 0 / 1.271 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.609/13.98, allocations: 438.6 MB / 1.699 GB, free: 133.1 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat