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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.396/2.396, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.791e-05/1.803e-05, allocations: 0 / 303.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3548, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.5268, allocations: 95.62 MB / 453.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5272, allocations: 71.91 kB / 453.8 MB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5805/1.108, allocations: 63.32 MB / 0.505 GB, free: 64.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.108, allocations: 0 / 0.505 GB, free: 64.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000207/1.108, allocations: 67.98 kB / 0.5051 GB, free: 64.09 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01285/1.121, allocations: 2.871 MB / 0.5079 GB, free: 61.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/1.121, allocations: 11.97 kB / 0.5079 GB, free: 61.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003163/1.124, allocations: 415.8 kB / 0.5083 GB, free: 60.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/1.128, allocations: 1.294 MB / 0.5095 GB, free: 59.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001209/1.129, allocations: 0.4908 MB / 0.51 GB, free: 58.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/1.131, allocations: 195.7 kB / 0.5102 GB, free: 58.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009371/1.14, allocations: 2.908 MB / 0.5131 GB, free: 55.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009164/1.149, allocations: 2.763 MB / 0.5158 GB, free: 52.87 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002264/1.15, allocations: 43.55 kB / 0.5158 GB, free: 52.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004308/1.15, allocations: 3.938 kB / 0.5158 GB, free: 52.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.965e-05/1.15, allocations: 76 kB / 0.5159 GB, free: 52.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/1.181, allocations: 9.136 MB / 0.5248 GB, free: 43.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008442/1.19, allocations: 2.701 MB / 0.5274 GB, free: 40.52 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005537/1.196, allocations: 1.439 MB / 0.5288 GB, free: 39.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008092/1.196, allocations: 228.3 kB / 0.5291 GB, free: 38.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.199e-05/1.196, allocations: 87.92 kB / 0.5291 GB, free: 38.69 MB / 394.7 MB Notification: Performance of pre-optimization done (n=366): time 1.117e-05/1.197, allocations: 0 / 0.5291 GB, free: 38.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=429): time 0.05091/1.247, allocations: 16.13 MB / 0.5449 GB, free: 21.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001721/1.248, allocations: 0.5426 MB / 0.5454 GB, free: 20.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/1.25, allocations: 1.045 MB / 0.5464 GB, free: 19.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.251, allocations: 53.69 kB / 0.5465 GB, free: 19.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007481/1.252, allocations: 0.8762 MB / 0.5473 GB, free: 18.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001964/1.253, allocations: 1.382 MB / 0.5487 GB, free: 17.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006686/1.254, allocations: 4 kB / 0.5487 GB, free: 17.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002601/1.254, allocations: 475.8 kB / 0.5491 GB, free: 16.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003566/1.258, allocations: 1.262 MB / 0.5504 GB, free: 15.67 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004203/1.262, allocations: 1.969 MB / 0.5523 GB, free: 13.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00454/1.267, allocations: 1.317 MB / 0.5536 GB, free: 12.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.833e-05/1.267, allocations: 5.312 kB / 0.5536 GB, free: 12.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01409/1.281, allocations: 4.169 MB / 0.5577 GB, free: 7.906 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/1.281, allocations: 12 kB / 0.5577 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.778e-05/1.281, allocations: 27.89 kB / 0.5577 GB, free: 7.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006174/1.287, allocations: 1.717 MB / 0.5594 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006052/1.293, allocations: 0.8113 MB / 0.5602 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02708/1.321, allocations: 15.86 MB / 0.5757 GB, free: 4.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005342/1.326, allocations: 303.6 kB / 0.5759 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.327, allocations: 184.4 kB / 0.5761 GB, free: 4.184 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear1.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_2.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_2.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.001734/1.329, allocations: 236.4 kB / 0.5763 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01468/1.344, allocations: 3.691 MB / 0.58 GB, free: 212 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001913/1.346, allocations: 268.9 kB / 0.5802 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005934/1.352, allocations: 1.459 MB / 0.5816 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.213e-05/1.352, allocations: 44 kB / 0.5817 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.195e-05/1.352, allocations: 7.984 kB / 0.5817 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001162/1.352, allocations: 27.92 kB / 0.5817 GB, free: 14.36 MB / 426.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.03191/1.384, allocations: 9.529 MB / 0.591 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.79e-05/1.384, allocations: 11.94 kB / 0.591 GB, free: 4.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006814/1.391, allocations: 0.7297 MB / 0.5917 GB, free: 3.879 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006303/1.397, allocations: 1.577 MB / 0.5933 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009211/1.398, allocations: 79.88 kB / 0.5934 GB, free: 2.191 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02573/1.424, allocations: 15.31 MB / 0.6083 GB, free: 2.082 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.716e-05/1.424, allocations: 15.94 kB / 0.6083 GB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01936/1.443, allocations: 7.32 MB / 0.6155 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002822/1.446, allocations: 0.6771 MB / 0.6161 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/1.447, allocations: 44 kB / 0.6162 GB, free: 9.551 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005553/1.453, allocations: 283.7 kB / 0.6164 GB, free: 9.273 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002601/1.456, allocations: 0.6135 MB / 0.617 GB, free: 8.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007306/1.456, allocations: 163.9 kB / 0.6172 GB, free: 8.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001726/1.458, allocations: 0.7641 MB / 0.6179 GB, free: 7.738 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.458, allocations: 3.938 kB / 0.618 GB, free: 7.734 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006627/1.465, allocations: 0.8202 MB / 0.6188 GB, free: 6.914 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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.3414/1.806, allocations: 10.61 MB / 0.6291 GB, free: 119.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/1.817, allocations: 4.355 MB / 0.6334 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/1.817, allocations: 3.312 kB / 0.6334 GB, free: 118.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009493/1.827, allocations: 3.323 MB / 0.6366 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004757/1.831, allocations: 297.1 kB / 0.6369 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02289/1.854, allocations: 7.28 MB / 0.644 GB, free: 115 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/1.856, allocations: 1.894 MB / 0.6459 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003042/1.86, allocations: 1.148 MB / 0.647 GB, free: 114.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.633e-06/1.86, allocations: 0 / 0.647 GB, free: 114.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.865/6.725, allocations: 139.5 MB / 0.7832 GB, free: 11.82 MB / 474.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