Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cActuator.armature.stopper_xMax.v_rel|cActuator.l.i|cActuator.x|pmActuator.armature.stopper_xMax.v_rel|pmActuator.coil.Phi|pmActuator.coil.i|pmActuator.g_mLeak2.port_p.Phi|pmActuator.g_ma.port_p.Phi|pmActuator.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke") Notification: Performance of loadModel(Modelica): time 1.698/1.698, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.396e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0837/0.08377, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008498/0.09232, allocations: 4.874 MB / 271.8 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004257/0.09664, allocations: 1.629 MB / 273.4 MB, free: 10.6 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.09773, allocations: 31.94 kB / 273.4 MB, free: 10.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005868/0.09835, allocations: 150.9 kB / 273.6 MB, free: 10.42 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.1, allocations: 370.8 kB / 273.9 MB, free: 10.05 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009575/0.101, allocations: 207.6 kB / 274.1 MB, free: 9.852 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001978/0.103, allocations: 0.6982 MB / 274.8 MB, free: 9.148 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006145/0.1037, allocations: 254.9 kB / 275.1 MB, free: 8.902 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007546/0.1044, allocations: 371 kB / 275.5 MB, free: 8.539 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008672/0.1053, allocations: 442.4 kB / 275.9 MB, free: 8.105 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002512/0.1056, allocations: 44 kB / 275.9 MB, free: 8.062 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002192/0.1058, allocations: 44 kB / 276 MB, free: 8.02 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.1061, allocations: 175.2 kB / 276.1 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003358/0.1064, allocations: 104 kB / 276.2 MB, free: 7.746 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002142/0.1086, allocations: 1.445 MB / 277.7 MB, free: 6.297 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1086, allocations: 0 / 277.7 MB, free: 6.297 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1086, allocations: 0 / 277.7 MB, free: 6.297 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.462e-05/0.1087, allocations: 0 / 277.7 MB, free: 6.297 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.004458/0.1132, allocations: 1.197 MB / 278.9 MB, free: 5.047 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1132, allocations: 12.03 kB / 278.9 MB, free: 5.035 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004565/0.1137, allocations: 122.6 kB / 279 MB, free: 4.914 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.1155, allocations: 0.6408 MB / 279.7 MB, free: 4.23 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.1158, allocations: 74 kB / 279.7 MB, free: 4.156 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002833/0.1161, allocations: 104 kB / 279.8 MB, free: 4.055 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00349/0.1196, allocations: 1.001 MB / 280.8 MB, free: 3.039 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.648e-05/0.1197, allocations: 11.83 kB / 280.8 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.1199, allocations: 44 kB / 280.9 MB, free: 2.984 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.247e-05/0.1199, allocations: 20 kB / 280.9 MB, free: 2.965 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003676/0.1236, allocations: 0.9069 MB / 281.8 MB, free: 2.059 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008877/0.1325, allocations: 3.341 MB / 285.2 MB, free: 14.6 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002585/0.1352, allocations: 0.8392 MB / 286 MB, free: 13.74 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.1353, allocations: 17.09 kB / 286 MB, free: 13.72 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.1354, allocations: 43.12 kB / 286.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 4.198e-06/0.1354, allocations: 0 / 286.1 MB, free: 13.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=115): time 0.01727/0.1527, allocations: 4.442 MB / 290.5 MB, free: 9.027 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.1528, allocations: 89.77 kB / 290.6 MB, free: 8.922 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.1542, allocations: 0.5335 MB / 291.1 MB, free: 8.383 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002316/0.1544, allocations: 41.7 kB / 291.2 MB, free: 8.336 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.1549, allocations: 450.6 kB / 291.6 MB, free: 7.891 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005863/0.1555, allocations: 394.2 kB / 292 MB, free: 7.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1556, allocations: 20 kB / 292 MB, free: 7.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.1558, allocations: 358.8 kB / 292.4 MB, free: 7.121 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.1575, allocations: 402.4 kB / 292.7 MB, free: 6.727 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/0.1594, allocations: 0.5275 MB / 293.3 MB, free: 6.164 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.1612, allocations: 444 kB / 293.7 MB, free: 5.734 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.1613, allocations: 0 / 293.7 MB, free: 5.734 MB / 250.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004618/0.1659, allocations: 1.185 MB / 294.9 MB, free: 4.531 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.166, allocations: 4 kB / 294.9 MB, free: 4.527 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.166, allocations: 4 kB / 294.9 MB, free: 4.523 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.1666, allocations: 134.5 kB / 295 MB, free: 4.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.1688, allocations: 259.7 kB / 295.3 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2262/0.395, allocations: 4.545 MB / 299.8 MB, free: 27.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3965, allocations: 66.03 kB / 299.9 MB, free: 27.55 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/0.3966, allocations: 40.11 kB / 299.9 MB, free: 27.55 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 125 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007447/0.3974, allocations: 276.5 kB / 300.2 MB, free: 27.44 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.3977, allocations: 98.22 kB / 300.3 MB, free: 27.44 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002759/0.4004, allocations: 0.7845 MB / 301.1 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.598e-05/0.4005, allocations: 13.62 kB / 301.1 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.4005, allocations: 4.125 kB / 301.1 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.87e-05/0.4006, allocations: 5.344 kB / 301.1 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007615/0.4082, allocations: 2.7 MB / 303.8 MB, free: 26.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.4083, allocations: 1.125 kB / 303.8 MB, free: 26.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/0.4102, allocations: 220.1 kB / 304 MB, free: 26.31 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007635/0.411, allocations: 153.2 kB / 304.2 MB, free: 26.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001501/0.4112, allocations: 30.28 kB / 304.2 MB, free: 26.23 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00496/0.4162, allocations: 5.61 MB / 309.8 MB, free: 20.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4162, allocations: 5.125 kB / 309.8 MB, free: 20.78 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009626/0.4258, allocations: 1.829 MB / 311.6 MB, free: 19.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005752/0.4265, allocations: 162.1 kB / 311.8 MB, free: 19.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004285/0.427, allocations: 23.09 kB / 311.8 MB, free: 19.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/0.4287, allocations: 68.78 kB / 311.9 MB, free: 19.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004617/0.4292, allocations: 75.95 kB / 312 MB, free: 19.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/0.4293, allocations: 34.36 kB / 312 MB, free: 19.75 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001423/0.4308, allocations: 445.7 kB / 312.4 MB, free: 19.54 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.112e-06/0.4308, allocations: 0 / 312.4 MB, free: 19.54 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002563/0.4334, allocations: 250.9 kB / 312.7 MB, free: 19.51 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004134/0.4339, allocations: 130.9 kB / 312.8 MB, free: 19.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.4405, allocations: 1.379 MB / 314.2 MB, free: 18.72 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/0.4406, allocations: 5.375 kB / 314.2 MB, free: 18.72 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004102/0.4447, allocations: 1.019 MB / 315.2 MB, free: 18.07 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.4472, allocations: 155.5 kB / 315.4 MB, free: 18.01 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009562/0.4568, allocations: 2.654 MB / 318 MB, free: 16.39 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009766/0.4578, allocations: 1.04 MB / 319.1 MB, free: 15.68 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008649/0.4587, allocations: 87.09 kB / 319.1 MB, free: 15.67 MB / 250.7 MB Notification: Performance of SimCode: time 1.793e-06/0.4588, allocations: 0 / 319.1 MB, free: 15.67 MB / 250.7 MB Notification: Performance of Templates: time 0.06895/0.5277, allocations: 27.41 MB / 346.5 MB, free: 7.059 MB / 266.7 MB