Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion.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.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.48/2.48, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.456e-05, allocations: 4 kB / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4098, allocations: 54.84 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.176/0.5859, allocations: 96.3 MB / 460.9 MB, free: 72 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.5862, allocations: 63.97 kB / 461 MB, free: 8 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.321/0.9073, allocations: 63.81 MB / 0.5125 GB, free: 60 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.9074, allocations: 4 kB / 0.5125 GB, free: 56 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003427/0.9077, allocations: 76.06 kB / 0.5126 GB, free: 15.98 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.0142/0.9219, allocations: 2.867 MB / 0.5154 GB, free: 13.06 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.922, allocations: 8.031 kB / 0.5154 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00173/0.9237, allocations: 396.3 kB / 0.5157 GB, free: 12.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003185/0.927, allocations: 407.8 kB / 0.5161 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004607/0.9316, allocations: 1.298 MB / 0.5174 GB, free: 10.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00156/0.9333, allocations: 0.5767 MB / 0.518 GB, free: 10.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001545/0.9348, allocations: 315.6 kB / 0.5183 GB, free: 9.953 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/0.9469, allocations: 3.161 MB / 0.5213 GB, free: 6.676 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002963/0.9472, allocations: 43.55 kB / 0.5214 GB, free: 6.633 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000871/0.9481, allocations: 112 kB / 0.5215 GB, free: 6.523 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-05/0.9482, allocations: 75.95 kB / 0.5216 GB, free: 6.449 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.9586, allocations: 3.087 MB / 0.5246 GB, free: 3.355 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3499/1.309, allocations: 9.779 MB / 0.5341 GB, free: 113.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008885/1.317, allocations: 2.911 MB / 0.537 GB, free: 113.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005428/1.323, allocations: 1.567 MB / 0.5385 GB, free: 113 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009112/1.324, allocations: 228.4 kB / 0.5387 GB, free: 112.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.569e-05/1.324, allocations: 89.55 kB / 0.5388 GB, free: 112.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=366): time 9.608e-06/1.324, allocations: 0 / 0.5388 GB, free: 112.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=429): time 0.04718/1.371, allocations: 17.45 MB / 0.5558 GB, free: 103.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002444/1.372, allocations: 0.6152 MB / 0.5565 GB, free: 103.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003063/1.375, allocations: 1.29 MB / 0.5577 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001164/1.376, allocations: 125.4 kB / 0.5578 GB, free: 102.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009357/1.377, allocations: 0.8541 MB / 0.5587 GB, free: 102.2 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002333/1.379, allocations: 1.431 MB / 0.5601 GB, free: 101.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009608/1.38, allocations: 86.69 kB / 0.5601 GB, free: 101.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003284/1.381, allocations: 477.3 kB / 0.5606 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004604/1.385, allocations: 1.343 MB / 0.5619 GB, free: 100.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005394/1.391, allocations: 2.074 MB / 0.5639 GB, free: 98.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004508/1.395, allocations: 1.365 MB / 0.5653 GB, free: 98.36 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.769e-05/1.395, allocations: 3.844 kB / 0.5653 GB, free: 98.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01489/1.41, allocations: 4.512 MB / 0.5697 GB, free: 96.72 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/1.41, allocations: 15.16 kB / 0.5697 GB, free: 96.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-05/1.41, allocations: 26.61 kB / 0.5697 GB, free: 96.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006357/1.417, allocations: 1.74 MB / 0.5714 GB, free: 96.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006078/1.423, allocations: 0.8083 MB / 0.5722 GB, free: 96.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02493/1.448, allocations: 16.24 MB / 0.5881 GB, free: 83.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005374/1.453, allocations: 382.6 kB / 0.5884 GB, free: 83.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009224/1.454, allocations: 182.7 kB / 0.5886 GB, free: 82.99 MB / 458.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 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,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,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001156/1.455, allocations: 365 kB / 0.589 GB, free: 82.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.457, allocations: 285.1 kB / 0.5892 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005193/1.462, allocations: 1.542 MB / 0.5907 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.026e-05/1.462, allocations: 48.61 kB / 0.5908 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.332e-05/1.462, allocations: 6.844 kB / 0.5908 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.444e-05/1.462, allocations: 21.91 kB / 0.5908 GB, free: 81.82 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02907/1.491, allocations: 10.08 MB / 0.6006 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.879e-05/1.491, allocations: 7.125 kB / 0.6007 GB, free: 76.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00674/1.498, allocations: 0.7362 MB / 0.6014 GB, free: 76.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005984/1.504, allocations: 1.606 MB / 0.6029 GB, free: 76.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008381/1.505, allocations: 134.6 kB / 0.6031 GB, free: 76.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02273/1.528, allocations: 15.7 MB / 0.6184 GB, free: 60.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.22e-05/1.528, allocations: 15.94 kB / 0.6184 GB, free: 60.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01782/1.546, allocations: 7.86 MB / 0.6261 GB, free: 52.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002744/1.549, allocations: 0.6979 MB / 0.6268 GB, free: 51.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/1.55, allocations: 113.6 kB / 0.6269 GB, free: 51.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005791/1.556, allocations: 349.8 kB / 0.6272 GB, free: 51.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002467/1.558, allocations: 0.616 MB / 0.6278 GB, free: 51.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007431/1.559, allocations: 164.2 kB / 0.628 GB, free: 51.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002073/1.561, allocations: 0.9777 MB / 0.6289 GB, free: 50.13 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.533e-06/1.561, allocations: 4 kB / 0.6289 GB, free: 50.12 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00645/1.568, allocations: 0.9913 MB / 0.6299 GB, free: 49.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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.02013/1.588, allocations: 11.31 MB / 0.6409 GB, free: 37.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01169/1.6, allocations: 4.668 MB / 0.6455 GB, free: 33.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/1.6, allocations: 0 / 0.6455 GB, free: 33.41 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01017/1.61, allocations: 3.519 MB / 0.6489 GB, free: 30.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/1.615, allocations: 385.5 kB / 0.6493 GB, free: 29.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02329/1.638, allocations: 7.675 MB / 0.6568 GB, free: 22.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/1.64, allocations: 1.889 MB / 0.6587 GB, free: 21.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002988/1.643, allocations: 1.164 MB / 0.6598 GB, free: 20.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.413e-06/1.643, allocations: 4 kB / 0.6598 GB, free: 20.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.899/6.542, allocations: 140.6 MB / 0.7971 GB, free: 90.52 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat