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.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadModel(Modelica): time 2.398/2.398, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.936e-05, allocations: 0 / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3472, allocations: 44.51 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0152/0.3624, allocations: 8.534 MB / 311.8 MB, free: 5.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009425/0.3719, allocations: 3.149 MB / 315 MB, free: 2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003108/0.3751, allocations: 55.88 kB / 315 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01248/0.3876, allocations: 7.931 MB / 323 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009801/0.3975, allocations: 4.534 MB / 327.5 MB, free: 5.453 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002947/0.4005, allocations: 0.5264 MB / 328 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007191/0.4077, allocations: 2.056 MB / 330.1 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001359/0.4091, allocations: 453.9 kB / 330.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003673/0.4128, allocations: 1.79 MB / 332.3 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008261/0.4212, allocations: 3.638 MB / 336 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001728/0.4229, allocations: 131.9 kB / 336.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.4243, allocations: 112 kB / 336.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002739/0.4271, allocations: 1.682 MB / 337.9 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.4286, allocations: 352 kB / 338.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008893/0.4376, allocations: 5.399 MB / 343.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4376, allocations: 4 kB / 343.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4377, allocations: 0 / 343.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003014/0.438, allocations: 0 / 343.6 MB, free: 5.297 MB / 282.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.016/0.454, allocations: 5.351 MB / 349 MB, free: 15.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.4541, allocations: 8.031 kB / 349 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002396/0.4565, allocations: 0.8484 MB / 349.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008334/0.4648, allocations: 2.897 MB / 352.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002978/0.4652, allocations: 156.1 kB / 352.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000813/0.466, allocations: 207.9 kB / 353.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007851/0.4739, allocations: 2.08 MB / 355.2 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.439e-05/0.474, allocations: 4 kB / 355.2 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003275/0.4744, allocations: 80 kB / 355.2 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.647e-05/0.4745, allocations: 55.95 kB / 355.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00768/0.4822, allocations: 1.872 MB / 357.2 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02741/0.5096, allocations: 8.771 MB / 365.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007572/0.5173, allocations: 2.267 MB / 368.2 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004282/0.5178, allocations: 42.41 kB / 368.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00476/0.5225, allocations: 1.127 MB / 369.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=242): time 1.009e-05/0.5226, allocations: 0 / 369.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=375): time 0.1182/0.6409, allocations: 21.44 MB / 390.8 MB, free: 5.223 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1515/0.7925, allocations: 29.89 MB / 420.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3053/1.098, allocations: 13.76 MB / 434.5 MB, free: 98.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006902/1.099, allocations: 84.83 kB / 434.5 MB, free: 98.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004215/1.103, allocations: 2.943 MB / 437.5 MB, free: 95.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001722/1.105, allocations: 1.24 MB / 438.7 MB, free: 95.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000553/1.105, allocations: 71.12 kB / 438.8 MB, free: 95.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002401/1.105, allocations: 441.2 kB / 439.2 MB, free: 95.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004671/1.11, allocations: 1.216 MB / 440.4 MB, free: 94.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005221/1.115, allocations: 1.569 MB / 442 MB, free: 93.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005305/1.121, allocations: 1.453 MB / 443.5 MB, free: 93.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-05/1.121, allocations: 3.719 kB / 443.5 MB, free: 93.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=446) (initialization): time 0.01898/1.14, allocations: 4.478 MB / 447.9 MB, free: 91.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.279e-05/1.14, allocations: 42.45 kB / 448 MB, free: 91.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-05/1.14, allocations: 4.25 kB / 448 MB, free: 91.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008978/1.149, allocations: 1.351 MB / 449.3 MB, free: 90.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/1.154, allocations: 0.557 MB / 449.9 MB, free: 90.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0356/1.19, allocations: 21.24 MB / 471.1 MB, free: 68.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005277/1.195, allocations: 179.1 kB / 471.3 MB, free: 68.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007734/1.196, allocations: 127.9 kB / 471.4 MB, free: 68.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (314): * Single equations (assignments): 302 * 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 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.004785/1.201, allocations: 2.189 MB / 473.6 MB, free: 66.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.202, allocations: 0.8162 MB / 474.4 MB, free: 65.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01869/1.221, allocations: 5.163 MB / 479.6 MB, free: 60.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009077/1.23, allocations: 2.287 MB / 481.9 MB, free: 58.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.284e-05/1.23, allocations: 7.953 kB / 481.9 MB, free: 58.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.344e-05/1.23, allocations: 15.94 kB / 481.9 MB, free: 58.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03276/1.263, allocations: 10.78 MB / 492.7 MB, free: 47.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.505e-05/1.263, allocations: 0 / 492.7 MB, free: 47.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004738/1.268, allocations: 479.4 kB / 493.2 MB, free: 46.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009213/1.277, allocations: 1.384 MB / 494.6 MB, free: 45.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007334/1.278, allocations: 79.95 kB / 494.6 MB, free: 45.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03372/1.312, allocations: 19.7 MB / 0.5023 GB, free: 24.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1801/1.492, allocations: 26.51 MB / 0.5282 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02546/1.518, allocations: 6.991 MB / 0.535 GB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003247/1.521, allocations: 1.033 MB / 0.536 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00138/1.522, allocations: 68 kB / 0.5361 GB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004479/1.527, allocations: 139.9 kB / 0.5362 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001197/1.528, allocations: 283.2 kB / 0.5365 GB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003952/1.528, allocations: 99.97 kB / 0.5366 GB, free: 4.578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.02272/1.551, allocations: 11.11 MB / 0.5474 GB, free: 9.586 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.551, allocations: 0 / 0.5474 GB, free: 9.586 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00621/1.557, allocations: 1.112 MB / 0.5485 GB, free: 8.477 MB / 394.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: 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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001915/1.559, allocations: 446.7 kB / 0.5489 GB, free: 8.066 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01446/1.574, allocations: 4.837 MB / 0.5537 GB, free: 3.105 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.574, allocations: 4.062 kB / 0.5537 GB, free: 3.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009452/1.583, allocations: 3.322 MB / 0.5569 GB, free: 15.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004083/1.588, allocations: 473.8 kB / 0.5574 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3097/1.897, allocations: 20.57 MB / 0.5774 GB, free: 133.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008294/1.906, allocations: 4.199 MB / 0.5815 GB, free: 133 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001834/1.908, allocations: 201.9 kB / 0.5817 GB, free: 133 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/1.908, allocations: 0 / 0.5817 GB, free: 133 MB / 410.7 MB Notification: Performance of Templates: time 2.386/4.294, allocations: 0.529 GB / 1.111 GB, free: 109.3 MB / 458.7 MB