Running command: translateModel(ModelicaTest.FluxTubes.Shapes.Force,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|position.s|hollowCylinderAxialFlux.F_m|cuboidParallelFlux.F_m|cuboidOrthogonalFlux.F_m|hollowCylinderRadialFlux.F_m|leakageAroundPoles.F_m",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force") Notification: Performance of loadModel(ModelicaTest): time 2.143/2.143, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.949e-05, allocations: 2.656 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3207, allocations: 54.84 MB / 359.8 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.451, allocations: 84.99 MB / 444.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.4513, allocations: 68.83 kB / 444.8 MB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02233/0.4736, allocations: 5.524 MB / 450.3 MB, free: 6.434 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.378e-06/0.4736, allocations: 0 / 450.3 MB, free: 6.434 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.576e-05/0.4737, allocations: 8 kB / 450.3 MB, free: 6.426 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001228/0.4749, allocations: 0.6112 MB / 451 MB, free: 5.773 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.475, allocations: 8.031 kB / 451 MB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.4751, allocations: 39.53 kB / 451 MB, free: 5.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.4756, allocations: 287.5 kB / 451.3 MB, free: 5.406 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.4756, allocations: 28.78 kB / 451.3 MB, free: 5.379 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.4757, allocations: 36 kB / 451.3 MB, free: 5.344 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007602/0.4765, allocations: 310.2 kB / 451.7 MB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.4766, allocations: 3.953 kB / 451.7 MB, free: 5.031 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.319e-05/0.4766, allocations: 16 kB / 451.7 MB, free: 5.016 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.4766, allocations: 12 kB / 451.7 MB, free: 5.004 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.4774, allocations: 269.4 kB / 451.9 MB, free: 4.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.4804, allocations: 1.345 MB / 453.3 MB, free: 3.293 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.481, allocations: 256 kB / 453.5 MB, free: 3.031 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003368/0.4814, allocations: 157.2 kB / 453.7 MB, free: 2.875 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.51e-05/0.4815, allocations: 8.281 kB / 453.7 MB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.4815, allocations: 30.84 kB / 453.7 MB, free: 2.828 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.039e-06/0.4815, allocations: 0 / 453.7 MB, free: 2.828 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006945/0.4822, allocations: 259.8 kB / 454 MB, free: 2.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.4823, allocations: 51.41 kB / 454 MB, free: 2.508 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.4826, allocations: 239.1 kB / 454.3 MB, free: 2.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.4827, allocations: 29.7 kB / 454.3 MB, free: 2.234 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001793/0.4829, allocations: 250.4 kB / 454.5 MB, free: 1.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.483, allocations: 130.2 kB / 454.7 MB, free: 1.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.4831, allocations: 8 kB / 454.7 MB, free: 1.852 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.4833, allocations: 323.9 kB / 455 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000276/0.4836, allocations: 92.81 kB / 455.1 MB, free: 1.438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.4839, allocations: 154.7 kB / 455.2 MB, free: 1.262 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.4842, allocations: 113.5 kB / 455.3 MB, free: 1.152 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.422e-06/0.4843, allocations: 0 / 455.3 MB, free: 1.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007744/0.485, allocations: 315.3 kB / 455.7 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.4851, allocations: 4 kB / 455.7 MB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.173e-06/0.4851, allocations: 4 kB / 455.7 MB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.4851, allocations: 4 kB / 455.7 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006417/0.4858, allocations: 115.7 kB / 455.8 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.4858, allocations: 4.859 kB / 455.8 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.4861, allocations: 36.34 kB / 455.8 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.4862, allocations: 20.08 kB / 455.8 MB, free: 0.6562 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.4863, allocations: 124.9 kB / 456 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.575e-05/0.4864, allocations: 31.62 kB / 456 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007338/0.4872, allocations: 296.5 kB / 456.3 MB, free: 204 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.931e-06/0.4872, allocations: 4 kB / 456.3 MB, free: 200 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.4872, allocations: 3.953 kB / 456.3 MB, free: 196 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.057e-06/0.4872, allocations: 5.016 kB / 456.3 MB, free: 192 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006955/0.488, allocations: 401.2 kB / 456.7 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.485e-06/0.488, allocations: 4 kB / 456.7 MB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000568/0.4886, allocations: 87.88 kB / 456.8 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.4886, allocations: 0 / 456.8 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.963e-05/0.4886, allocations: 4 kB / 456.8 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.4886, allocations: 4 kB / 456.8 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.002e-06/0.4886, allocations: 3.984 kB / 456.8 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009929/0.4896, allocations: 486.7 kB / 457.3 MB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.4899, allocations: 132.7 kB / 457.4 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.93e-05/0.4899, allocations: 8 kB / 457.4 MB, free: 15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.4902, allocations: 17.39 kB / 457.4 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.576e-05/0.4903, allocations: 15.97 kB / 457.4 MB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.867e-05/0.4904, allocations: 8 kB / 457.4 MB, free: 14.96 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002672/0.4906, allocations: 187.1 kB / 457.6 MB, free: 14.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.4907, allocations: 3.938 kB / 457.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004914/0.4912, allocations: 99.73 kB / 457.7 MB, free: 14.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001508/0.4913, allocations: 107.2 kB / 457.8 MB, free: 14.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006319/0.492, allocations: 239.7 kB / 458.1 MB, free: 14.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.869e-06/0.492, allocations: 0 / 458.1 MB, free: 14.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.4923, allocations: 127.8 kB / 458.2 MB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.4926, allocations: 24.48 kB / 458.2 MB, free: 14.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.4941, allocations: 0.5718 MB / 458.8 MB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.4946, allocations: 0.7913 MB / 459.6 MB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.4948, allocations: 35.42 kB / 459.6 MB, free: 12.72 MB / 394.7 MB Notification: Performance of SimCode: time 1.56e-06/0.4948, allocations: 0 / 459.6 MB, free: 12.72 MB / 394.7 MB Notification: Performance of Templates: time 0.007551/0.5024, allocations: 3.736 MB / 463.3 MB, free: 8.996 MB / 394.7 MB "Error: Could not read variable cuboidOrthogonalFlux.A in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable cuboidOrthogonalFlux.A from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable cuboidOrthogonalFlux.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable cuboidOrthogonalFlux.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable cuboidParallelFlux.A in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable cuboidParallelFlux.A from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable cuboidParallelFlux.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable cuboidParallelFlux.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable hollowCylinderAxialFlux.A in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable hollowCylinderAxialFlux.A from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable hollowCylinderAxialFlux.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable hollowCylinderAxialFlux.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable hollowCylinderRadialFlux.A_avg in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable hollowCylinderRadialFlux.A_avg from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable hollowCylinderRadialFlux.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable hollowCylinderRadialFlux.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable leakageAroundPoles.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable leakageAroundPoles.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable position.af in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.af from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable position.bf in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.bf from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable position.s_support in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.s_support from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! Error: Could not read variable position.w_crit in file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat. Warning: Get data of variable position.w_crit from file ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.Force_res.mat failed! " Variables in the reference:time,position.s,hollowCylinderAxialFlux.F_m,cuboidParallelFlux.F_m,cuboidOrthogonalFlux.F_m,hollowCylinderRadialFlux.F_m,leakageAroundPoles.F_m Variables in the result:constantSource.Phi,constantSource.V_m,constantSource.port_n.Phi,constantSource.port_n.V_m,constantSource.port_p.Phi,constantSource.port_p.V_m,cuboidOrthogonalFlux.B,cuboidOrthogonalFlux.F_m,cuboidOrthogonalFlux.G_m,cuboidOrthogonalFlux.Phi,cuboidOrthogonalFlux.R_m,cuboidOrthogonalFlux.V_m,cuboidOrthogonalFlux.a,cuboidOrthogonalFlux.b,cuboidOrthogonalFlux.dGmBydx,cuboidOrthogonalFlux.dlBydx,cuboidOrthogonalFlux.flange.f,cuboidOrthogonalFlux.flange.s,cuboidOrthogonalFlux.l,cuboidOrthogonalFlux.mu_r,cuboidOrthogonalFlux.port_n.Phi,cuboidOrthogonalFlux.port_n.V_m,cuboidOrthogonalFlux.port_p.Phi,cuboidOrthogonalFlux.port_p.V_m,cuboidOrthogonalFlux.s,cuboidParallelFlux.B,cuboidParallelFlux.F_m,cuboidParallelFlux.G_m,cuboidParallelFlux.Phi,cuboidParallelFlux.R_m,cuboidParallelFlux.V_m,cuboidParallelFlux.a,cuboidParallelFlux.b,cuboidParallelFlux.dGmBydx,cuboidParallelFlux.dlBydx,cuboidParallelFlux.flange.f,cuboidParallelFlux.flange.s,cuboidParallelFlux.l,cuboidParallelFlux.mu_r,cuboidParallelFlux.port_n.Phi,cuboidParallelFlux.port_n.V_m,cuboidParallelFlux.port_p.Phi,cuboidParallelFlux.port_p.V_m,cuboidParallelFlux.s,ground.port.Phi,ground.port.V_m,hollowCylinderAxialFlux.B,hollowCylinderAxialFlux.F_m,hollowCylinderAxialFlux.G_m,hollowCylinderAxialFlux.Phi,hollowCylinderAxialFlux.R_m,hollowCylinderAxialFlux.V_m,hollowCylinderAxialFlux.dGmBydx,hollowCylinderAxialFlux.dlBydx,hollowCylinderAxialFlux.flange.f,hollowCylinderAxialFlux.flange.s,hollowCylinderAxialFlux.l,hollowCylinderAxialFlux.mu_r,hollowCylinderAxialFlux.port_n.Phi,hollowCylinderAxialFlux.port_n.V_m,hollowCylinderAxialFlux.port_p.Phi,hollowCylinderAxialFlux.port_p.V_m,hollowCylinderAxialFlux.r_i,hollowCylinderAxialFlux.r_o,hollowCylinderAxialFlux.s,hollowCylinderRadialFlux.B_avg,hollowCylinderRadialFlux.F_m,hollowCylinderRadialFlux.G_m,hollowCylinderRadialFlux.Phi,hollowCylinderRadialFlux.R_m,hollowCylinderRadialFlux.V_m,hollowCylinderRadialFlux.dGmBydx,hollowCylinderRadialFlux.dlBydx,hollowCylinderRadialFlux.flange.f,hollowCylinderRadialFlux.flange.s,hollowCylinderRadialFlux.l,hollowCylinderRadialFlux.mu_r,hollowCylinderRadialFlux.port_n.Phi,hollowCylinderRadialFlux.port_n.V_m,hollowCylinderRadialFlux.port_p.Phi,hollowCylinderRadialFlux.port_p.V_m,hollowCylinderRadialFlux.r_i,hollowCylinderRadialFlux.r_o,hollowCylinderRadialFlux.s,leakageAroundPoles.F_m,leakageAroundPoles.G_m,leakageAroundPoles.Phi,leakageAroundPoles.R_m,leakageAroundPoles.V_m,leakageAroundPoles.dGmBydx,leakageAroundPoles.dlBydx,leakageAroundPoles.flange.f,leakageAroundPoles.flange.s,leakageAroundPoles.l,leakageAroundPoles.mu_r,leakageAroundPoles.port_n.Phi,leakageAroundPoles.port_n.V_m,leakageAroundPoles.port_p.Phi,leakageAroundPoles.port_p.V_m,leakageAroundPoles.r,leakageAroundPoles.s,leakageAroundPoles.w,position.a,der(position.s),der(position.v),position.exact,position.f_crit,position.flange.f,position.flange.s,position.s,position.s_ref,position.v,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time