Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_BevelGear1D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.899/1.899, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005725/0.0005726, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1146, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5174/0.632, allocations: 96.06 MB / 404.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003592/0.6324, allocations: 93.58 kB / 404.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3989/1.031, allocations: 95.86 MB / 0.4888 GB, free: 3.352 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.787e-06/1.031, allocations: 4 kB / 0.4888 GB, free: 3.348 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003926/1.032, allocations: 100 kB / 0.4889 GB, free: 3.25 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1752 * Number of variables: 1752 Notification: Performance of Generate backend data structure: time 0.04509/1.077, allocations: 6.314 MB / 0.4951 GB, free: 12.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/1.077, allocations: 12.02 kB / 0.4951 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004336/1.081, allocations: 0.8818 MB / 0.496 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03289/1.114, allocations: 4.385 MB / 0.5002 GB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02073/1.135, allocations: 5.265 MB / 0.5054 GB, free: 2.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005677/1.136, allocations: 385.9 kB / 0.5058 GB, free: 1.852 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/1.139, allocations: 499.7 kB / 0.5062 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04425/1.183, allocations: 12.89 MB / 0.5188 GB, free: 3.379 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002983/1.183, allocations: 67.41 kB / 0.5189 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002088/1.186, allocations: 243.8 kB / 0.5191 GB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003016/1.189, allocations: 1.09 MB / 0.5202 GB, free: 1.984 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3197/1.508, allocations: 11.36 MB / 0.5313 GB, free: 81.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/1.626, allocations: 55.94 MB / 0.5859 GB, free: 50.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03497/1.661, allocations: 5.885 MB / 0.5916 GB, free: 48.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00298/1.664, allocations: 1.042 MB / 0.5927 GB, free: 47.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.712e-05/1.664, allocations: 61.12 kB / 0.5927 GB, free: 47.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 6.131e-06/1.664, allocations: 0 / 0.5927 GB, free: 47.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=255): time 0.1447/1.809, allocations: 31.4 MB / 0.6234 GB, free: 36.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.809, allocations: 204.2 kB / 0.6236 GB, free: 36.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008872/1.818, allocations: 3.836 MB / 0.6273 GB, free: 35.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008946/1.819, allocations: 60.89 kB / 0.6274 GB, free: 35.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003112/1.822, allocations: 3.37 MB / 0.6307 GB, free: 32.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001893/1.824, allocations: 0.9589 MB / 0.6316 GB, free: 31.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/1.825, allocations: 132 kB / 0.6317 GB, free: 31.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006528/1.826, allocations: 0.6012 MB / 0.6323 GB, free: 30.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01166/1.837, allocations: 3.475 MB / 0.6357 GB, free: 27.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01528/1.853, allocations: 7.326 MB / 0.6429 GB, free: 19.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/1.868, allocations: 4.94 MB / 0.6477 GB, free: 15.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/1.869, allocations: 43.95 kB / 0.6477 GB, free: 15.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=882) (initialization): time 0.04716/1.916, allocations: 12.57 MB / 0.66 GB, free: 4.637 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/1.916, allocations: 65.56 kB / 0.6601 GB, free: 4.574 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001831/1.916, allocations: 140.1 kB / 0.6602 GB, free: 4.438 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/1.927, allocations: 2.282 MB / 0.6624 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0112/1.938, allocations: 1.634 MB / 0.664 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03508/1.973, allocations: 15.6 MB / 0.6793 GB, free: 2.637 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009871/1.983, allocations: 463.8 kB / 0.6797 GB, free: 2.184 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002253/1.986, allocations: 436.7 kB / 0.6801 GB, free: 1.762 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 33 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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 (809): * Single equations (assignments): 803 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.3546/2.34, allocations: 2.376 MB / 0.6824 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001322/2.342, allocations: 398.2 kB / 0.6828 GB, free: 89.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02498/2.367, allocations: 7.664 MB / 0.6903 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.881e-05/2.367, allocations: 29.06 kB / 0.6903 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-05/2.367, allocations: 14.78 kB / 0.6904 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.122e-05/2.367, allocations: 11.11 kB / 0.6904 GB, free: 89.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04682/2.414, allocations: 15.1 MB / 0.7051 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.931e-05/2.414, allocations: 0 / 0.7051 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005029/2.419, allocations: 445.5 kB / 0.7055 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0105/2.429, allocations: 2.031 MB / 0.7075 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009033/2.43, allocations: 59.81 kB / 0.7076 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02938/2.46, allocations: 14.3 MB / 0.7215 GB, free: 85.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/2.46, allocations: 6.438 kB / 0.7215 GB, free: 85.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03293/2.493, allocations: 12.08 MB / 0.7333 GB, free: 80.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003529/2.496, allocations: 0.9695 MB / 0.7343 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001336/2.498, allocations: 41.41 kB / 0.7343 GB, free: 80.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004418/2.502, allocations: 215 kB / 0.7345 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009747/2.503, allocations: 158.7 kB / 0.7347 GB, free: 80.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003555/2.503, allocations: 68.23 kB / 0.7347 GB, free: 80.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005831/2.509, allocations: 2.683 MB / 0.7374 GB, free: 79.09 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.923e-06/2.509, allocations: 0 / 0.7374 GB, free: 79.09 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008982/2.518, allocations: 1.396 MB / 0.7387 GB, free: 78.94 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (198): * Single equations (assignments): 192 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03114/2.55, allocations: 12.91 MB / 0.7513 GB, free: 73.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01973/2.569, allocations: 8.641 MB / 0.7598 GB, free: 70.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/2.569, allocations: 4.922 kB / 0.7598 GB, free: 70.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009045/2.578, allocations: 3.757 MB / 0.7635 GB, free: 69.03 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/2.582, allocations: 450.9 kB / 0.7639 GB, free: 68.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4959/3.078, allocations: 139.8 MB / 0.9004 GB, free: 59.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008165/3.086, allocations: 3.848 MB / 0.9042 GB, free: 59.13 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006894/3.093, allocations: 2.329 MB / 0.9064 GB, free: 59.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.603e-06/3.093, allocations: 0 / 0.9064 GB, free: 59.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.468/8.561, allocations: 162.3 MB / 1.065 GB, free: 90.08 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat does not exist to compare? outputFormat=mat