Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedFeed_x.v|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleFeed_x.v|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary") Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 211.2 MB, free: 7.859 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.435e-05, allocations: 0 / 258.8 MB, free: 8.207 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3269, allocations: 44.49 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary): time 0.01508/0.342, allocations: 8.531 MB / 311.8 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008766/0.3509, allocations: 2.818 MB / 314.6 MB, free: 2.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002415/0.3533, allocations: 55.88 kB / 314.7 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.3556, allocations: 0.5404 MB / 315.2 MB, free: 1.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004152/0.3598, allocations: 0.8335 MB / 316.1 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002722/0.3626, allocations: 0.5264 MB / 316.6 MB, free: 288 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005027/0.3676, allocations: 1.6 MB / 318.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.369, allocations: 453.9 kB / 318.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.3713, allocations: 0.8611 MB / 319.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.374, allocations: 1.09 MB / 320.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.3752, allocations: 127.9 kB / 320.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007222/0.376, allocations: 104 kB / 320.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006883/0.3767, allocations: 454.1 kB / 321.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.3778, allocations: 220 kB / 321.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006049/0.3838, allocations: 3.277 MB / 324.8 MB, free: 8.102 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3839, allocations: 0 / 324.8 MB, free: 8.102 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.278e-06/0.3839, allocations: 0 / 324.8 MB, free: 8.102 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001729/0.3841, allocations: 0 / 324.8 MB, free: 8.102 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.01022/0.3943, allocations: 2.456 MB / 327.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.3944, allocations: 12.03 kB / 327.2 MB, free: 5.566 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.3957, allocations: 292.4 kB / 327.5 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005364/0.4011, allocations: 1.43 MB / 328.9 MB, free: 3.793 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002703/0.4014, allocations: 156.1 kB / 329.1 MB, free: 3.637 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008039/0.4023, allocations: 204 kB / 329.3 MB, free: 3.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007377/0.4096, allocations: 1.858 MB / 331.1 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.948e-05/0.4098, allocations: 11.91 kB / 331.2 MB, free: 1.512 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.4101, allocations: 80 kB / 331.2 MB, free: 1.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.458e-05/0.4102, allocations: 55.95 kB / 331.3 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007828/0.418, allocations: 1.894 MB / 333.2 MB, free: 15.47 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.4404, allocations: 7.262 MB / 340.4 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007228/0.4477, allocations: 2.234 MB / 342.7 MB, free: 5.641 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003954/0.4481, allocations: 45.95 kB / 342.7 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.492e-05/0.4482, allocations: 56.56 kB / 342.8 MB, free: 5.535 MB / 282.7 MB Notification: Performance of pre-optimization done (n=234): time 5.811e-06/0.4482, allocations: 0 / 342.8 MB, free: 5.535 MB / 282.7 MB Notification: Performance of matching and sorting (n=361): time 0.1098/0.558, allocations: 17.21 MB / 360 MB, free: 4.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1695/0.7275, allocations: 30.01 MB / 390 MB, free: 5.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004959/0.7326, allocations: 1.584 MB / 391.6 MB, free: 3.844 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007832/0.7334, allocations: 81.7 kB / 391.7 MB, free: 3.758 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.7348, allocations: 0.8986 MB / 392.6 MB, free: 2.852 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002358/0.7372, allocations: 1.189 MB / 393.8 MB, free: 1.645 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004971/0.7377, allocations: 68 kB / 393.8 MB, free: 1.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004058/0.7381, allocations: 437.9 kB / 394.2 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02019/0.7583, allocations: 1.193 MB / 395.4 MB, free: 15.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00613/0.7645, allocations: 1.494 MB / 396.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02296/0.7875, allocations: 1.407 MB / 398.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.877e-05/0.7876, allocations: 0 / 398.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=426) (initialization): time 0.03532/0.8229, allocations: 4.304 MB / 402.6 MB, free: 8.617 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.41e-05/0.8231, allocations: 31.58 kB / 402.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.8231, allocations: 8 kB / 402.7 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009409/0.8325, allocations: 1.278 MB / 404 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005601/0.8382, allocations: 0.5539 MB / 404.5 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04082/0.879, allocations: 18.18 MB / 422.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004537/0.8836, allocations: 159.9 kB / 422.9 MB, free: 3.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006955/0.8844, allocations: 112.3 kB / 423 MB, free: 3.316 MB / 362.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: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 296 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 2 {3 54,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.002037/0.8864, allocations: 0.5849 MB / 423.5 MB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008122/0.8873, allocations: 256.8 kB / 423.8 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2764/1.164, allocations: 4.392 MB / 428.2 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01546/1.179, allocations: 3.839 MB / 432 MB, free: 103 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.043e-05/1.179, allocations: 2.75 kB / 432 MB, free: 103 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.322e-05/1.179, allocations: 18.56 kB / 432.1 MB, free: 103 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0264/1.206, allocations: 8.726 MB / 440.8 MB, free: 99.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-05/1.206, allocations: 3.906 kB / 440.8 MB, free: 99.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004569/1.21, allocations: 476.9 kB / 441.2 MB, free: 99.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008506/1.219, allocations: 1.334 MB / 442.6 MB, free: 99.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005348/1.22, allocations: 67.19 kB / 442.6 MB, free: 99.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02988/1.249, allocations: 17 MB / 459.7 MB, free: 82.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1178/1.367, allocations: 26.68 MB / 486.3 MB, free: 55.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/1.389, allocations: 6.143 MB / 492.5 MB, free: 48.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001974/1.391, allocations: 0.5875 MB / 493.1 MB, free: 48.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008426/1.392, allocations: 64.08 kB / 493.1 MB, free: 48.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00375/1.396, allocations: 147.9 kB / 493.3 MB, free: 48.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/1.397, allocations: 270.7 kB / 493.5 MB, free: 47.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003415/1.397, allocations: 95.97 kB / 493.6 MB, free: 47.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002389/1.399, allocations: 1.227 MB / 494.8 MB, free: 46.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.399, allocations: 0 / 494.8 MB, free: 46.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004775/1.404, allocations: 0.9513 MB / 495.8 MB, free: 45.49 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5} * Non-linear torn systems: 2 {4 42,5 55} Notification: Performance of Backend phase and start with SimCode phase: time 0.001345/1.406, allocations: 309.8 kB / 496.1 MB, free: 45.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01231/1.418, allocations: 4.497 MB / 0.4889 GB, free: 40.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.418, allocations: 4 kB / 0.4889 GB, free: 40.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008148/1.426, allocations: 3.047 MB / 0.4918 GB, free: 37.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/1.429, allocations: 314.4 kB / 0.4921 GB, free: 37.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01869/1.448, allocations: 8.03 MB / 0.5 GB, free: 29.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/1.45, allocations: 1.828 MB / 0.5018 GB, free: 27.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001867/1.451, allocations: 191.3 kB / 0.502 GB, free: 26.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.502e-06/1.451, allocations: 0 / 0.502 GB, free: 26.97 MB / 362.7 MB Notification: Performance of Templates: time 0.4663/1.918, allocations: 122.5 MB / 0.6216 GB, free: 105.7 MB / 410.7 MB