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/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.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.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.089e-05/2.104e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05943/0.0595, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.2758, allocations: 35.05 MB / 208.4 MB, free: 4.953 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.2761, allocations: 61.89 kB / 208.5 MB, free: 4.953 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03092/0.307, allocations: 6.61 MB / 215.1 MB, free: 4.074 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3071, allocations: 0 / 215.1 MB, free: 4.074 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.3071, allocations: 7.203 kB / 215.1 MB, free: 4.074 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.001229/0.3083, allocations: 0.5336 MB / 215.7 MB, free: 3.617 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.3084, allocations: 9.781 kB / 215.7 MB, free: 3.617 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.3086, allocations: 36.41 kB / 215.7 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.3089, allocations: 244.6 kB / 215.9 MB, free: 3.359 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.309, allocations: 9.562 kB / 215.9 MB, free: 3.359 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.891e-05/0.309, allocations: 19.5 kB / 216 MB, free: 3.359 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006343/0.3097, allocations: 236.1 kB / 216.2 MB, free: 3.336 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.3103, allocations: 280.4 kB / 216.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.3104, allocations: 3.875 kB / 216.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.3104, allocations: 0 / 216.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-05/0.3105, allocations: 7.75 kB / 216.5 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.3126, allocations: 0.7932 MB / 217.3 MB, free: 2.777 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007628/0.3134, allocations: 336.3 kB / 217.6 MB, free: 2.715 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003598/0.3138, allocations: 177.6 kB / 217.8 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.1e-05/0.3139, allocations: 3.75 kB / 217.8 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.3139, allocations: 35.09 kB / 217.8 MB, free: 2.648 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.798e-06/0.3139, allocations: 0 / 217.8 MB, free: 2.648 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.003642/0.3176, allocations: 1.348 MB / 219.2 MB, free: 1.984 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.3177, allocations: 80.98 kB / 219.2 MB, free: 1.891 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002141/0.3179, allocations: 167.8 kB / 219.4 MB, free: 1.781 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.557e-05/0.318, allocations: 25.7 kB / 219.4 MB, free: 1.75 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.048e-05/0.3181, allocations: 202 kB / 219.6 MB, free: 1.574 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.3182, allocations: 136.3 kB / 219.8 MB, free: 1.473 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.3183, allocations: 0 / 219.8 MB, free: 1.473 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.299e-05/0.3184, allocations: 334.3 kB / 220.1 MB, free: 1.148 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.3187, allocations: 147.9 kB / 220.2 MB, free: 1.137 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.3191, allocations: 189.2 kB / 220.4 MB, free: 1.094 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.3195, allocations: 144.2 kB / 220.6 MB, free: 1.074 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3195, allocations: 0 / 220.6 MB, free: 1.074 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001137/0.3207, allocations: 466 kB / 221 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.3208, allocations: 3.625 kB / 221 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3208, allocations: 3.969 kB / 221 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007223/0.3215, allocations: 159.1 kB / 221.2 MB, free: 0.9375 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.3221, allocations: 65.89 kB / 221.2 MB, free: 0.9219 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.3259, allocations: 2.183 MB / 223.4 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004721/0.3264, allocations: 27.34 kB / 223.4 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.362e-05/0.3265, allocations: 19.06 kB / 223.5 MB, free: 15.46 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 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.0002614/0.3268, allocations: 115.4 kB / 223.6 MB, free: 15.34 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001426/0.3282, allocations: 458.8 kB / 224 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.3284, allocations: 34.36 kB / 224.1 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.3285, allocations: 33.41 kB / 224.1 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.3285, allocations: 3.875 kB / 224.1 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.3285, allocations: 4 kB / 224.1 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.3285, allocations: 11.77 kB / 224.1 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/0.331, allocations: 1.007 MB / 225.1 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.331, allocations: 0 / 225.1 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000569/0.3316, allocations: 55.97 kB / 225.2 MB, free: 14.71 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006182/0.3322, allocations: 152.9 kB / 225.3 MB, free: 14.67 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.653e-05/0.3323, allocations: 3.75 kB / 225.3 MB, free: 14.67 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/0.3359, allocations: 2.09 MB / 227.4 MB, free: 13.22 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/0.336, allocations: 7.891 kB / 227.4 MB, free: 13.21 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.3377, allocations: 0.7551 MB / 228.2 MB, free: 12.97 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.338, allocations: 143.1 kB / 228.3 MB, free: 12.85 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.3381, allocations: 3.969 kB / 228.3 MB, free: 12.85 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004362/0.3385, allocations: 35.45 kB / 228.4 MB, free: 12.84 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.3388, allocations: 69.53 kB / 228.4 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.3389, allocations: 23.48 kB / 228.5 MB, free: 12.8 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001559/0.3391, allocations: 120.1 kB / 228.6 MB, free: 12.72 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.3391, allocations: 0 / 228.6 MB, free: 12.72 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008264/0.3399, allocations: 101 kB / 228.7 MB, free: 12.71 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) * 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.002389/0.3423, allocations: 1.393 MB / 230.1 MB, free: 11.84 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.3436, allocations: 0.503 MB / 230.6 MB, free: 11.69 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3437, allocations: 0 / 230.6 MB, free: 11.69 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007505/0.3444, allocations: 356.9 kB / 230.9 MB, free: 11.54 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.3449, allocations: 23.2 kB / 230.9 MB, free: 11.53 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.3471, allocations: 0.6161 MB / 231.5 MB, free: 11.15 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.3475, allocations: 0.7775 MB / 232.3 MB, free: 10.41 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.3478, allocations: 90.02 kB / 232.4 MB, free: 10.39 MB / 186.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3478, allocations: 0 / 232.4 MB, free: 10.39 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.477/3.825, allocations: 5.738 MB / 238.2 MB, free: 7.016 MB / 186.7 MB