Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.885/1.885, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004553, allocations: 12 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4391/0.4396, allocations: 48.7 MB / 331.4 MB, free: 6.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2498/0.6895, allocations: 95.25 MB / 426.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000487/0.69, allocations: 83.95 kB / 426.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7516/1.442, allocations: 106.2 MB / 0.5204 GB, free: 76.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.442, allocations: 0 / 0.5204 GB, free: 76.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003794/1.442, allocations: 108 kB / 0.5205 GB, free: 76.06 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.02347/1.466, allocations: 5.739 MB / 0.5261 GB, free: 70.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/1.466, allocations: 8.031 kB / 0.5261 GB, free: 70.23 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00435/1.47, allocations: 0.9309 MB / 0.5271 GB, free: 69.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0506/1.521, allocations: 6.896 MB / 0.5338 GB, free: 62.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02394/1.545, allocations: 6.883 MB / 0.5405 GB, free: 55.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005565/1.545, allocations: 406.7 kB / 0.5409 GB, free: 55.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002933/1.548, allocations: 0.531 MB / 0.5414 GB, free: 54.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/1.582, allocations: 12.4 MB / 0.5535 GB, free: 40.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003395/1.582, allocations: 79.31 kB / 0.5536 GB, free: 40.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001996/1.584, allocations: 255.9 kB / 0.5539 GB, free: 40.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002248/1.586, allocations: 1.129 MB / 0.555 GB, free: 39.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02913/1.615, allocations: 9.979 MB / 0.5647 GB, free: 29.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09205/1.708, allocations: 56.49 MB / 0.6199 GB, free: 3.129 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3538/2.061, allocations: 4.149 MB / 0.6239 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02587/2.087, allocations: 9.5 MB / 0.6332 GB, free: 99.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.208e-05/2.087, allocations: 55.39 kB / 0.6333 GB, free: 99.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.473e-06/2.087, allocations: 0 / 0.6333 GB, free: 99.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.09025/2.178, allocations: 19.36 MB / 0.6522 GB, free: 95.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.617e-05/2.178, allocations: 205.8 kB / 0.6524 GB, free: 95.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/2.188, allocations: 4.232 MB / 0.6565 GB, free: 94.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005136/2.189, allocations: 61.23 kB / 0.6565 GB, free: 94.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003205/2.192, allocations: 3.618 MB / 0.6601 GB, free: 91.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/2.193, allocations: 0.828 MB / 0.6609 GB, free: 91.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007635/2.194, allocations: 133.8 kB / 0.661 GB, free: 91.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004077/2.194, allocations: 0.5866 MB / 0.6616 GB, free: 90.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005544/2.2, allocations: 2.247 MB / 0.6638 GB, free: 89.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00796/2.208, allocations: 6.176 MB / 0.6698 GB, free: 83.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008383/2.216, allocations: 3.665 MB / 0.6734 GB, free: 82.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/2.217, allocations: 37.88 kB / 0.6734 GB, free: 82.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02392/2.241, allocations: 8.761 MB / 0.682 GB, free: 79.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/2.241, allocations: 66.48 kB / 0.682 GB, free: 79.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002339/2.241, allocations: 140.8 kB / 0.6822 GB, free: 79.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004502/2.246, allocations: 0.9406 MB / 0.6831 GB, free: 79.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009494/2.255, allocations: 1.507 MB / 0.6846 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01343/2.269, allocations: 7.608 MB / 0.692 GB, free: 73.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007298/2.276, allocations: 355.3 kB / 0.6923 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/2.277, allocations: 397.8 kB / 0.6927 GB, free: 72.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 790 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007068/2.285, allocations: 2.57 MB / 0.6952 GB, free: 70.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001222/2.286, allocations: 430.4 kB / 0.6956 GB, free: 70.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/2.296, allocations: 3.587 MB / 0.6991 GB, free: 67.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.459e-05/2.297, allocations: 29.2 kB / 0.6992 GB, free: 67.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/2.297, allocations: 11.56 kB / 0.6992 GB, free: 67.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-05/2.297, allocations: 10.31 kB / 0.6992 GB, free: 67.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02733/2.324, allocations: 9.261 MB / 0.7082 GB, free: 59.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.69e-05/2.324, allocations: 0 / 0.7082 GB, free: 59.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003349/2.327, allocations: 346.8 kB / 0.7086 GB, free: 59.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/2.331, allocations: 0.6943 MB / 0.7092 GB, free: 58.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004439/2.332, allocations: 35.33 kB / 0.7093 GB, free: 58.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/2.344, allocations: 6.748 MB / 0.7159 GB, free: 52.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.344, allocations: 0 / 0.7159 GB, free: 52.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01511/2.359, allocations: 6.327 MB / 0.722 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002752/2.362, allocations: 0.7437 MB / 0.7228 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001343/2.363, allocations: 32 kB / 0.7228 GB, free: 46.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003328/2.366, allocations: 115.2 kB / 0.7229 GB, free: 46.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000597/2.367, allocations: 131.9 kB / 0.723 GB, free: 46.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/2.367, allocations: 57.16 kB / 0.7231 GB, free: 46.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007576/2.375, allocations: 3.008 MB / 0.726 GB, free: 43.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.375, allocations: 0 / 0.726 GB, free: 43.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008426/2.383, allocations: 1.188 MB / 0.7272 GB, free: 42.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (169): * Single equations (assignments): 164 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01602/2.399, allocations: 7.197 MB / 0.7342 GB, free: 35.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01381/2.413, allocations: 5.722 MB / 0.7398 GB, free: 30.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.413, allocations: 3.188 kB / 0.7398 GB, free: 30.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005286/2.418, allocations: 1.992 MB / 0.7418 GB, free: 29.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004723/2.423, allocations: 0.5159 MB / 0.7423 GB, free: 28.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4481/2.871, allocations: 138.5 MB / 0.8775 GB, free: 28.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01022/2.882, allocations: 4.109 MB / 0.8815 GB, free: 27.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006608/2.888, allocations: 2.516 MB / 0.884 GB, free: 27.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/2.888, allocations: 0 / 0.884 GB, free: 27.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.2/8.089, allocations: 144.5 MB / 1.025 GB, free: 93.35 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint_res.mat does not exist to compare? outputFormat=mat