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.408/2.408, allocations: 235 MB / 248.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.967e-05/3.981e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4396/0.4397, allocations: 54.85 MB / 364.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.631, allocations: 101.5 MB / 466.2 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.6314, allocations: 79.95 kB / 466.2 MB, free: 10.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9119/1.543, allocations: 131.2 MB / 0.5835 GB, free: 100.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.543, allocations: 0 / 0.5835 GB, free: 100.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005303/1.544, allocations: 141.8 kB / 0.5836 GB, free: 100.9 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: 2232 * Number of variables: 2232 Notification: Performance of Generate backend data structure: time 0.03029/1.574, allocations: 6.864 MB / 0.5903 GB, free: 96.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/1.574, allocations: 13.72 kB / 0.5903 GB, free: 96.67 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006407/1.581, allocations: 1.118 MB / 0.5914 GB, free: 95.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06885/1.65, allocations: 9.418 MB / 0.6006 GB, free: 90.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03187/1.682, allocations: 8.984 MB / 0.6094 GB, free: 82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005951/1.682, allocations: 485.2 kB / 0.6098 GB, free: 81.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003915/1.686, allocations: 0.64 MB / 0.6105 GB, free: 80.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05265/1.739, allocations: 16.23 MB / 0.6263 GB, free: 63.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005708/1.739, allocations: 87.23 kB / 0.6264 GB, free: 63.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/1.743, allocations: 302 kB / 0.6267 GB, free: 63.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003747/1.747, allocations: 1.532 MB / 0.6282 GB, free: 61.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04497/1.792, allocations: 14.07 MB / 0.6419 GB, free: 47.63 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5033/2.295, allocations: 70.54 MB / 0.7108 GB, free: 64.51 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03455/2.33, allocations: 7.343 MB / 0.718 GB, free: 63.83 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01086/2.341, allocations: 5.248 MB / 0.7231 GB, free: 63.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04486/2.386, allocations: 17.91 MB / 0.7406 GB, free: 61.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/2.386, allocations: 62.27 kB / 0.7406 GB, free: 61.65 MB / 474.7 MB Notification: Performance of pre-optimization done (n=310): time 7.574e-06/2.386, allocations: 3.719 kB / 0.7407 GB, free: 61.65 MB / 474.7 MB Notification: Performance of matching and sorting (n=404): time 0.2439/2.63, allocations: 51.53 MB / 0.791 GB, free: 43.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/2.63, allocations: 332.7 kB / 0.7913 GB, free: 43.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01195/2.642, allocations: 4.893 MB / 0.7961 GB, free: 38.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001441/2.643, allocations: 89.7 kB / 0.7962 GB, free: 38.61 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003626/2.647, allocations: 4.209 MB / 0.8003 GB, free: 34.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002811/2.65, allocations: 1.468 MB / 0.8017 GB, free: 33.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001681/2.652, allocations: 168 kB / 0.8019 GB, free: 33.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006494/2.652, allocations: 0.6711 MB / 0.8025 GB, free: 32.74 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01242/2.665, allocations: 4.908 MB / 0.8073 GB, free: 28.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01512/2.68, allocations: 9.304 MB / 0.8164 GB, free: 17.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01558/2.696, allocations: 6.703 MB / 0.8229 GB, free: 12.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001494/2.696, allocations: 44 kB / 0.823 GB, free: 12.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=1104) (initialization): time 0.06292/2.759, allocations: 18.18 MB / 0.8407 GB, free: 10.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/2.759, allocations: 72 kB / 0.8408 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002784/2.759, allocations: 153.5 kB / 0.8409 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02737/2.787, allocations: 4.77 MB / 0.8456 GB, free: 5.715 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01589/2.803, allocations: 2.024 MB / 0.8476 GB, free: 3.688 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06972/2.872, allocations: 25.41 MB / 0.8724 GB, free: 9.895 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0131/2.886, allocations: 0.6134 MB / 0.873 GB, free: 9.281 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002884/2.888, allocations: 492.9 kB / 0.8735 GB, free: 8.801 MB / 0.5105 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 () * 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.004836/2.893, allocations: 0.7247 MB / 0.8742 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002659/2.896, allocations: 0.5438 MB / 0.8747 GB, free: 7.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05308/2.949, allocations: 13.35 MB / 0.8877 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-05/2.949, allocations: 40 kB / 0.8878 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-05/2.949, allocations: 20 kB / 0.8878 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/2.949, allocations: 19.92 kB / 0.8878 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07845/3.028, allocations: 23.74 MB / 0.911 GB, free: 2.262 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-05/3.028, allocations: 0 / 0.911 GB, free: 2.262 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008251/3.036, allocations: 0.702 MB / 0.9117 GB, free: 1.559 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3767/3.413, allocations: 4.516 MB / 0.9161 GB, free: 170.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001418/3.414, allocations: 72.5 kB / 0.9162 GB, free: 170.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05897/3.473, allocations: 24.58 MB / 0.9402 GB, free: 166.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/3.474, allocations: 3.781 kB / 0.9402 GB, free: 166.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05747/3.531, allocations: 20.05 MB / 0.9597 GB, free: 160.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005889/3.537, allocations: 1.465 MB / 0.9612 GB, free: 159.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002223/3.539, allocations: 71.23 kB / 0.9612 GB, free: 159.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007771/3.547, allocations: 356.3 kB / 0.9616 GB, free: 159.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002013/3.549, allocations: 250 kB / 0.9618 GB, free: 159.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006047/3.55, allocations: 101 kB / 0.9619 GB, free: 159.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.008594/3.558, allocations: 3.476 MB / 0.9653 GB, free: 158.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.002e-06/3.558, allocations: 0 / 0.9653 GB, free: 158.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01144/3.57, allocations: 1.924 MB / 0.9672 GB, free: 158.2 MB / 0.5417 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 () * 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.06059/3.63, allocations: 20.91 MB / 0.9876 GB, free: 150.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04736/3.678, allocations: 12.92 MB / 1 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/3.678, allocations: 2.188 kB / 1 GB, free: 141.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02615/3.704, allocations: 6.203 MB / 1.006 GB, free: 136 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006986/3.711, allocations: 0.7043 MB / 1.007 GB, free: 135.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0511/3.762, allocations: 18.31 MB / 1.025 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/3.773, allocations: 5.102 MB / 1.03 GB, free: 116 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00885/3.782, allocations: 3.252 MB / 1.033 GB, free: 113 MB / 0.5417 GB Notification: Performance of SimCode: time 1.493e-06/3.782, allocations: 0 / 1.033 GB, free: 113 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.016/9.798, allocations: 225.1 MB / 1.253 GB, free: 73.08 MB / 0.5417 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