Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.048/1.048, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05622/0.05653, allocations: 25.17 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2409/0.2975, allocations: 37.05 MB / 220.6 MB, free: 5.477 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.2977, allocations: 63.06 kB / 220.7 MB, free: 5.469 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03594/0.3337, allocations: 8.374 MB / 229.1 MB, free: 1.766 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3338, allocations: 4 kB / 229.1 MB, free: 1.762 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.3338, allocations: 12 kB / 229.1 MB, free: 1.75 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001749/0.3356, allocations: 0.6721 MB / 229.8 MB, free: 1.055 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3356, allocations: 8.031 kB / 229.8 MB, free: 1.047 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.3357, allocations: 73.34 kB / 229.8 MB, free: 0.9844 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.3359, allocations: 43.44 kB / 229.9 MB, free: 0.9414 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004284/0.3363, allocations: 298.1 kB / 230.2 MB, free: 0.6328 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.667e-05/0.3364, allocations: 27.16 kB / 230.2 MB, free: 0.6133 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3365, allocations: 34.92 kB / 230.2 MB, free: 0.5898 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3378, allocations: 497.5 kB / 230.7 MB, free: 228 kB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.3379, allocations: 7.812 kB / 230.7 MB, free: 224 kB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-05/0.338, allocations: 15.64 kB / 230.8 MB, free: 216 kB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.35e-05/0.338, allocations: 8 kB / 230.8 MB, free: 208 kB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.3396, allocations: 484.4 kB / 231.2 MB, free: 15.85 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/0.343, allocations: 1.162 MB / 232.4 MB, free: 14.87 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.3447, allocations: 0.5206 MB / 232.9 MB, free: 14.47 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.076e-05/0.3448, allocations: 12.5 kB / 232.9 MB, free: 14.46 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.3449, allocations: 34.44 kB / 233 MB, free: 14.42 MB / 186.7 MB Notification: Performance of pre-optimization done (n=47): time 2.826e-06/0.3449, allocations: 7.938 kB / 233 MB, free: 14.41 MB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.009475/0.3544, allocations: 2.67 MB / 235.6 MB, free: 12.11 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.577e-05/0.3545, allocations: 85.67 kB / 235.7 MB, free: 12.01 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004176/0.355, allocations: 244.6 kB / 236 MB, free: 11.81 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.3551, allocations: 44.02 kB / 236 MB, free: 11.77 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3552, allocations: 216.5 kB / 236.2 MB, free: 11.58 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.3555, allocations: 180.1 kB / 236.4 MB, free: 11.43 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.985e-05/0.3556, allocations: 11.44 kB / 236.4 MB, free: 11.42 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3557, allocations: 332.1 kB / 236.7 MB, free: 11.1 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009058/0.3566, allocations: 282.4 kB / 237 MB, free: 10.9 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009713/0.3576, allocations: 335.8 kB / 237.3 MB, free: 10.65 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.3585, allocations: 260.9 kB / 237.6 MB, free: 10.47 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3585, allocations: 0 / 237.6 MB, free: 10.47 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002725/0.3613, allocations: 0.8392 MB / 238.4 MB, free: 9.84 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.3613, allocations: 4 kB / 238.4 MB, free: 9.836 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.3613, allocations: 0 / 238.4 MB, free: 9.836 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001544/0.3629, allocations: 471.3 kB / 238.9 MB, free: 9.457 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006642/0.3636, allocations: 83.2 kB / 239 MB, free: 9.379 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.3653, allocations: 0.9805 MB / 239.9 MB, free: 8.531 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008295/0.3662, allocations: 79.17 kB / 240 MB, free: 8.461 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.3663, allocations: 34.23 kB / 240.1 MB, free: 8.434 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003701/0.3667, allocations: 171 kB / 240.2 MB, free: 8.285 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.3669, allocations: 31.62 kB / 240.3 MB, free: 8.254 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.367, allocations: 57.8 kB / 240.3 MB, free: 8.234 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.3671, allocations: 8 kB / 240.3 MB, free: 8.227 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.3671, allocations: 3.953 kB / 240.3 MB, free: 8.223 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.3671, allocations: 3.984 kB / 240.3 MB, free: 8.219 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.3718, allocations: 1.601 MB / 241.9 MB, free: 6.918 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.719e-06/0.3719, allocations: 8.031 kB / 241.9 MB, free: 6.91 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006425/0.3725, allocations: 71.89 kB / 242 MB, free: 6.84 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.374, allocations: 454.5 kB / 242.5 MB, free: 6.473 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.152e-05/0.3741, allocations: 19.86 kB / 242.5 MB, free: 6.461 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001694/0.3758, allocations: 0.9401 MB / 243.4 MB, free: 5.641 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3758, allocations: 0 / 243.4 MB, free: 5.641 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003654/0.3795, allocations: 1.228 MB / 244.6 MB, free: 4.703 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003886/0.3799, allocations: 173.9 kB / 244.8 MB, free: 4.535 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.38, allocations: 18.69 kB / 244.8 MB, free: 4.527 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006789/0.3807, allocations: 65.88 kB / 244.9 MB, free: 4.469 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/0.3811, allocations: 93.81 kB / 245 MB, free: 4.391 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.088e-05/0.3812, allocations: 30.97 kB / 245 MB, free: 4.363 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003065/0.3815, allocations: 192.8 kB / 245.2 MB, free: 4.199 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3815, allocations: 8 kB / 245.2 MB, free: 4.191 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007679/0.3823, allocations: 137.2 kB / 245.3 MB, free: 4.074 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.004072/0.3864, allocations: 1.822 MB / 247.2 MB, free: 2.363 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.3886, allocations: 0.6233 MB / 247.8 MB, free: 1.738 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3887, allocations: 0 / 247.8 MB, free: 1.738 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.3898, allocations: 333.3 kB / 248.1 MB, free: 1.414 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.3904, allocations: 42.08 kB / 248.2 MB, free: 1.371 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008157/0.3986, allocations: 3.159 MB / 251.3 MB, free: 14.14 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.3992, allocations: 0.8047 MB / 252.1 MB, free: 13.31 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/0.3996, allocations: 115.4 kB / 252.2 MB, free: 13.2 MB / 202.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3996, allocations: 0 / 252.2 MB, free: 13.2 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.188/3.588, allocations: 7.252 MB / 259.5 MB, free: 5.949 MB / 202.7 MB