Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.1 MB, free: 9.945 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.133e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4201/0.4201, allocations: 54.86 MB / 362.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00286/0.423, allocations: 1.487 MB / 364.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.4241, allocations: 450.2 kB / 364.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.4243, allocations: 3.781 kB / 364.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.972e-05/0.4244, allocations: 14.12 kB / 364.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.4246, allocations: 40.94 kB / 364.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.4247, allocations: 24.22 kB / 364.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.425, allocations: 76.61 kB / 364.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.4251, allocations: 41.09 kB / 365 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.4253, allocations: 45.62 kB / 365 MB, free: 10.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.4254, allocations: 45.83 kB / 365.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.24e-05/0.4255, allocations: 5.125 kB / 365.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.4255, allocations: 4.062 kB / 365.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.162e-05/0.4256, allocations: 20.2 kB / 365.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.558e-05/0.4256, allocations: 12.53 kB / 365.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.4258, allocations: 114.1 kB / 365.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.4258, allocations: 5.031 kB / 365.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4258, allocations: 4 kB / 365.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.4259, allocations: 0 / 365.2 MB, free: 10.16 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007484/0.4266, allocations: 403.2 kB / 365.6 MB, free: 9.762 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.4267, allocations: 12.03 kB / 365.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.416e-05/0.4268, allocations: 16.06 kB / 365.6 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.4271, allocations: 206.4 kB / 365.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.4271, allocations: 9.438 kB / 365.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.4271, allocations: 16.88 kB / 365.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.4276, allocations: 130.4 kB / 366 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.4276, allocations: 1.125 kB / 366 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.4276, allocations: 9.516 kB / 366 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.4277, allocations: 2.938 kB / 366 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.428, allocations: 86.84 kB / 366.1 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.4291, allocations: 471.7 kB / 366.6 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.4295, allocations: 125.7 kB / 366.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.4295, allocations: 1.031 kB / 366.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.4295, allocations: 31.94 kB / 366.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.515e-06/0.4295, allocations: 0 / 366.7 MB, free: 8.836 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.002241/0.4318, allocations: 0.818 MB / 367.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.4319, allocations: 52.84 kB / 367.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.4321, allocations: 132.5 kB / 367.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.4321, allocations: 26.77 kB / 367.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.4322, allocations: 178.8 kB / 367.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.4e-05/0.4323, allocations: 62.55 kB / 368 MB, free: 7.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.4323, allocations: 5.344 kB / 368 MB, free: 7.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4325, allocations: 323.8 kB / 368.3 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.4327, allocations: 41.58 kB / 368.3 MB, free: 7.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.4329, allocations: 79.12 kB / 368.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.4331, allocations: 64.84 kB / 368.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4331, allocations: 0.9688 kB / 368.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006395/0.4338, allocations: 204.8 kB / 368.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.4338, allocations: 5.219 kB / 368.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.4338, allocations: 1.094 kB / 368.7 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000251/0.4341, allocations: 41.83 kB / 368.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.4344, allocations: 36.27 kB / 368.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002087/0.4365, allocations: 1.582 MB / 370.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.4367, allocations: 3.5 kB / 370.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.4368, allocations: 12.7 kB / 370.4 MB, free: 5.578 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.437, allocations: 133.4 kB / 370.5 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.437, allocations: 9.594 kB / 370.5 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.346e-05/0.4371, allocations: 23.83 kB / 370.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.4371, allocations: 2.062 kB / 370.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.4371, allocations: 1.938 kB / 370.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.4371, allocations: 0 / 370.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.4384, allocations: 0.5565 MB / 371.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.4385, allocations: 9.266 kB / 371.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.4388, allocations: 31.52 kB / 371.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001967/0.439, allocations: 39.89 kB / 371.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.4391, allocations: 2.031 kB / 371.2 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.4407, allocations: 1.381 MB / 372.5 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4408, allocations: 0 / 372.5 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000891/0.4417, allocations: 368.1 kB / 372.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.036e-05/0.4418, allocations: 92.94 kB / 373 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.4418, allocations: 0 / 373 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.442, allocations: 12 kB / 373 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.4421, allocations: 19.92 kB / 373 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.4421, allocations: 4 kB / 373 MB, free: 2.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001251/0.4423, allocations: 112.8 kB / 373.1 MB, free: 2.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4423, allocations: 0 / 373.1 MB, free: 2.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000479/0.4428, allocations: 40.06 kB / 373.2 MB, free: 2.801 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001561/0.4429, allocations: 99.25 kB / 373.3 MB, free: 2.695 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007797/0.4437, allocations: 261.8 kB / 373.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4438, allocations: 0 / 373.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.4442, allocations: 200.3 kB / 373.7 MB, free: 2.223 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.4446, allocations: 16.2 kB / 373.7 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.4459, allocations: 0.5389 MB / 374.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.4463, allocations: 0.7246 MB / 375 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.587e-05/0.4464, allocations: 15.44 kB / 375 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4464, allocations: 4 kB / 375 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of Templates: time 0.00618/0.4526, allocations: 2.326 MB / 377.3 MB, free: 14.54 MB / 314.7 MB