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.237/1.237, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.354e-05/2.393e-05, allocations: 3.984 kB / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1712, allocations: 25.15 MB / 179.5 MB, free: 0.8125 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06881/0.24, allocations: 36.97 MB / 216.5 MB, free: 12.12 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.2404, allocations: 67.97 kB / 216.6 MB, free: 12.06 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04094/0.2813, allocations: 8.358 MB / 224.9 MB, free: 3.676 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2814, allocations: 0 / 224.9 MB, free: 3.676 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.2814, allocations: 12 kB / 224.9 MB, free: 3.664 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001948/0.2834, allocations: 0.6427 MB / 225.6 MB, free: 2.973 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.2834, allocations: 8.031 kB / 225.6 MB, free: 2.965 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.2836, allocations: 70.72 kB / 225.6 MB, free: 2.887 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.2838, allocations: 47.47 kB / 225.7 MB, free: 2.84 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.2844, allocations: 287.5 kB / 226 MB, free: 2.516 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.2845, allocations: 24.78 kB / 226 MB, free: 2.492 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.2846, allocations: 32 kB / 226 MB, free: 2.461 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.2859, allocations: 470.8 kB / 226.5 MB, free: 1.988 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.2859, allocations: 3.906 kB / 226.5 MB, free: 1.984 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.358e-05/0.286, allocations: 15.95 kB / 226.5 MB, free: 1.969 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.596e-05/0.2861, allocations: 12 kB / 226.5 MB, free: 1.957 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.2873, allocations: 427 kB / 226.9 MB, free: 1.543 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003718/0.2911, allocations: 1.173 MB / 228.1 MB, free: 316 kB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.2926, allocations: 0.4893 MB / 228.6 MB, free: 15.81 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007115/0.2934, allocations: 270.1 kB / 228.9 MB, free: 15.55 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.503e-05/0.2935, allocations: 8.438 kB / 228.9 MB, free: 15.54 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.2935, allocations: 42.94 kB / 228.9 MB, free: 15.49 MB / 202.7 MB Notification: Performance of pre-optimization done (n=47): time 3.246e-06/0.2935, allocations: 0 / 228.9 MB, free: 15.49 MB / 202.7 MB Notification: Performance of matching and sorting (n=55): time 0.00562/0.2992, allocations: 1.939 MB / 230.8 MB, free: 13.46 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.701e-05/0.2993, allocations: 81.67 kB / 230.9 MB, free: 13.36 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004308/0.2997, allocations: 238.8 kB / 231.2 MB, free: 13.12 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.2998, allocations: 45.7 kB / 231.2 MB, free: 13.07 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.3, allocations: 211.3 kB / 231.4 MB, free: 12.86 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.3003, allocations: 177.5 kB / 231.6 MB, free: 12.69 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/0.3004, allocations: 15.98 kB / 231.6 MB, free: 12.67 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3005, allocations: 330.8 kB / 231.9 MB, free: 12.34 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000709/0.3012, allocations: 249.1 kB / 232.2 MB, free: 12.09 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000767/0.302, allocations: 305.5 kB / 232.5 MB, free: 11.79 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006435/0.3027, allocations: 231.1 kB / 232.7 MB, free: 11.56 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3027, allocations: 0 / 232.7 MB, free: 11.56 MB / 202.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002372/0.3051, allocations: 0.7768 MB / 233.5 MB, free: 10.77 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3051, allocations: 4 kB / 233.5 MB, free: 10.77 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.3052, allocations: 4 kB / 233.5 MB, free: 10.76 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/0.3067, allocations: 460.5 kB / 233.9 MB, free: 10.31 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007138/0.3075, allocations: 87.88 kB / 234 MB, free: 10.22 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.3093, allocations: 0.9742 MB / 235 MB, free: 9.219 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.3101, allocations: 76.03 kB / 235.1 MB, free: 9.145 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.3103, allocations: 31.98 kB / 235.1 MB, free: 9.113 MB / 202.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 () * 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.0002272/0.3105, allocations: 132.9 kB / 235.2 MB, free: 8.977 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3107, allocations: 43.52 kB / 235.3 MB, free: 8.934 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.3109, allocations: 55.41 kB / 235.3 MB, free: 8.879 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.807e-06/0.3109, allocations: 4 kB / 235.3 MB, free: 8.875 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.3109, allocations: 3.953 kB / 235.3 MB, free: 8.871 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3109, allocations: 7.922 kB / 235.3 MB, free: 8.863 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004356/0.3153, allocations: 1.551 MB / 236.9 MB, free: 7.25 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.3153, allocations: 0 / 236.9 MB, free: 7.25 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006644/0.316, allocations: 75.91 kB / 237 MB, free: 7.176 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00139/0.3174, allocations: 446.5 kB / 237.4 MB, free: 6.738 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.25e-05/0.3175, allocations: 23.97 kB / 237.4 MB, free: 6.715 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.3192, allocations: 0.9238 MB / 238.3 MB, free: 5.766 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3192, allocations: 0 / 238.3 MB, free: 5.766 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.3223, allocations: 1.142 MB / 239.5 MB, free: 4.598 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004057/0.3228, allocations: 176.5 kB / 239.7 MB, free: 4.406 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.3229, allocations: 20.06 kB / 239.7 MB, free: 4.387 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007149/0.3237, allocations: 72 kB / 239.7 MB, free: 4.316 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003377/0.324, allocations: 100.1 kB / 239.8 MB, free: 4.219 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/0.3241, allocations: 35.97 kB / 239.9 MB, free: 4.184 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003451/0.3245, allocations: 195.1 kB / 240.1 MB, free: 3.988 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3245, allocations: 3.938 kB / 240.1 MB, free: 3.984 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008091/0.3253, allocations: 135.9 kB / 240.2 MB, free: 3.852 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: 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.003366/0.3287, allocations: 1.725 MB / 241.9 MB, free: 2.09 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.3304, allocations: 0.5561 MB / 242.5 MB, free: 1.535 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3305, allocations: 4.125 kB / 242.5 MB, free: 1.531 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.3314, allocations: 305.2 kB / 242.8 MB, free: 1.238 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.332, allocations: 37.8 kB / 242.8 MB, free: 1.199 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002808/0.3348, allocations: 0.8234 MB / 243.6 MB, free: 332 kB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1653/0.5002, allocations: 0.8076 MB / 244.5 MB, free: 54.42 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/0.5007, allocations: 111.4 kB / 244.6 MB, free: 54.42 MB / 202.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5007, allocations: 0 / 244.6 MB, free: 54.42 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.291/3.791, allocations: 7.287 MB / 251.9 MB, free: 53.11 MB / 202.7 MB