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.026/1.026, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002899/0.0002896, allocations: 4 kB / 158.4 MB, free: 15.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05669/0.05701, allocations: 25.17 MB / 183.6 MB, free: 5.863 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2197/0.2768, allocations: 35.82 MB / 219.4 MB, free: 5.781 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.277, allocations: 63.69 kB / 219.5 MB, free: 5.773 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03665/0.3137, allocations: 6.666 MB / 226.1 MB, free: 3.277 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3138, allocations: 0 / 226.1 MB, free: 3.277 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.025e-05/0.3138, allocations: 3.969 kB / 226.1 MB, free: 3.277 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001498/0.3153, allocations: 0.5605 MB / 226.7 MB, free: 2.797 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.3154, allocations: 11.44 kB / 226.7 MB, free: 2.797 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001227/0.3155, allocations: 60.75 kB / 226.8 MB, free: 2.75 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.3157, allocations: 30.75 kB / 226.8 MB, free: 2.734 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.3161, allocations: 246.4 kB / 227 MB, free: 2.496 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/0.3162, allocations: 22.69 kB / 227.1 MB, free: 2.492 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.674e-05/0.3163, allocations: 26.78 kB / 227.1 MB, free: 2.492 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3175, allocations: 346.3 kB / 227.4 MB, free: 2.367 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/0.3176, allocations: 7.891 kB / 227.4 MB, free: 2.359 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.3177, allocations: 11.22 kB / 227.4 MB, free: 2.359 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.419e-05/0.3177, allocations: 7.688 kB / 227.5 MB, free: 2.359 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3191, allocations: 290.1 kB / 227.7 MB, free: 2.309 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.3219, allocations: 0.857 MB / 228.6 MB, free: 1.816 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.3234, allocations: 388.3 kB / 229 MB, free: 1.73 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.647e-05/0.3235, allocations: 11.41 kB / 229 MB, free: 1.727 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.3236, allocations: 35.53 kB / 229 MB, free: 1.688 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.827e-06/0.3236, allocations: 0 / 229 MB, free: 1.688 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.008065/0.3317, allocations: 1.91 MB / 230.9 MB, free: 108 kB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3318, allocations: 85.05 kB / 231 MB, free: 8 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004102/0.3322, allocations: 185.4 kB / 231.2 MB, free: 15.84 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.021e-05/0.3323, allocations: 41.56 kB / 231.2 MB, free: 15.8 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3324, allocations: 186.7 kB / 231.4 MB, free: 15.63 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002308/0.3327, allocations: 144.3 kB / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.242e-05/0.3328, allocations: 3.875 kB / 231.6 MB, free: 15.51 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.333, allocations: 330.4 kB / 231.9 MB, free: 15.19 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009078/0.3339, allocations: 186.5 kB / 232.1 MB, free: 15.05 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00095/0.3349, allocations: 225.2 kB / 232.3 MB, free: 14.88 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000857/0.3357, allocations: 185.2 kB / 232.5 MB, free: 14.75 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3358, allocations: 4 kB / 232.5 MB, free: 14.75 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.002394/0.3382, allocations: 0.5424 MB / 233 MB, free: 14.34 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.3382, allocations: 4 kB / 233 MB, free: 14.33 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3383, allocations: 0 / 233 MB, free: 14.33 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009749/0.3393, allocations: 162.5 kB / 233.2 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/0.34, allocations: 63.89 kB / 233.2 MB, free: 14.14 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006008/0.346, allocations: 2.324 MB / 235.6 MB, free: 12.1 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006142/0.3467, allocations: 31.81 kB / 235.6 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.3468, allocations: 19.25 kB / 235.6 MB, free: 12.06 MB / 186.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 () * Number of clocked 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.0003907/0.3472, allocations: 163.2 kB / 235.8 MB, free: 11.91 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.3473, allocations: 35.52 kB / 235.8 MB, free: 11.88 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001459/0.3475, allocations: 39.55 kB / 235.8 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.3475, allocations: 7.984 kB / 235.9 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.3476, allocations: 3.984 kB / 235.9 MB, free: 11.85 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.3476, allocations: 0 / 235.9 MB, free: 11.85 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.3509, allocations: 1.132 MB / 237 MB, free: 10.91 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.351, allocations: 0 / 237 MB, free: 10.91 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.3515, allocations: 67.58 kB / 237.1 MB, free: 10.85 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006775/0.3522, allocations: 146.5 kB / 237.2 MB, free: 10.74 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.792e-05/0.3523, allocations: 19.3 kB / 237.2 MB, free: 10.73 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004158/0.3565, allocations: 2.238 MB / 239.5 MB, free: 8.715 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.3565, allocations: 0 / 239.5 MB, free: 8.715 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.3591, allocations: 0.8668 MB / 240.3 MB, free: 8.035 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.3594, allocations: 145 kB / 240.5 MB, free: 7.891 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.728e-05/0.3595, allocations: 18.83 kB / 240.5 MB, free: 7.879 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.3599, allocations: 27.36 kB / 240.5 MB, free: 7.855 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.3602, allocations: 69.86 kB / 240.6 MB, free: 7.797 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/0.3602, allocations: 19.44 kB / 240.6 MB, free: 7.781 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002109/0.3605, allocations: 149.5 kB / 240.7 MB, free: 7.656 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3605, allocations: 0 / 240.7 MB, free: 7.656 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008451/0.3613, allocations: 121.9 kB / 240.9 MB, free: 7.551 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * 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.003052/0.3644, allocations: 1.514 MB / 242.4 MB, free: 6.215 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.3663, allocations: 0.5878 MB / 243 MB, free: 5.734 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.3663, allocations: 3.938 kB / 243 MB, free: 5.73 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3673, allocations: 406.6 kB / 243.4 MB, free: 5.395 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.3678, allocations: 26.3 kB / 243.4 MB, free: 5.379 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005379/0.3732, allocations: 2.275 MB / 245.7 MB, free: 3.41 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.3737, allocations: 0.7803 MB / 246.4 MB, free: 2.602 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.374, allocations: 97.33 kB / 246.5 MB, free: 2.547 MB / 186.7 MB Notification: Performance of SimCode: time 8.62e-07/0.374, allocations: 0 / 246.5 MB, free: 2.547 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.155/3.529, allocations: 5.798 MB / 252.3 MB, free: 12.74 MB / 202.7 MB