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.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.26/2.26, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.166e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4267/0.4268, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2596/0.6864, allocations: 103.2 MB / 461.3 MB, free: 7.578 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/0.6869, allocations: 75.95 kB / 461.4 MB, free: 7.504 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.592/2.279, allocations: 218.1 MB / 0.6636 GB, free: 41.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/2.279, allocations: 0 / 0.6636 GB, free: 41.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000875/2.28, allocations: 242.9 kB / 0.6639 GB, free: 41.73 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: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.05073/2.331, allocations: 11.38 MB / 0.675 GB, free: 37.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/2.331, allocations: 9.531 kB / 0.675 GB, free: 37.55 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09286/2.424, allocations: 12.64 MB / 0.6873 GB, free: 36.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04528/2.469, allocations: 12.52 MB / 0.6995 GB, free: 35.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000896/2.47, allocations: 394.2 kB / 0.6999 GB, free: 35.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006928/2.477, allocations: 0.7142 MB / 0.7006 GB, free: 35.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04507/2.522, allocations: 16.73 MB / 0.717 GB, free: 35.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06906/2.591, allocations: 24.45 MB / 0.7408 GB, free: 21.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001069/2.592, allocations: 128 kB / 0.741 GB, free: 21.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006505/2.599, allocations: 63.84 kB / 0.741 GB, free: 21.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006143/2.605, allocations: 2.687 MB / 0.7436 GB, free: 19.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6321/3.237, allocations: 110.5 MB / 0.8515 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0202/3.258, allocations: 10.81 MB / 0.8621 GB, free: 24.14 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01414/3.272, allocations: 7.544 MB / 0.8694 GB, free: 24.07 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004115/3.276, allocations: 2.346 MB / 0.8717 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001335/3.276, allocations: 85.89 kB / 0.8718 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=541): time 1.028e-05/3.276, allocations: 0 / 0.8718 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=629): time 0.2028/3.479, allocations: 56.91 MB / 0.9274 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/3.479, allocations: 319.1 kB / 0.9277 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01995/3.499, allocations: 7.051 MB / 0.9346 GB, free: 8.035 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002113/3.501, allocations: 27.8 kB / 0.9346 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008497/3.51, allocations: 7.653 MB / 0.9421 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.006092/3.516, allocations: 2.231 MB / 0.9443 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003005/3.519, allocations: 0 / 0.9443 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001558/3.521, allocations: 0.9325 MB / 0.9452 GB, free: 212 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0642/3.585, allocations: 6.72 MB / 0.9517 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02586/3.611, allocations: 14.01 MB / 0.9654 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02337/3.634, allocations: 9.207 MB / 0.9744 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003439/3.635, allocations: 76 kB / 0.9745 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1919) (initialization): time 0.06814/3.703, allocations: 21.37 MB / 0.9953 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002466/3.703, allocations: 127.6 kB / 0.9955 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005159/3.704, allocations: 277.9 kB / 0.9957 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01482/3.718, allocations: 3.285 MB / 0.9989 GB, free: 4.457 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02638/3.745, allocations: 3.606 MB / 1.002 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05235/3.797, allocations: 21.52 MB / 1.023 GB, free: 15.01 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01876/3.816, allocations: 0.6022 MB / 1.024 GB, free: 14.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004458/3.821, allocations: 0.842 MB / 1.025 GB, free: 13.77 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * Number of states: 0 () * Number of discrete variables: 105 (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],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],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],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 (1799): * Single equations (assignments): 1792 * 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.007045/3.828, allocations: 0.8267 MB / 1.026 GB, free: 12.94 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04446/3.872, allocations: 13.05 MB / 1.038 GB, free: 2.035 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004195/3.876, allocations: 0.8215 MB / 1.039 GB, free: 1.203 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4412/4.318, allocations: 13.81 MB / 1.053 GB, free: 144.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001461/4.318, allocations: 64.41 kB / 1.053 GB, free: 144.1 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-05/4.318, allocations: 17.34 kB / 1.053 GB, free: 144.1 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001786/4.318, allocations: 39 kB / 1.053 GB, free: 144.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08539/4.404, allocations: 27.64 MB / 1.08 GB, free: 143 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.562e-05/4.404, allocations: 5.328 kB / 1.08 GB, free: 143 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01294/4.417, allocations: 1.235 MB / 1.081 GB, free: 143 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01274/4.429, allocations: 2.805 MB / 1.084 GB, free: 143 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001814/4.431, allocations: 19.98 kB / 1.084 GB, free: 143 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03795/4.469, allocations: 19.66 MB / 1.103 GB, free: 137.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/4.469, allocations: 3.906 kB / 1.103 GB, free: 137.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0544/4.524, allocations: 21.53 MB / 1.124 GB, free: 130.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008227/4.532, allocations: 1.831 MB / 1.126 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003179/4.535, allocations: 9.766 kB / 1.126 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01044/4.546, allocations: 386.3 kB / 1.126 GB, free: 129.9 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00245/4.548, allocations: 364.2 kB / 1.127 GB, free: 129.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008703/4.549, allocations: 166.8 kB / 1.127 GB, free: 129.8 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01249/4.562, allocations: 4.749 MB / 1.131 GB, free: 128.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.61e-07/4.562, allocations: 0 / 1.131 GB, free: 128.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0189/4.581, allocations: 2.537 MB / 1.134 GB, free: 128.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (540): * Single equations (assignments): 533 * 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.05421/4.635, allocations: 22.47 MB / 1.156 GB, free: 117.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03809/4.673, allocations: 15.86 MB / 1.171 GB, free: 103.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-05/4.673, allocations: 0 / 1.171 GB, free: 103.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01745/4.691, allocations: 6.717 MB / 1.178 GB, free: 97.99 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009022/4.7, allocations: 0.8637 MB / 1.179 GB, free: 97.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08777/4.787, allocations: 28.23 MB / 1.206 GB, free: 73.39 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0203/4.808, allocations: 8.319 MB / 1.214 GB, free: 67.43 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01671/4.825, allocations: 5.881 MB / 1.22 GB, free: 61.96 MB / 0.573 GB Notification: Performance of SimCode: time 2.004e-06/4.825, allocations: 7.031 kB / 1.22 GB, free: 61.96 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.992/12.82, allocations: 409.2 MB / 1.62 GB, free: 34.89 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat