Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.643/1.643, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.049e-05/3.054e-05, allocations: 4 kB / 228.1 MB, free: 7.965 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08126, allocations: 38.77 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01438/0.09572, allocations: 8.445 MB / 275.3 MB, free: 8.629 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008992/0.1048, allocations: 3.207 MB / 278.6 MB, free: 5.414 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002345/0.1072, allocations: 47.94 kB / 278.6 MB, free: 5.367 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01186/0.1191, allocations: 7.931 MB / 286.5 MB, free: 13.42 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009002/0.1282, allocations: 4.53 MB / 291.1 MB, free: 8.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002517/0.1307, allocations: 0.507 MB / 291.6 MB, free: 8.375 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005819/0.1366, allocations: 2.025 MB / 293.6 MB, free: 6.348 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.1379, allocations: 453.9 kB / 294 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003354/0.1413, allocations: 1.755 MB / 295.8 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00745/0.1488, allocations: 3.595 MB / 299.4 MB, free: 0.543 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.1504, allocations: 144 kB / 299.5 MB, free: 412 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.1515, allocations: 104 kB / 299.6 MB, free: 308 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2216/0.3732, allocations: 1.671 MB / 301.3 MB, free: 14.04 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.3751, allocations: 345.4 kB / 301.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00889/0.384, allocations: 5.325 MB / 307 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3841, allocations: 1.781 kB / 307 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.686e-06/0.3841, allocations: 2.75 kB / 307 MB, free: 13.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.00047/0.3846, allocations: 0 / 307 MB, free: 13.57 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01618/0.4008, allocations: 5.244 MB / 312.2 MB, free: 11.04 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4008, allocations: 8.969 kB / 312.2 MB, free: 11.04 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/0.4036, allocations: 0.8405 MB / 313.1 MB, free: 10.58 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008771/0.4125, allocations: 2.83 MB / 315.9 MB, free: 9.309 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.4127, allocations: 152 kB / 316 MB, free: 9.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007484/0.4135, allocations: 204.5 kB / 316.2 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007515/0.421, allocations: 1.994 MB / 318.2 MB, free: 8.773 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.4212, allocations: 9.344 kB / 318.2 MB, free: 8.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.4216, allocations: 84.03 kB / 318.3 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.933e-05/0.4217, allocations: 47.72 kB / 318.4 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00708/0.4287, allocations: 1.8 MB / 320.2 MB, free: 8.5 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02719/0.456, allocations: 8.613 MB / 328.8 MB, free: 4.531 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005939/0.462, allocations: 2.141 MB / 330.9 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000414/0.4625, allocations: 124.3 kB / 331 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004229/0.4667, allocations: 1.056 MB / 332.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of pre-optimization done (n=226): time 9.878e-06/0.4668, allocations: 0 / 332.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of matching and sorting (n=348): time 0.1877/0.6545, allocations: 19.3 MB / 351.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3197/0.9743, allocations: 30.96 MB / 382.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05283/1.027, allocations: 13.74 MB / 396.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001031/1.028, allocations: 85.7 kB / 396.2 MB, free: 1.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.009048/1.037, allocations: 2.968 MB / 399.1 MB, free: 14.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002816/1.04, allocations: 1.155 MB / 400.3 MB, free: 13.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006955/1.041, allocations: 68 kB / 400.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004782/1.042, allocations: 429.7 kB / 400.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007459/1.049, allocations: 1.178 MB / 402 MB, free: 12.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008224/1.057, allocations: 1.515 MB / 403.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008562/1.066, allocations: 1.402 MB / 404.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.744e-05/1.066, allocations: 0 / 404.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.0237/1.09, allocations: 3.878 MB / 408.8 MB, free: 5.312 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.904e-05/1.09, allocations: 33.7 kB / 408.8 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.26e-05/1.09, allocations: 4 kB / 408.8 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02273/1.113, allocations: 1.46 MB / 410.3 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00576/1.119, allocations: 0.561 MB / 410.8 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0174/1.136, allocations: 12.78 MB / 423.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005865/1.142, allocations: 167.8 kB / 423.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008553/1.143, allocations: 135.9 kB / 423.9 MB, free: 5.262 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 285 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 38,3 48} Notification: Performance of prepare postOptimizeDAE: time 0.007511/1.15, allocations: 2.168 MB / 426.1 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002269/1.153, allocations: 0.8021 MB / 426.9 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2762/1.429, allocations: 4.606 MB / 431.5 MB, free: 110.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007028/1.436, allocations: 1.985 MB / 433.4 MB, free: 110.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.425e-05/1.436, allocations: 9.625 kB / 433.5 MB, free: 110.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.118e-05/1.436, allocations: 15.52 kB / 433.5 MB, free: 110.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03083/1.467, allocations: 10.11 MB / 443.6 MB, free: 107.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.281e-05/1.467, allocations: 5.031 kB / 443.6 MB, free: 107.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004863/1.472, allocations: 480.3 kB / 444.1 MB, free: 107.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01692/1.489, allocations: 1.503 MB / 445.6 MB, free: 106.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009042/1.49, allocations: 89.62 kB / 445.7 MB, free: 106.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/1.508, allocations: 12.44 MB / 458.1 MB, free: 95.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1849/1.693, allocations: 27.04 MB / 485.1 MB, free: 69.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02485/1.718, allocations: 6.355 MB / 491.5 MB, free: 63.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002686/1.721, allocations: 0.7413 MB / 492.2 MB, free: 62.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002425/1.723, allocations: 71.94 kB / 492.3 MB, free: 62.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006568/1.73, allocations: 139.9 kB / 492.4 MB, free: 62.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/1.731, allocations: 222.9 kB / 492.7 MB, free: 61.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005043/1.732, allocations: 107.9 kB / 492.8 MB, free: 61.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.03011/1.762, allocations: 11.08 MB / 0.492 GB, free: 50.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.762, allocations: 0 / 0.492 GB, free: 50.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005647/1.767, allocations: 0.9151 MB / 0.4929 GB, free: 49.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 49,4 37} Notification: Performance of Backend phase and start with SimCode phase: time 0.001629/1.769, allocations: 398.9 kB / 0.4933 GB, free: 49.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.78, allocations: 4.091 MB / 0.4973 GB, free: 45.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.781, allocations: 0 / 0.4973 GB, free: 45.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007148/1.788, allocations: 2.649 MB / 0.4999 GB, free: 42.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005242/1.793, allocations: 470.8 kB / 0.5003 GB, free: 42.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04333/1.836, allocations: 20.28 MB / 0.5201 GB, free: 21.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009049/1.845, allocations: 4.112 MB / 0.5242 GB, free: 17.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002038/1.848, allocations: 247.2 kB / 0.5244 GB, free: 17.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/1.848, allocations: 3.938 kB / 0.5244 GB, free: 17.38 MB / 346.7 MB Notification: Performance of Templates: time 2.573/4.42, allocations: 0.5241 GB / 1.049 GB, free: 53.14 MB / 378.7 MB