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.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.027/1.027, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.775e-05, allocations: 0 / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1679, allocations: 25.15 MB / 179.5 MB, free: 0.7305 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06404/0.2319, allocations: 35.73 MB / 215.2 MB, free: 13.3 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.2323, allocations: 63.97 kB / 215.3 MB, free: 13.24 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0321/0.2644, allocations: 6.651 MB / 222 MB, free: 6.578 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2644, allocations: 0 / 222 MB, free: 6.578 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.2645, allocations: 4 kB / 222 MB, free: 6.574 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001283/0.2657, allocations: 0.5336 MB / 222.5 MB, free: 5.996 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.2658, allocations: 15.97 kB / 222.5 MB, free: 5.98 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.952e-05/0.2659, allocations: 62.53 kB / 222.6 MB, free: 5.91 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.808e-05/0.266, allocations: 23.72 kB / 222.6 MB, free: 5.887 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.2664, allocations: 254.6 kB / 222.8 MB, free: 5.598 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.2665, allocations: 20.56 kB / 222.9 MB, free: 5.578 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/0.2666, allocations: 24 kB / 222.9 MB, free: 5.555 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008254/0.2674, allocations: 319.6 kB / 223.2 MB, free: 5.23 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.2675, allocations: 0 / 223.2 MB, free: 5.23 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.2675, allocations: 15.98 kB / 223.2 MB, free: 5.215 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/0.2676, allocations: 8 kB / 223.2 MB, free: 5.207 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006934/0.2683, allocations: 242.2 kB / 223.5 MB, free: 4.969 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.2706, allocations: 0.8673 MB / 224.3 MB, free: 4.043 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000971/0.2716, allocations: 351.2 kB / 224.7 MB, free: 3.691 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004637/0.2721, allocations: 185.3 kB / 224.9 MB, free: 3.508 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.544e-05/0.2722, allocations: 8 kB / 224.9 MB, free: 3.5 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2722, allocations: 34.42 kB / 224.9 MB, free: 3.457 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 3.006e-06/0.2723, allocations: 0 / 224.9 MB, free: 3.457 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.004033/0.2763, allocations: 1.439 MB / 226.3 MB, free: 1.922 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.2764, allocations: 85.11 kB / 226.4 MB, free: 1.82 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.2767, allocations: 194.7 kB / 226.6 MB, free: 1.621 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.162e-05/0.2768, allocations: 37.7 kB / 226.6 MB, free: 1.578 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.2769, allocations: 187.2 kB / 226.8 MB, free: 1.395 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/0.2771, allocations: 138 kB / 227 MB, free: 1.258 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.2772, allocations: 12 kB / 227 MB, free: 1.246 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.2773, allocations: 326.8 kB / 227.3 MB, free: 0.918 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004503/0.2778, allocations: 160.7 kB / 227.4 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004885/0.2783, allocations: 203.7 kB / 227.6 MB, free: 0.5508 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.2788, allocations: 156.1 kB / 227.8 MB, free: 408 kB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2788, allocations: 0 / 227.8 MB, free: 408 kB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001361/0.2801, allocations: 493.8 kB / 228.3 MB, free: 15.9 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.2802, allocations: 4 kB / 228.3 MB, free: 15.9 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.2802, allocations: 0 / 228.3 MB, free: 15.9 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007691/0.281, allocations: 166.3 kB / 228.4 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005313/0.2815, allocations: 59.95 kB / 228.5 MB, free: 15.68 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004375/0.2859, allocations: 2.271 MB / 230.8 MB, free: 13.27 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004738/0.2865, allocations: 35.97 kB / 230.8 MB, free: 13.23 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.867e-05/0.2865, allocations: 20 kB / 230.8 MB, free: 13.21 MB / 202.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.2867, allocations: 121 kB / 231 MB, free: 13.09 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-05/0.2869, allocations: 39.59 kB / 231 MB, free: 13.05 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.287, allocations: 34.78 kB / 231 MB, free: 13.02 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.287, allocations: 4 kB / 231 MB, free: 13.01 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.287, allocations: 0 / 231 MB, free: 13.01 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.287, allocations: 3.984 kB / 231 MB, free: 13.01 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.2897, allocations: 1.074 MB / 232.1 MB, free: 11.87 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.2897, allocations: 0 / 232.1 MB, free: 11.87 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005808/0.2903, allocations: 71.89 kB / 232.2 MB, free: 11.8 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006577/0.291, allocations: 146.6 kB / 232.3 MB, free: 11.65 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.2911, allocations: 12.05 kB / 232.3 MB, free: 11.64 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003992/0.2951, allocations: 2.188 MB / 234.5 MB, free: 9.32 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.2951, allocations: 3.938 kB / 234.5 MB, free: 9.316 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.2971, allocations: 0.7919 MB / 235.3 MB, free: 8.5 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002714/0.2974, allocations: 140.8 kB / 235.5 MB, free: 8.344 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/0.2975, allocations: 11.95 kB / 235.5 MB, free: 8.332 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.2979, allocations: 35.91 kB / 235.5 MB, free: 8.297 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/0.2982, allocations: 67.94 kB / 235.6 MB, free: 8.23 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-05/0.2983, allocations: 27.98 kB / 235.6 MB, free: 8.203 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002056/0.2985, allocations: 148.5 kB / 235.7 MB, free: 8.059 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2985, allocations: 0 / 235.7 MB, free: 8.059 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007558/0.2993, allocations: 120 kB / 235.9 MB, free: 7.941 MB / 202.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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002495/0.3018, allocations: 1.425 MB / 237.3 MB, free: 6.469 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.3033, allocations: 0.5435 MB / 237.8 MB, free: 5.91 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.3033, allocations: 4.062 kB / 237.8 MB, free: 5.906 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008584/0.3042, allocations: 370.5 kB / 238.2 MB, free: 5.531 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.3047, allocations: 31.92 kB / 238.2 MB, free: 5.5 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.3068, allocations: 0.6576 MB / 238.9 MB, free: 4.801 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.3073, allocations: 0.7841 MB / 239.7 MB, free: 3.992 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.3075, allocations: 91.39 kB / 239.8 MB, free: 3.902 MB / 202.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3076, allocations: 0 / 239.8 MB, free: 3.902 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.366/3.673, allocations: 5.82 MB / 245.6 MB, free: 54.4 MB / 202.7 MB