Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3.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.Parts.Rotor1D.GearConstraint3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004223/0.0004223, allocations: 8 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3903, allocations: 54.86 MB / 369.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1867/0.577, allocations: 101.6 MB / 471 MB, free: 6.977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.5774, allocations: 95.86 kB / 471.1 MB, free: 6.883 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8062/1.384, allocations: 131.1 MB / 0.5881 GB, free: 44.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.745e-06/1.384, allocations: 0 / 0.5881 GB, free: 44.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005038/1.384, allocations: 135.9 kB / 0.5882 GB, free: 44.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.03097/1.415, allocations: 7.495 MB / 0.5955 GB, free: 37.13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/1.415, allocations: 8.031 kB / 0.5955 GB, free: 37.12 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005148/1.42, allocations: 1.124 MB / 0.5966 GB, free: 35.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.066/1.487, allocations: 9.399 MB / 0.6058 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02988/1.516, allocations: 9.032 MB / 0.6146 GB, free: 17.45 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005523/1.517, allocations: 492.7 kB / 0.6151 GB, free: 16.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00396/1.521, allocations: 0.6441 MB / 0.6157 GB, free: 16.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04884/1.57, allocations: 16.39 MB / 0.6317 GB, free: 14.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004332/1.57, allocations: 83.25 kB / 0.6318 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002374/1.573, allocations: 299.9 kB / 0.6321 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004046/1.577, allocations: 1.53 MB / 0.6336 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05522/1.632, allocations: 14.34 MB / 0.6476 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4948/2.127, allocations: 70.53 MB / 0.7164 GB, free: 58.16 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03214/2.159, allocations: 7.437 MB / 0.7237 GB, free: 57.49 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0476/2.207, allocations: 17.92 MB / 0.7412 GB, free: 55.17 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.217e-05/2.207, allocations: 71.84 kB / 0.7413 GB, free: 55.12 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 1.137e-05/2.207, allocations: 0 / 0.7413 GB, free: 55.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=404): time 0.3012/2.508, allocations: 60.12 MB / 0.8 GB, free: 29.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/2.508, allocations: 324.1 kB / 0.8003 GB, free: 28.78 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01334/2.522, allocations: 4.945 MB / 0.8051 GB, free: 24.72 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001513/2.523, allocations: 89.7 kB / 0.8052 GB, free: 24.63 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0038/2.527, allocations: 4.204 MB / 0.8093 GB, free: 20.83 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00289/2.53, allocations: 1.466 MB / 0.8108 GB, free: 19.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/2.532, allocations: 164 kB / 0.8109 GB, free: 19.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006957/2.533, allocations: 0.6741 MB / 0.8116 GB, free: 18.78 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01288/2.546, allocations: 5.029 MB / 0.8165 GB, free: 14.49 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01626/2.562, allocations: 9.426 MB / 0.8257 GB, free: 3.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01747/2.58, allocations: 6.763 MB / 0.8323 GB, free: 13.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000171/2.58, allocations: 44 kB / 0.8323 GB, free: 12.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=1104) (initialization): time 0.0667/2.646, allocations: 18.42 MB / 0.8503 GB, free: 10.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000156/2.647, allocations: 72 kB / 0.8504 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002987/2.647, allocations: 156.2 kB / 0.8505 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0264/2.673, allocations: 4.778 MB / 0.8552 GB, free: 5.961 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01516/2.689, allocations: 2.02 MB / 0.8572 GB, free: 3.938 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4495/3.138, allocations: 26.25 MB / 0.8828 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01211/3.15, allocations: 0.6123 MB / 0.8834 GB, free: 114.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002655/3.153, allocations: 496.9 kB / 0.8839 GB, free: 114.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 690 * Number of states: 0 () * Number of discrete variables: 54 (torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.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 (1001): * Single equations (assignments): 995 * 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%) 15,(14,44.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01052/3.164, allocations: 3.163 MB / 0.887 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002457/3.166, allocations: 0.5471 MB / 0.8875 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06239/3.229, allocations: 13.5 MB / 0.9007 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001091/3.229, allocations: 41.75 kB / 0.9007 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001089/3.229, allocations: 17.66 kB / 0.9007 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001401/3.229, allocations: 21.91 kB / 0.9008 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08742/3.316, allocations: 23.89 MB / 0.9241 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.461e-05/3.317, allocations: 2.75 kB / 0.9241 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007728/3.324, allocations: 0.7036 MB / 0.9248 GB, free: 103.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02399/3.348, allocations: 4.527 MB / 0.9292 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001487/3.35, allocations: 70.38 kB / 0.9293 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06017/3.41, allocations: 25.42 MB / 0.9541 GB, free: 87.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/3.41, allocations: 4.75 kB / 0.9541 GB, free: 87.37 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05935/3.47, allocations: 20.32 MB / 0.974 GB, free: 70.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00562/3.475, allocations: 1.457 MB / 0.9754 GB, free: 69.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002882/3.478, allocations: 74.73 kB / 0.9754 GB, free: 69.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007912/3.486, allocations: 358 kB / 0.9758 GB, free: 69.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002432/3.489, allocations: 254.4 kB / 0.976 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001271/3.49, allocations: 99.84 kB / 0.9761 GB, free: 68.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009169/3.499, allocations: 3.529 MB / 0.9796 GB, free: 65.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.62e-07/3.499, allocations: 0 / 0.9796 GB, free: 65.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01227/3.511, allocations: 1.922 MB / 0.9814 GB, free: 63.85 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (gearConstraint.actuatedRevolute_a.phi,gearConstraint.actuatedRevolute_a.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 (315): * Single equations (assignments): 309 * 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,(14,43.4%) 41,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.08516/3.597, allocations: 21.16 MB / 1.002 GB, free: 42.72 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03657/3.633, allocations: 13.15 MB / 1.015 GB, free: 30.03 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/3.633, allocations: 3.516 kB / 1.015 GB, free: 30.03 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02041/3.654, allocations: 6.309 MB / 1.021 GB, free: 23.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00691/3.661, allocations: 0.7053 MB / 1.022 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6136/4.274, allocations: 176 MB / 1.194 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01272/4.287, allocations: 5.105 MB / 1.199 GB, free: 25.25 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01025/4.298, allocations: 3.248 MB / 1.202 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of SimCode: time 1.513e-06/4.298, allocations: 0 / 1.202 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.184/10.48, allocations: 224.7 MB / 1.421 GB, free: 21 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint3_res.mat does not exist to compare? outputFormat=mat