Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestBearingConversion.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.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.196/2.196, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000462/0.0004621, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.381, allocations: 48.7 MB / 331.4 MB, free: 6.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1639/0.5449, allocations: 90.08 MB / 421.4 MB, free: 4.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/0.5453, allocations: 71.97 kB / 421.5 MB, free: 4.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.611/1.156, allocations: 63.84 MB / 485.3 MB, free: 95.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.858e-06/1.156, allocations: 3.188 kB / 485.4 MB, free: 95.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002531/1.157, allocations: 65.52 kB / 485.4 MB, free: 95.88 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01531/1.172, allocations: 3.145 MB / 488.6 MB, free: 94.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/1.172, allocations: 13.09 kB / 488.6 MB, free: 94.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001876/1.174, allocations: 392.1 kB / 489 MB, free: 94.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003429/1.177, allocations: 416.5 kB / 489.4 MB, free: 94.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005442/1.183, allocations: 1.318 MB / 490.7 MB, free: 93.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001575/1.185, allocations: 0.5815 MB / 491.3 MB, free: 93.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001702/1.186, allocations: 306.3 kB / 491.6 MB, free: 93.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/1.2, allocations: 3.39 MB / 495 MB, free: 93.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003389/1.201, allocations: 48.64 kB / 495 MB, free: 93.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001017/1.202, allocations: 115.6 kB / 495.1 MB, free: 93.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.958e-05/1.202, allocations: 69.5 kB / 495.2 MB, free: 93.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/1.215, allocations: 3.552 MB / 498.7 MB, free: 93.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02664/1.242, allocations: 9.647 MB / 0.4965 GB, free: 87.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009414/1.251, allocations: 3.127 MB / 0.4995 GB, free: 86.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005192/1.252, allocations: 60.27 kB / 0.4996 GB, free: 86.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.921e-05/1.252, allocations: 93.86 kB / 0.4997 GB, free: 86.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=359): time 7.344e-06/1.252, allocations: 0 / 0.4997 GB, free: 86.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=421): time 0.06303/1.315, allocations: 21.04 MB / 0.5202 GB, free: 71.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/1.315, allocations: 0.5504 MB / 0.5207 GB, free: 71.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/1.318, allocations: 1.384 MB / 0.5221 GB, free: 69.85 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001023/1.319, allocations: 120.8 kB / 0.5222 GB, free: 69.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000714/1.32, allocations: 0.8679 MB / 0.5231 GB, free: 68.92 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002005/1.322, allocations: 1.412 MB / 0.5244 GB, free: 67.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005605/1.323, allocations: 87.84 kB / 0.5245 GB, free: 67.58 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002488/1.323, allocations: 473 kB / 0.525 GB, free: 67.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005481/1.329, allocations: 1.486 MB / 0.5264 GB, free: 65.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006509/1.335, allocations: 2.205 MB / 0.5286 GB, free: 63.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005831/1.341, allocations: 1.521 MB / 0.5301 GB, free: 62.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.649e-05/1.341, allocations: 7.938 kB / 0.5301 GB, free: 62.17 MB / 394.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.0182/1.359, allocations: 5.058 MB / 0.535 GB, free: 57.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.927e-05/1.359, allocations: 12 kB / 0.535 GB, free: 57.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.958e-05/1.359, allocations: 20 kB / 0.535 GB, free: 57.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006965/1.366, allocations: 2.014 MB / 0.537 GB, free: 55.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006032/1.372, allocations: 0.8113 MB / 0.5378 GB, free: 54.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02715/1.4, allocations: 16.67 MB / 0.5541 GB, free: 36.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005683/1.405, allocations: 379.7 kB / 0.5544 GB, free: 36.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/1.407, allocations: 193.4 kB / 0.5546 GB, free: 36.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.003343/1.41, allocations: 0.6085 MB / 0.5552 GB, free: 35.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.411, allocations: 288.5 kB / 0.5555 GB, free: 35.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002322/1.414, allocations: 0.6579 MB / 0.5561 GB, free: 34.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.451e-05/1.414, allocations: 48 kB / 0.5562 GB, free: 34.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.745e-05/1.414, allocations: 7.984 kB / 0.5562 GB, free: 34.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-05/1.414, allocations: 23.92 kB / 0.5562 GB, free: 34.6 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03417/1.448, allocations: 10.55 MB / 0.5665 GB, free: 23.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.843e-05/1.448, allocations: 12.16 kB / 0.5665 GB, free: 23.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006364/1.455, allocations: 0.7295 MB / 0.5672 GB, free: 23.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006699/1.461, allocations: 1.878 MB / 0.5691 GB, free: 21.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/1.463, allocations: 131.9 kB / 0.5692 GB, free: 21.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02611/1.489, allocations: 16.15 MB / 0.585 GB, free: 4.125 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/1.489, allocations: 8 kB / 0.585 GB, free: 4.117 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02859/1.517, allocations: 8.498 MB / 0.5933 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003264/1.521, allocations: 0.7197 MB / 0.594 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/1.523, allocations: 112 kB / 0.5941 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006076/1.529, allocations: 347.7 kB / 0.5944 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002892/1.532, allocations: 0.6056 MB / 0.595 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001075/1.533, allocations: 167.9 kB / 0.5952 GB, free: 9.312 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003081/1.536, allocations: 1.041 MB / 0.5962 GB, free: 8.281 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.536, allocations: 0 / 0.5962 GB, free: 8.281 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008176/1.544, allocations: 1.012 MB / 0.5972 GB, free: 7.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (299): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.03227/1.576, allocations: 11.59 MB / 0.6085 GB, free: 11.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01711/1.594, allocations: 5.021 MB / 0.6134 GB, free: 6.277 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/1.594, allocations: 4 kB / 0.6134 GB, free: 6.273 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01301/1.607, allocations: 3.68 MB / 0.617 GB, free: 2.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005183/1.612, allocations: 377.7 kB / 0.6173 GB, free: 2.152 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.362/1.974, allocations: 34.99 MB / 0.6515 GB, free: 91.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002699/1.977, allocations: 1.895 MB / 0.6534 GB, free: 90.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00337/1.98, allocations: 1.17 MB / 0.6545 GB, free: 90.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/1.98, allocations: 0 / 0.6545 GB, free: 90.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.309/7.29, allocations: 139.8 MB / 0.791 GB, free: 125.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat