Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.42e-05, allocations: 4 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08571, allocations: 38.77 MB / 266.9 MB, free: 1.121 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00319/0.08896, allocations: 1.832 MB / 268.7 MB, free: 15.26 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.09111, allocations: 0.8398 MB / 269.6 MB, free: 14.42 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.09139, allocations: 7.938 kB / 269.6 MB, free: 14.41 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.09156, allocations: 31.77 kB / 269.6 MB, free: 14.38 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005197/0.09209, allocations: 115.6 kB / 269.7 MB, free: 14.27 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.09255, allocations: 135.8 kB / 269.8 MB, free: 14.14 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003779/0.09294, allocations: 183.6 kB / 270 MB, free: 13.96 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.09309, allocations: 35.95 kB / 270.1 MB, free: 13.92 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.09335, allocations: 143.7 kB / 270.2 MB, free: 13.78 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.09372, allocations: 175.6 kB / 270.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002841/0.09402, allocations: 75.94 kB / 270.4 MB, free: 13.54 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.625e-05/0.09412, allocations: 28 kB / 270.5 MB, free: 13.51 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.09429, allocations: 79.73 kB / 270.6 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.527e-05/0.0944, allocations: 24 kB / 270.6 MB, free: 13.41 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00058/0.09499, allocations: 323.4 kB / 270.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.09501, allocations: 0 / 270.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.09503, allocations: 4 kB / 270.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.09505, allocations: 0 / 270.9 MB, free: 13.09 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001485/0.09654, allocations: 0.5499 MB / 271.4 MB, free: 12.49 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.09661, allocations: 8.031 kB / 271.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004953/0.09711, allocations: 55.59 kB / 271.5 MB, free: 12.43 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.09779, allocations: 306.4 kB / 271.8 MB, free: 12.09 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.09799, allocations: 91.91 kB / 271.9 MB, free: 11.98 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-05/0.09809, allocations: 24 kB / 271.9 MB, free: 11.96 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.09927, allocations: 373.3 kB / 272.3 MB, free: 11.58 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.239e-05/0.09933, allocations: 7.938 kB / 272.3 MB, free: 11.57 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.732e-05/0.09941, allocations: 12 kB / 272.3 MB, free: 11.56 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.09943, allocations: 8 kB / 272.3 MB, free: 11.55 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.1009, allocations: 417.9 kB / 272.7 MB, free: 11.14 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.1043, allocations: 1.257 MB / 274 MB, free: 9.816 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.1056, allocations: 370.2 kB / 274.3 MB, free: 9.449 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.1057, allocations: 4 kB / 274.3 MB, free: 9.445 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.1057, allocations: 38.56 kB / 274.4 MB, free: 9.398 MB / 234.7 MB Notification: Performance of pre-optimization done (n=43): time 3.877e-06/0.1058, allocations: 0 / 274.4 MB, free: 9.398 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.00908/0.1148, allocations: 1.941 MB / 276.3 MB, free: 7.344 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.914e-05/0.115, allocations: 88.86 kB / 276.4 MB, free: 7.238 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005131/0.1155, allocations: 213.6 kB / 276.6 MB, free: 7.023 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.1157, allocations: 33.7 kB / 276.6 MB, free: 6.984 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.1159, allocations: 207 kB / 276.9 MB, free: 6.781 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002384/0.1161, allocations: 146 kB / 277 MB, free: 6.637 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.1162, allocations: 12 kB / 277 MB, free: 6.625 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1164, allocations: 322.8 kB / 277.3 MB, free: 6.301 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007749/0.1171, allocations: 172.8 kB / 277.5 MB, free: 6.133 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009469/0.1181, allocations: 225.9 kB / 277.7 MB, free: 5.891 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000698/0.1189, allocations: 168.7 kB / 277.9 MB, free: 5.73 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1189, allocations: 4.031 kB / 277.9 MB, free: 5.727 MB / 234.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001966/0.1209, allocations: 0.5435 MB / 278.4 MB, free: 5.172 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.291e-05/0.121, allocations: 16.08 kB / 278.4 MB, free: 5.156 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.121, allocations: 0 / 278.4 MB, free: 5.156 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.1223, allocations: 248.6 kB / 278.7 MB, free: 4.91 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.1228, allocations: 51.91 kB / 278.7 MB, free: 4.859 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.1294, allocations: 2.704 MB / 281.4 MB, free: 2.016 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.13, allocations: 39.98 kB / 281.5 MB, free: 1.977 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.734e-05/0.13, allocations: 20 kB / 281.5 MB, free: 1.957 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002714/0.1303, allocations: 149.8 kB / 281.6 MB, free: 1.801 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.838e-05/0.1304, allocations: 31.64 kB / 281.7 MB, free: 1.77 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.1306, allocations: 39 kB / 281.7 MB, free: 1.734 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.1306, allocations: 4 kB / 281.7 MB, free: 1.73 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1306, allocations: 4 kB / 281.7 MB, free: 1.727 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.1307, allocations: 7.984 kB / 281.7 MB, free: 1.719 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.1338, allocations: 1.096 MB / 282.8 MB, free: 0.5625 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.1339, allocations: 4 kB / 282.8 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.1344, allocations: 43.91 kB / 282.9 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.1356, allocations: 236.9 kB / 283.1 MB, free: 288 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.1357, allocations: 19.94 kB / 283.1 MB, free: 268 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006231/0.1419, allocations: 2.646 MB / 285.8 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.142, allocations: 3.938 kB / 285.8 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002734/0.1447, allocations: 0.8298 MB / 286.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.1451, allocations: 136.8 kB / 286.7 MB, free: 12.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.63e-05/0.1452, allocations: 12 kB / 286.7 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.1457, allocations: 28.05 kB / 286.8 MB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.1459, allocations: 71.86 kB / 286.8 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.997e-05/0.146, allocations: 19.92 kB / 286.9 MB, free: 12.36 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003503/0.1464, allocations: 180.3 kB / 287 MB, free: 12.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.015e-06/0.1464, allocations: 0 / 287 MB, free: 12.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008837/0.1473, allocations: 139.9 kB / 287.2 MB, free: 12.04 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.0003285/0.1476, allocations: 151.1 kB / 287.3 MB, free: 11.89 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.1498, allocations: 0.6252 MB / 287.9 MB, free: 11.25 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.1499, allocations: 0 / 287.9 MB, free: 11.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.1512, allocations: 437.4 kB / 288.4 MB, free: 10.8 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004409/0.1516, allocations: 32.06 kB / 288.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.1538, allocations: 0.8405 MB / 289.2 MB, free: 9.898 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.1543, allocations: 0.7881 MB / 290 MB, free: 9.082 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.1545, allocations: 31.36 kB / 290.1 MB, free: 9.051 MB / 250.7 MB Notification: Performance of SimCode: time 1.262e-06/0.1545, allocations: 0 / 290.1 MB, free: 9.051 MB / 250.7 MB Notification: Performance of Templates: time 0.01341/0.168, allocations: 5.045 MB / 295.1 MB, free: 3.996 MB / 250.7 MB