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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.893e-05/2.904e-05, allocations: 4 kB / 292.2 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.08671, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3719/0.4586, allocations: 95.95 MB / 438.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.4589, allocations: 96.48 kB / 438.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3056/0.7645, allocations: 79.42 MB / 0.5059 GB, free: 2.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.812e-06/0.7646, allocations: 0 / 0.5059 GB, free: 2.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006913/0.7653, allocations: 119.9 kB / 0.506 GB, free: 2.152 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01298/0.7783, allocations: 5.522 MB / 0.5114 GB, free: 12.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.7783, allocations: 12.03 kB / 0.5114 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/0.7803, allocations: 0.864 MB / 0.5122 GB, free: 11.67 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/0.7904, allocations: 3.605 MB / 0.5158 GB, free: 7.996 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.7906, allocations: 156.1 kB / 0.5159 GB, free: 7.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004657/0.7911, allocations: 203.9 kB / 0.5161 GB, free: 7.641 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005201/0.7963, allocations: 1.999 MB / 0.5181 GB, free: 5.582 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.887e-05/0.7964, allocations: 0 / 0.5181 GB, free: 5.582 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002866/0.7967, allocations: 88 kB / 0.5181 GB, free: 5.496 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.496e-05/0.7968, allocations: 48 kB / 0.5182 GB, free: 5.449 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004904/0.8017, allocations: 1.758 MB / 0.5199 GB, free: 3.688 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2624/1.064, allocations: 10.12 MB / 0.5298 GB, free: 106.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004759/1.069, allocations: 2.264 MB / 0.532 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002969/1.072, allocations: 1.314 MB / 0.5333 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001664/1.072, allocations: 40.88 kB / 0.5333 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00245/1.075, allocations: 1.1 MB / 0.5344 GB, free: 105.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 7.322e-06/1.075, allocations: 1.375 kB / 0.5344 GB, free: 105.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=382): time 0.06452/1.139, allocations: 19.11 MB / 0.5531 GB, free: 101.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08959/1.229, allocations: 30.8 MB / 0.5831 GB, free: 84.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1763/1.405, allocations: 13.35 MB / 0.5962 GB, free: 77.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000568/1.406, allocations: 90.64 kB / 0.5963 GB, free: 77.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003944/1.41, allocations: 3.725 MB / 0.5999 GB, free: 74.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/1.411, allocations: 1.265 MB / 0.6011 GB, free: 73.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/1.411, allocations: 70.44 kB / 0.6012 GB, free: 73.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/1.412, allocations: 434.6 kB / 0.6016 GB, free: 72.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003021/1.415, allocations: 1.277 MB / 0.6029 GB, free: 71.47 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003546/1.418, allocations: 1.6 MB / 0.6044 GB, free: 69.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003406/1.422, allocations: 1.476 MB / 0.6059 GB, free: 68.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-06/1.422, allocations: 0 / 0.6059 GB, free: 68.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01387/1.436, allocations: 5.284 MB / 0.611 GB, free: 63.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/1.436, allocations: 8 kB / 0.611 GB, free: 63.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/1.436, allocations: 4 kB / 0.611 GB, free: 63.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00703/1.443, allocations: 1.428 MB / 0.6124 GB, free: 62.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003667/1.446, allocations: 0.5695 MB / 0.613 GB, free: 61.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03232/1.479, allocations: 22.26 MB / 0.6347 GB, free: 39.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/1.483, allocations: 209.3 kB / 0.6349 GB, free: 39.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005206/1.483, allocations: 124 kB / 0.635 GB, free: 39.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,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 (318): * Single equations (assignments): 307 * Array equations: 2 * Algorithm blocks: 0 * 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%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.0006899/1.484, allocations: 282.7 kB / 0.6353 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001538/1.486, allocations: 0.8565 MB / 0.6361 GB, free: 38.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/1.5, allocations: 5.473 MB / 0.6415 GB, free: 33.72 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006477/1.507, allocations: 2.388 MB / 0.6438 GB, free: 31.58 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.417e-05/1.507, allocations: 8 kB / 0.6438 GB, free: 31.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.983e-05/1.507, allocations: 18.23 kB / 0.6439 GB, free: 31.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03185/1.539, allocations: 14.1 MB / 0.6576 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/1.539, allocations: 4 kB / 0.6576 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003297/1.542, allocations: 0.4908 MB / 0.6581 GB, free: 19.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007146/1.549, allocations: 1.433 MB / 0.6595 GB, free: 18.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004875/1.55, allocations: 94.25 kB / 0.6596 GB, free: 18.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02954/1.579, allocations: 20.35 MB / 0.6795 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3386/1.918, allocations: 27.25 MB / 0.7061 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01953/1.937, allocations: 7.858 MB / 0.7138 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003713/1.941, allocations: 1.601 MB / 0.7153 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001379/1.943, allocations: 89.67 kB / 0.7154 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003164/1.946, allocations: 169.7 kB / 0.7156 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007784/1.947, allocations: 294.6 kB / 0.7158 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003274/1.947, allocations: 107.9 kB / 0.7159 GB, free: 103.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01774/1.965, allocations: 10.76 MB / 0.7265 GB, free: 103.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.94e-07/1.965, allocations: 3.25 kB / 0.7265 GB, free: 103.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006/1.971, allocations: 1.761 MB / 0.7282 GB, free: 103.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001818/1.973, allocations: 0.5204 MB / 0.7287 GB, free: 103 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009169/1.982, allocations: 4.73 MB / 0.7333 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.874e-06/1.982, allocations: 0 / 0.7333 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006007/1.988, allocations: 3.283 MB / 0.7365 GB, free: 98.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/1.992, allocations: 0.4889 MB / 0.737 GB, free: 98.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0319/2.023, allocations: 17.46 MB / 0.754 GB, free: 92.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005379/2.029, allocations: 4.212 MB / 0.7582 GB, free: 91.49 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003579/2.032, allocations: 0.8435 MB / 0.759 GB, free: 90.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/2.034, allocations: 355.5 kB / 0.7593 GB, free: 90.44 MB / 458.7 MB Notification: Performance of SimCode: time 1.767e-06/2.034, allocations: 4 kB / 0.7593 GB, free: 90.44 MB / 458.7 MB Notification: Performance of Templates: time 0.4203/2.455, allocations: 90.34 MB / 0.8475 GB, free: 10.38 MB / 458.7 MB