Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.314/1.314, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.651e-05/2.648e-05, allocations: 4 kB / 154.5 MB, free: 2.836 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05452/0.05457, allocations: 25.18 MB / 179.7 MB, free: 9.621 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002643/0.05727, allocations: 1.555 MB / 181.2 MB, free: 8.059 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.05888, allocations: 0.6249 MB / 181.9 MB, free: 7.43 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.05905, allocations: 8 kB / 181.9 MB, free: 7.422 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.05922, allocations: 35.7 kB / 181.9 MB, free: 7.387 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.05944, allocations: 67.78 kB / 182 MB, free: 7.32 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.05998, allocations: 111.8 kB / 182.1 MB, free: 7.211 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.06034, allocations: 171.6 kB / 182.2 MB, free: 7.043 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.06052, allocations: 48.39 kB / 182.3 MB, free: 6.996 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.0608, allocations: 111.7 kB / 182.4 MB, free: 6.887 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.06109, allocations: 135.6 kB / 182.5 MB, free: 6.754 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002729/0.06138, allocations: 67.89 kB / 182.6 MB, free: 6.688 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 6.736e-05/0.06146, allocations: 16 kB / 182.6 MB, free: 6.672 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 9.841e-05/0.06157, allocations: 55.81 kB / 182.7 MB, free: 6.617 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 7.924e-05/0.06166, allocations: 20 kB / 182.7 MB, free: 6.598 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004881/0.06216, allocations: 271.6 kB / 183 MB, free: 6.332 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.06218, allocations: 8 kB / 183 MB, free: 6.324 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.06219, allocations: 0 / 183 MB, free: 6.324 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.732e-05/0.06222, allocations: 0 / 183 MB, free: 6.324 MB / 154.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.001419/0.06365, allocations: 0.5304 MB / 183.5 MB, free: 5.746 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.06371, allocations: 15.97 kB / 183.5 MB, free: 5.73 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.06383, allocations: 23.72 kB / 183.5 MB, free: 5.707 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.06425, allocations: 250.5 kB / 183.8 MB, free: 5.422 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/0.06431, allocations: 20.56 kB / 183.8 MB, free: 5.402 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/0.06441, allocations: 28 kB / 183.8 MB, free: 5.375 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.06544, allocations: 331.6 kB / 184.2 MB, free: 5.039 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.06549, allocations: 7.953 kB / 184.2 MB, free: 5.031 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.06555, allocations: 8 kB / 184.2 MB, free: 5.023 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.915e-05/0.06562, allocations: 15.98 kB / 184.2 MB, free: 5.008 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.06673, allocations: 290.1 kB / 184.5 MB, free: 4.723 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.06927, allocations: 0.8713 MB / 185.3 MB, free: 3.793 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00111/0.07043, allocations: 346.5 kB / 185.7 MB, free: 3.445 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.671e-05/0.07054, allocations: 7.984 kB / 185.7 MB, free: 3.438 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.07059, allocations: 39.09 kB / 185.7 MB, free: 3.391 MB / 154.7 MB Notification: Performance of pre-optimization done (n=36): time 2.605e-06/0.07061, allocations: 4 kB / 185.7 MB, free: 3.387 MB / 154.7 MB Notification: Performance of matching and sorting (n=42): time 0.006564/0.07718, allocations: 1.835 MB / 187.6 MB, free: 1.438 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.07729, allocations: 92.88 kB / 187.7 MB, free: 1.328 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.07758, allocations: 194.5 kB / 187.8 MB, free: 1.133 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.07765, allocations: 37.7 kB / 187.9 MB, free: 1.09 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.07779, allocations: 191.2 kB / 188.1 MB, free: 0.9023 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.07797, allocations: 137.9 kB / 188.2 MB, free: 0.7656 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.07802, allocations: 12 kB / 188.2 MB, free: 0.7539 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.07818, allocations: 330.8 kB / 188.5 MB, free: 432 kB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.07882, allocations: 172.7 kB / 188.7 MB, free: 256 kB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006437/0.07947, allocations: 223.7 kB / 188.9 MB, free: 24 kB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.0801, allocations: 156 kB / 189.1 MB, free: 15.87 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.08012, allocations: 3.938 kB / 189.1 MB, free: 15.87 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001623/0.08175, allocations: 0.5136 MB / 189.6 MB, free: 15.34 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.08179, allocations: 7.984 kB / 189.6 MB, free: 15.34 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.08181, allocations: 0 / 189.6 MB, free: 15.34 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007593/0.08258, allocations: 164.7 kB / 189.8 MB, free: 15.17 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.08309, allocations: 59.95 kB / 189.8 MB, free: 15.11 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00461/0.08771, allocations: 2.327 MB / 192.1 MB, free: 12.65 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.08819, allocations: 36 kB / 192.2 MB, free: 12.61 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.346e-05/0.08827, allocations: 20 kB / 192.2 MB, free: 12.59 MB / 170.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.0002726/0.08856, allocations: 154.4 kB / 192.4 MB, free: 12.43 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.88e-05/0.08866, allocations: 27.67 kB / 192.4 MB, free: 12.41 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.08878, allocations: 39 kB / 192.4 MB, free: 12.37 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.0888, allocations: 7.938 kB / 192.4 MB, free: 12.36 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.08881, allocations: 0 / 192.4 MB, free: 12.36 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.08883, allocations: 3.984 kB / 192.4 MB, free: 12.36 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002903/0.09174, allocations: 1.094 MB / 193.5 MB, free: 11.2 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.09178, allocations: 0 / 193.5 MB, free: 11.2 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/0.09233, allocations: 59.89 kB / 193.6 MB, free: 11.14 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006818/0.09303, allocations: 156.7 kB / 193.7 MB, free: 10.99 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.09309, allocations: 11.98 kB / 193.7 MB, free: 10.98 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004317/0.09742, allocations: 2.218 MB / 196 MB, free: 8.617 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.09746, allocations: 3.938 kB / 196 MB, free: 8.613 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.09988, allocations: 0.8351 MB / 196.8 MB, free: 7.75 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.1001, allocations: 128.8 kB / 196.9 MB, free: 7.605 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.683e-05/0.1002, allocations: 11.95 kB / 196.9 MB, free: 7.594 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.1007, allocations: 40.03 kB / 197 MB, free: 7.555 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.1009, allocations: 63.88 kB / 197 MB, free: 7.492 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.101, allocations: 16 kB / 197.1 MB, free: 7.477 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1012, allocations: 156.5 kB / 197.2 MB, free: 7.324 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1012, allocations: 0 / 197.2 MB, free: 7.324 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007054/0.1019, allocations: 112 kB / 197.3 MB, free: 7.215 MB / 170.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.0003041/0.1022, allocations: 135.1 kB / 197.5 MB, free: 7.074 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.1041, allocations: 0.5982 MB / 198 MB, free: 6.461 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1041, allocations: 0 / 198 MB, free: 6.461 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.1052, allocations: 406.2 kB / 198.4 MB, free: 6.051 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004268/0.1056, allocations: 32 kB / 198.5 MB, free: 6.02 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.1078, allocations: 0.8644 MB / 199.3 MB, free: 5.121 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.1083, allocations: 0.7803 MB / 200.1 MB, free: 4.312 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.1085, allocations: 31.42 kB / 200.2 MB, free: 4.281 MB / 170.7 MB Notification: Performance of SimCode: time 1.173e-06/0.1085, allocations: 0 / 200.2 MB, free: 4.281 MB / 170.7 MB Notification: Performance of Templates: time 0.1499/0.2584, allocations: 4.702 MB / 204.9 MB, free: 23.24 MB / 170.7 MB