Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 205.8 MB / 218.9 MB, free: 9.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.177e-05/4.185e-05, allocations: 8 kB / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 47.58 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.419/0.5258, allocations: 91.99 MB / 409 MB, free: 12.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.5261, allocations: 81.45 kB / 409.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2177/0.7439, allocations: 50.04 MB / 459.1 MB, free: 1.305 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7439, allocations: 0 / 459.1 MB, free: 1.305 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001834/0.7441, allocations: 51.98 kB / 459.2 MB, free: 1.254 MB / 362.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.008829/0.7529, allocations: 2.303 MB / 461.5 MB, free: 14.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.753, allocations: 8.031 kB / 461.5 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008347/0.7539, allocations: 283.4 kB / 461.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009196/0.7548, allocations: 296.4 kB / 462.1 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004564/0.7594, allocations: 1.333 MB / 463.4 MB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.7596, allocations: 156.1 kB / 463.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005406/0.7601, allocations: 208 kB / 463.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005422/0.7656, allocations: 1.756 MB / 465.5 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.432e-05/0.7657, allocations: 3.906 kB / 465.5 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003204/0.766, allocations: 83.94 kB / 465.6 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.148e-05/0.7661, allocations: 59.95 kB / 465.7 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005393/0.7715, allocations: 1.742 MB / 467.4 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02111/0.7926, allocations: 7.598 MB / 475 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005362/0.798, allocations: 2.226 MB / 477.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003725/0.8018, allocations: 1.288 MB / 478.5 MB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.802, allocations: 37.97 kB / 478.5 MB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.079e-05/0.8021, allocations: 56.56 kB / 478.6 MB, free: 13.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=240): time 4.92e-06/0.8021, allocations: 0 / 478.6 MB, free: 13.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=372): time 0.1074/0.9096, allocations: 15.29 MB / 493.9 MB, free: 13.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3877/1.297, allocations: 30.9 MB / 0.5125 GB, free: 115.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004012/1.301, allocations: 1.616 MB / 0.5141 GB, free: 115.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006971/1.302, allocations: 88.39 kB / 0.5142 GB, free: 115.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008937/1.303, allocations: 0.9643 MB / 0.5151 GB, free: 115.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001514/1.305, allocations: 1.228 MB / 0.5163 GB, free: 114.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003561/1.305, allocations: 64.91 kB / 0.5164 GB, free: 114.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/1.305, allocations: 434.4 kB / 0.5168 GB, free: 114.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/1.309, allocations: 1.252 MB / 0.518 GB, free: 114.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003997/1.313, allocations: 1.518 MB / 0.5195 GB, free: 114.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004284/1.317, allocations: 1.437 MB / 0.5209 GB, free: 114.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/1.317, allocations: 1.406 kB / 0.5209 GB, free: 114.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.01733/1.335, allocations: 4.553 MB / 0.5253 GB, free: 114.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/1.335, allocations: 5.469 kB / 0.5253 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.017e-05/1.335, allocations: 4.094 kB / 0.5253 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00946/1.344, allocations: 1.348 MB / 0.5267 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/1.35, allocations: 0.5843 MB / 0.5272 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03614/1.386, allocations: 19.25 MB / 0.546 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004754/1.391, allocations: 169.5 kB / 0.5462 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000384/1.391, allocations: 114.6 kB / 0.5463 GB, free: 102.8 MB / 426.7 MB 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 (314): * Single equations (assignments): 305 * 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: 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,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.0008453/1.392, allocations: 274.2 kB / 0.5466 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006308/1.393, allocations: 264 kB / 0.5468 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/1.408, allocations: 4.595 MB / 0.5513 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01418/1.423, allocations: 4.027 MB / 0.5552 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.423, allocations: 7.172 kB / 0.5552 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.516e-05/1.423, allocations: 17.3 kB / 0.5552 GB, free: 99.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02655/1.449, allocations: 9.749 MB / 0.5648 GB, free: 94.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/1.449, allocations: 3.938 kB / 0.5648 GB, free: 94.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004833/1.454, allocations: 0.4937 MB / 0.5653 GB, free: 94.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009316/1.464, allocations: 1.382 MB / 0.5666 GB, free: 94.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006318/1.464, allocations: 87.44 kB / 0.5667 GB, free: 94.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03215/1.496, allocations: 17.71 MB / 0.584 GB, free: 79.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09386/1.59, allocations: 27.28 MB / 0.6106 GB, free: 55.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02062/1.611, allocations: 6.673 MB / 0.6171 GB, free: 48.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/1.613, allocations: 0.698 MB / 0.6178 GB, free: 48.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007416/1.614, allocations: 62.53 kB / 0.6179 GB, free: 47.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004173/1.618, allocations: 161.7 kB / 0.618 GB, free: 47.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/1.619, allocations: 280.3 kB / 0.6183 GB, free: 47.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003602/1.62, allocations: 106.5 kB / 0.6184 GB, free: 47.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002597/1.622, allocations: 1.256 MB / 0.6196 GB, free: 46.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.483e-06/1.622, allocations: 0 / 0.6196 GB, free: 46.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005102/1.627, allocations: 1.077 MB / 0.6207 GB, free: 45.36 MB / 426.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.02226/1.65, allocations: 8.548 MB / 0.629 GB, free: 37.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01058/1.66, allocations: 4.421 MB / 0.6333 GB, free: 32.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/1.66, allocations: 0 / 0.6333 GB, free: 32.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007438/1.668, allocations: 3.022 MB / 0.6363 GB, free: 29.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002938/1.671, allocations: 300.8 kB / 0.6366 GB, free: 29.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/1.689, allocations: 6.417 MB / 0.6428 GB, free: 23.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/1.691, allocations: 1.836 MB / 0.6446 GB, free: 22.36 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003172/1.694, allocations: 332.2 kB / 0.645 GB, free: 22.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002637/1.697, allocations: 1.095 MB / 0.646 GB, free: 21.14 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/1.697, allocations: 0 / 0.646 GB, free: 21.14 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5016/2.198, allocations: 87.53 MB / 0.7315 GB, free: 82.99 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002503/2.199, allocations: 249 kB / 0.7317 GB, free: 82.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.161/9.36, allocations: 3.906 kB / 0.7317 GB, free: 82.66 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat