Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.192/2.192, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.483e-05, allocations: 1.375 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.09932, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5286/0.6279, allocations: 86.48 MB / 380.8 MB, free: 6.066 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003945/0.6284, allocations: 93.33 kB / 380.9 MB, free: 6.051 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2627/0.8911, allocations: 48.9 MB / 429.8 MB, free: 9.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.8912, allocations: 0 / 429.8 MB, free: 9.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003055/0.8915, allocations: 44 kB / 429.8 MB, free: 9.637 MB / 330.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.01208/0.9036, allocations: 2.324 MB / 432.1 MB, free: 7.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.358e-05/0.9037, allocations: 12.03 kB / 432.1 MB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.9052, allocations: 296.4 kB / 432.4 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005458/0.9107, allocations: 1.315 MB / 433.7 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/0.911, allocations: 68 kB / 433.8 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009845/0.912, allocations: 124.2 kB / 433.9 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00757/0.9196, allocations: 1.668 MB / 435.6 MB, free: 3.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008247/0.9279, allocations: 1.495 MB / 437.1 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.9281, allocations: 0 / 437.1 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007018/0.9288, allocations: 4 kB / 437.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.057e-05/0.9289, allocations: 48 kB / 437.1 MB, free: 2.156 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02931/0.9582, allocations: 7.261 MB / 444.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006754/0.9651, allocations: 2.148 MB / 446.6 MB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005158/0.9703, allocations: 1.212 MB / 447.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004286/0.9707, allocations: 37.42 kB / 447.8 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.73e-05/0.9708, allocations: 60.55 kB / 447.9 MB, free: 7.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 6.302e-06/0.9708, allocations: 4 kB / 447.9 MB, free: 7.234 MB / 346.7 MB Notification: Performance of matching and sorting (n=372): time 0.07742/1.048, allocations: 12.49 MB / 460.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/1.048, allocations: 94.31 kB / 460.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/1.053, allocations: 1.478 MB / 461.9 MB, free: 9.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007049/1.053, allocations: 25.7 kB / 461.9 MB, free: 9.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/1.055, allocations: 0.9615 MB / 462.9 MB, free: 8.078 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001889/1.057, allocations: 1.181 MB / 464.1 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004018/1.057, allocations: 3.938 kB / 464.1 MB, free: 6.875 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000336/1.057, allocations: 437.1 kB / 464.5 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004408/1.062, allocations: 1.19 MB / 465.7 MB, free: 5.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005098/1.067, allocations: 1.459 MB / 467.2 MB, free: 3.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005397/1.072, allocations: 1.368 MB / 468.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.999e-05/1.072, allocations: 0 / 468.5 MB, free: 2.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=434) (initialization): time 0.02154/1.094, allocations: 4.268 MB / 472.8 MB, free: 14.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.031e-05/1.094, allocations: 31.89 kB / 472.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-05/1.094, allocations: 7.984 kB / 472.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0116/1.106, allocations: 1.296 MB / 474.1 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007066/1.113, allocations: 0.585 MB / 474.7 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0473/1.16, allocations: 18.5 MB / 493.2 MB, free: 8.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005427/1.166, allocations: 99.94 kB / 493.3 MB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.167, allocations: 119.9 kB / 493.4 MB, free: 8.605 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (315): * Single equations (assignments): 305 * 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%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.001119/1.168, allocations: 160.1 kB / 493.6 MB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01965/1.188, allocations: 3.99 MB / 497.6 MB, free: 4.398 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/1.189, allocations: 252.9 kB / 497.8 MB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3203/1.509, allocations: 4.249 MB / 0.4903 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01926/1.529, allocations: 3.773 MB / 0.494 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.367e-05/1.529, allocations: 3.438 kB / 0.494 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001251/1.529, allocations: 17.78 kB / 0.494 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03701/1.566, allocations: 9.147 MB / 0.503 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-05/1.566, allocations: 6.219 kB / 0.503 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006032/1.572, allocations: 0.4978 MB / 0.5034 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01134/1.584, allocations: 1.362 MB / 0.5048 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008063/1.584, allocations: 29.92 kB / 0.5048 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03765/1.622, allocations: 17.1 MB / 0.5215 GB, free: 91.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.174/1.796, allocations: 26.47 MB / 0.5474 GB, free: 76.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02401/1.82, allocations: 6.373 MB / 0.5536 GB, free: 73.49 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002717/1.823, allocations: 0.6834 MB / 0.5542 GB, free: 73.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001181/1.824, allocations: 7.531 kB / 0.5543 GB, free: 73.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004834/1.829, allocations: 102.6 kB / 0.5543 GB, free: 73.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/1.83, allocations: 279.7 kB / 0.5546 GB, free: 72.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004817/1.831, allocations: 100 kB / 0.5547 GB, free: 72.94 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002891/1.834, allocations: 1.137 MB / 0.5558 GB, free: 72.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.834, allocations: 0 / 0.5558 GB, free: 72.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006466/1.84, allocations: 0.9142 MB / 0.5567 GB, free: 71.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (256): * Single equations (assignments): 249 * 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%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.02534/1.866, allocations: 8.045 MB / 0.5646 GB, free: 64.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01247/1.878, allocations: 4.342 MB / 0.5688 GB, free: 59.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/1.878, allocations: 4.312 kB / 0.5688 GB, free: 59.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008917/1.887, allocations: 2.953 MB / 0.5717 GB, free: 57.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/1.891, allocations: 244.2 kB / 0.5719 GB, free: 56.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02133/1.912, allocations: 6.086 MB / 0.5779 GB, free: 51.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002236/1.914, allocations: 1.836 MB / 0.5797 GB, free: 49.89 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004164/1.918, allocations: 319 kB / 0.58 GB, free: 49.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003513/1.922, allocations: 1.084 MB / 0.581 GB, free: 48.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.844e-06/1.922, allocations: 0 / 0.581 GB, free: 48.69 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6111/2.533, allocations: 83.2 MB / 0.6623 GB, free: 104.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003141/2.534, allocations: 209.8 kB / 0.6625 GB, free: 104 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.929/11.46, allocations: 0 / 0.6625 GB, free: 104 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat