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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.077/1.077, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.499e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05877/0.05883, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.2844, allocations: 36.3 MB / 209.7 MB, free: 4.613 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.2847, allocations: 61.28 kB / 209.7 MB, free: 4.613 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03764/0.3224, allocations: 8.322 MB / 218.1 MB, free: 2.738 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3224, allocations: 0 / 218.1 MB, free: 2.738 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.3224, allocations: 3.719 kB / 218.1 MB, free: 2.738 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.00171/0.3242, allocations: 0.6483 MB / 218.7 MB, free: 2.23 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.3242, allocations: 11.75 kB / 218.7 MB, free: 2.227 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.3244, allocations: 38.66 kB / 218.8 MB, free: 2.207 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/0.3249, allocations: 292 kB / 219 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.3249, allocations: 11.28 kB / 219.1 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.3251, allocations: 19.22 kB / 219.1 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009654/0.326, allocations: 403.7 kB / 219.5 MB, free: 1.91 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009262/0.327, allocations: 417.4 kB / 219.9 MB, free: 1.777 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.327, allocations: 15.45 kB / 219.9 MB, free: 1.77 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.915e-05/0.3271, allocations: 0 / 219.9 MB, free: 1.77 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.442e-05/0.3272, allocations: 19.08 kB / 219.9 MB, free: 1.762 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003113/0.3303, allocations: 1.086 MB / 221 MB, free: 1.211 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.3315, allocations: 476.6 kB / 221.5 MB, free: 1.137 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/0.3321, allocations: 257.5 kB / 221.7 MB, free: 1.109 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.952e-05/0.3322, allocations: 8.234 kB / 221.7 MB, free: 1.109 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.3322, allocations: 42.3 kB / 221.8 MB, free: 1.062 MB / 170.7 MB Notification: Performance of pre-optimization done (n=47): time 3.517e-06/0.3322, allocations: 0 / 221.8 MB, free: 1.062 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.008119/0.3403, allocations: 1.802 MB / 223.6 MB, free: 308 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.3405, allocations: 85.42 kB / 223.7 MB, free: 212 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005106/0.341, allocations: 209.6 kB / 223.9 MB, free: 96 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002277/0.3413, allocations: 32.89 kB / 223.9 MB, free: 64 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.3416, allocations: 216.8 kB / 224.1 MB, free: 15.88 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004589/0.342, allocations: 181 kB / 224.3 MB, free: 15.75 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.3422, allocations: 0 / 224.3 MB, free: 15.75 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000236/0.3424, allocations: 340.9 kB / 224.6 MB, free: 15.42 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.3436, allocations: 236.2 kB / 224.8 MB, free: 15.41 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009577/0.3446, allocations: 291.2 kB / 225.1 MB, free: 15.34 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.3459, allocations: 224 kB / 225.3 MB, free: 15.31 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.346, allocations: 0 / 225.3 MB, free: 15.31 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003413/0.3494, allocations: 0.7387 MB / 226.1 MB, free: 15.16 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.3495, allocations: 11.66 kB / 226.1 MB, free: 15.15 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.3495, allocations: 0 / 226.1 MB, free: 15.15 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.3509, allocations: 458.1 kB / 226.5 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.3517, allocations: 90.66 kB / 226.6 MB, free: 15.01 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.3535, allocations: 1.011 MB / 227.6 MB, free: 14.43 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008256/0.3544, allocations: 74.36 kB / 227.7 MB, free: 14.41 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.982e-05/0.3545, allocations: 33.8 kB / 227.7 MB, free: 14.4 MB / 186.7 MB 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 gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.0003341/0.3548, allocations: 123.8 kB / 227.9 MB, free: 14.28 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002096/0.3569, allocations: 0.6858 MB / 228.6 MB, free: 14.11 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.3572, allocations: 39.12 kB / 228.6 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.3574, allocations: 47.14 kB / 228.6 MB, free: 14.08 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3574, allocations: 7.75 kB / 228.6 MB, free: 14.08 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3574, allocations: 0 / 228.6 MB, free: 14.08 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.3574, allocations: 7.938 kB / 228.7 MB, free: 14.07 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.3616, allocations: 1.476 MB / 230.1 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3616, allocations: 3.906 kB / 230.1 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.3623, allocations: 76.39 kB / 230.2 MB, free: 13.44 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.3636, allocations: 439.2 kB / 230.6 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.46e-05/0.3637, allocations: 15.44 kB / 230.7 MB, free: 13.32 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.3653, allocations: 0.9783 MB / 231.6 MB, free: 12.73 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.3653, allocations: 0 / 231.6 MB, free: 12.73 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.368, allocations: 1.109 MB / 232.7 MB, free: 12.42 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004149/0.3685, allocations: 171.7 kB / 232.9 MB, free: 12.29 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.3686, allocations: 7.062 kB / 232.9 MB, free: 12.29 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007039/0.3693, allocations: 58.88 kB / 233 MB, free: 12.27 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/0.3697, allocations: 101 kB / 233.1 MB, free: 12.22 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.139e-05/0.3698, allocations: 27.27 kB / 233.1 MB, free: 12.21 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002267/0.37, allocations: 165.6 kB / 233.3 MB, free: 12.12 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.37, allocations: 0 / 233.3 MB, free: 12.12 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007786/0.3708, allocations: 119.2 kB / 233.4 MB, free: 12.11 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) * 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.003114/0.3739, allocations: 1.685 MB / 235.1 MB, free: 10.91 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.3756, allocations: 0.5308 MB / 235.6 MB, free: 10.53 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3756, allocations: 0 / 235.6 MB, free: 10.53 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008793/0.3765, allocations: 300.4 kB / 235.9 MB, free: 10.31 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005648/0.3771, allocations: 22.73 kB / 235.9 MB, free: 10.3 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.3799, allocations: 0.7731 MB / 236.7 MB, free: 9.559 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.3804, allocations: 0.8107 MB / 237.5 MB, free: 8.727 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003403/0.3808, allocations: 111.5 kB / 237.6 MB, free: 8.684 MB / 186.7 MB Notification: Performance of SimCode: time 1.203e-06/0.3808, allocations: 0 / 237.6 MB, free: 8.684 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.347/3.727, allocations: 7.176 MB / 244.8 MB, free: 1.562 MB / 186.7 MB