Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Beveal1d.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Beveal1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Beveal1d") Notification: Performance of loadModel(ModelicaTest): time 2.122/2.122, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004418, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2756, allocations: 54.87 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Beveal1d): time 0.08384/0.3595, allocations: 57.48 MB / 426.7 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03409/0.3937, allocations: 13.51 MB / 440.2 MB, free: 3.508 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01111/0.4048, allocations: 287.3 kB / 440.5 MB, free: 3.227 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009052/0.4139, allocations: 2.928 MB / 443.4 MB, free: 292 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02751/0.4415, allocations: 8.279 MB / 451.7 MB, free: 7.984 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004099/0.4456, allocations: 0.7996 MB / 452.5 MB, free: 7.184 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03787/0.4835, allocations: 17.85 MB / 470.3 MB, free: 5.316 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2878/0.7714, allocations: 6.535 MB / 476.8 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003359/0.7748, allocations: 1.398 MB / 478.2 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003707/0.7785, allocations: 1.877 MB / 480.1 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.7797, allocations: 189.8 kB / 480.3 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003033/0.7828, allocations: 1.003 MB / 481.3 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002773/0.7856, allocations: 2.093 MB / 483.4 MB, free: 19.69 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.787, allocations: 1.09 MB / 484.5 MB, free: 19.66 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009004/0.796, allocations: 7.544 MB / 492 MB, free: 19.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.851e-06/0.7961, allocations: 3.719 kB / 492 MB, free: 19.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.083e-06/0.7961, allocations: 0 / 492 MB, free: 19.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002309/0.7963, allocations: 1.031 kB / 492 MB, free: 19.16 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: 1834 * Number of variables: 1834 Notification: Performance of Generate backend data structure: time 0.01418/0.8105, allocations: 5.623 MB / 497.7 MB, free: 16.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8106, allocations: 9.75 kB / 497.7 MB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05255/0.8631, allocations: 8.022 MB / 0.4938 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009791/0.873, allocations: 4.273 MB / 0.498 GB, free: 11.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.8733, allocations: 309.4 kB / 0.4983 GB, free: 11.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001431/0.8747, allocations: 429.2 kB / 0.4987 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02532/0.9001, allocations: 12.02 MB / 0.5105 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001919/0.9003, allocations: 57.03 kB / 0.5105 GB, free: 6.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006944/0.901, allocations: 198.5 kB / 0.5107 GB, free: 5.961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003194/0.9042, allocations: 2.083 MB / 0.5127 GB, free: 4.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02351/0.9277, allocations: 10 MB / 0.5225 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07715/1.005, allocations: 46.62 MB / 0.568 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02831/1.033, allocations: 4.265 MB / 0.5722 GB, free: 2.922 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03951/1.073, allocations: 9.676 MB / 0.5817 GB, free: 12.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.23e-05/1.073, allocations: 60.28 kB / 0.5817 GB, free: 12.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=190): time 1.201e-05/1.073, allocations: 0 / 0.5817 GB, free: 12.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=212): time 0.07994/1.153, allocations: 19.39 MB / 0.6006 GB, free: 9.215 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/1.153, allocations: 205.2 kB / 0.6008 GB, free: 8.973 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/1.164, allocations: 5.029 MB / 0.6058 GB, free: 3.945 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004096/1.164, allocations: 57.7 kB / 0.6058 GB, free: 3.883 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003784/1.168, allocations: 3.6 MB / 0.6093 GB, free: 308 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/1.17, allocations: 0.8125 MB / 0.6101 GB, free: 15.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005584/1.17, allocations: 128 kB / 0.6102 GB, free: 15.37 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005719/1.171, allocations: 0.5836 MB / 0.6108 GB, free: 14.78 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00543/1.176, allocations: 2.312 MB / 0.6131 GB, free: 12.46 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009543/1.186, allocations: 6.224 MB / 0.6191 GB, free: 4.355 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007947/1.194, allocations: 3.715 MB / 0.6228 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/1.194, allocations: 40 kB / 0.6228 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of matching and sorting (n=845) (initialization): time 0.02257/1.216, allocations: 8.931 MB / 0.6315 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001317/1.217, allocations: 64 kB / 0.6316 GB, free: 8.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002127/1.217, allocations: 140 kB / 0.6317 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004173/1.221, allocations: 1.084 MB / 0.6328 GB, free: 7.344 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/1.227, allocations: 1.494 MB / 0.6342 GB, free: 5.977 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01479/1.242, allocations: 8.188 MB / 0.6422 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006059/1.248, allocations: 359.4 kB / 0.6426 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/1.25, allocations: 405.7 kB / 0.643 GB, free: 12.86 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * 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 (785): * Single equations (assignments): 780 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006035/1.256, allocations: 2.544 MB / 0.6455 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.257, allocations: 430.5 kB / 0.6459 GB, free: 10.01 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009616/1.266, allocations: 3.801 MB / 0.6496 GB, free: 6.203 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.302e-05/1.266, allocations: 30.98 kB / 0.6496 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/1.266, allocations: 8 kB / 0.6496 GB, free: 6.172 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.122e-05/1.266, allocations: 11.92 kB / 0.6496 GB, free: 6.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3166/1.583, allocations: 9.603 MB / 0.659 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.083e-05/1.583, allocations: 2.781 kB / 0.659 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0048/1.588, allocations: 334.5 kB / 0.6593 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007587/1.596, allocations: 0.8472 MB / 0.6602 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006977/1.596, allocations: 39.97 kB / 0.6602 GB, free: 194.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02592/1.622, allocations: 7.53 MB / 0.6675 GB, free: 190.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/1.622, allocations: 4.266 kB / 0.6675 GB, free: 190.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.637, allocations: 6.546 MB / 0.6739 GB, free: 187.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002183/1.639, allocations: 0.7631 MB / 0.6747 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007465/1.64, allocations: 34.66 kB / 0.6747 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002434/1.643, allocations: 118.9 kB / 0.6748 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004428/1.643, allocations: 129.3 kB / 0.675 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002121/1.643, allocations: 56.48 kB / 0.675 GB, free: 187.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006189/1.649, allocations: 3.222 MB / 0.6782 GB, free: 186.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.057e-06/1.649, allocations: 0 / 0.6782 GB, free: 186.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00686/1.656, allocations: 1.211 MB / 0.6793 GB, free: 186.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (163): * Single equations (assignments): 158 * 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.000662/1.657, allocations: 185.6 kB / 0.6795 GB, free: 186.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01126/1.668, allocations: 5.822 MB / 0.6852 GB, free: 184.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/1.668, allocations: 0 / 0.6852 GB, free: 184.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00461/1.673, allocations: 2.031 MB / 0.6872 GB, free: 183.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005478/1.679, allocations: 0.5356 MB / 0.6877 GB, free: 183 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02888/1.707, allocations: 14.05 MB / 0.7014 GB, free: 170.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006/1.713, allocations: 4.105 MB / 0.7054 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/1.715, allocations: 339.9 kB / 0.7058 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.739e-06/1.715, allocations: 0 / 0.7058 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.1592/1.874, allocations: 112.4 MB / 0.8155 GB, free: 56.02 MB / 0.5105 GB