Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.119/2.119, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.072e-05/3.077e-05, allocations: 4 kB / 292.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 50.41 MB / 342.6 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5633, allocations: 96.12 MB / 438.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.5636, allocations: 84.77 kB / 438.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.15/0.7136, allocations: 37.15 MB / 476 MB, free: 12.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.7136, allocations: 0 / 476 MB, free: 12.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.356e-05/0.7137, allocations: 28 kB / 476 MB, free: 12.88 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.006991/0.7207, allocations: 1.611 MB / 477.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.7208, allocations: 8.031 kB / 477.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007532/0.7216, allocations: 214.2 kB / 477.9 MB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004258/0.7259, allocations: 449.8 kB / 478.3 MB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002248/0.7281, allocations: 0.7464 MB / 479 MB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.7284, allocations: 148.6 kB / 479.2 MB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000485/0.7289, allocations: 155.9 kB / 479.3 MB, free: 9.445 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/0.7331, allocations: 1.24 MB / 480.6 MB, free: 8.188 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.419e-05/0.7333, allocations: 4 kB / 480.6 MB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002322/0.7335, allocations: 60 kB / 480.6 MB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.563e-05/0.7336, allocations: 36 kB / 480.7 MB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004242/0.7378, allocations: 1.162 MB / 481.8 MB, free: 6.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/0.7528, allocations: 4.95 MB / 486.8 MB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004473/0.7573, allocations: 1.856 MB / 488.6 MB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.759, allocations: 0.516 MB / 489.2 MB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002278/0.7593, allocations: 106.1 kB / 489.3 MB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001856/0.7612, allocations: 0.6956 MB / 490 MB, free: 14.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 4.438e-06/0.7612, allocations: 0 / 490 MB, free: 14.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.02102/0.7822, allocations: 4.901 MB / 494.9 MB, free: 9.395 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.7825, allocations: 234.9 kB / 495.1 MB, free: 9.117 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.7836, allocations: 0.5307 MB / 495.6 MB, free: 8.578 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003261/0.784, allocations: 61.69 kB / 495.7 MB, free: 8.512 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006869/0.7847, allocations: 0.5546 MB / 496.2 MB, free: 7.945 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000782/0.7855, allocations: 0.5352 MB / 496.8 MB, free: 7.402 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.7857, allocations: 40 kB / 496.8 MB, free: 7.363 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003064/0.786, allocations: 414.7 kB / 497.2 MB, free: 6.949 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.7874, allocations: 452 kB / 497.7 MB, free: 6.508 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.7892, allocations: 0.7679 MB / 498.4 MB, free: 5.617 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001839/0.7911, allocations: 0.5586 MB / 499 MB, free: 5.062 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.7911, allocations: 0 / 499 MB, free: 5.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.007123/0.7983, allocations: 1.879 MB / 0.4891 GB, free: 3.156 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.7983, allocations: 8 kB / 0.4891 GB, free: 3.148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.637e-05/0.7984, allocations: 8 kB / 0.4891 GB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002686/0.8011, allocations: 474 kB / 0.4896 GB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/0.8036, allocations: 287.6 kB / 0.4899 GB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/0.819, allocations: 8.597 MB / 0.4983 GB, free: 9.262 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.821, allocations: 83.81 kB / 0.4983 GB, free: 9.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.8212, allocations: 67.98 kB / 0.4984 GB, free: 9.113 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004559/0.8217, allocations: 220 kB / 0.4986 GB, free: 8.895 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003039/0.822, allocations: 106.8 kB / 0.4987 GB, free: 8.789 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006617/0.8286, allocations: 1.758 MB / 0.5004 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.651e-05/0.8287, allocations: 20 kB / 0.5005 GB, free: 6.984 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/0.8287, allocations: 8 kB / 0.5005 GB, free: 6.977 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.806e-05/0.8288, allocations: 7.969 kB / 0.5005 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.8396, allocations: 3.567 MB / 0.504 GB, free: 3.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/0.8397, allocations: 8.094 kB / 0.504 GB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/0.8418, allocations: 212 kB / 0.5042 GB, free: 3.105 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/0.8444, allocations: 453.9 kB / 0.5046 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003084/0.8448, allocations: 39.98 kB / 0.5046 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/0.8598, allocations: 8.315 MB / 0.5128 GB, free: 9.77 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.8599, allocations: 4.031 kB / 0.5128 GB, free: 9.766 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008648/0.8685, allocations: 2.491 MB / 0.5152 GB, free: 7.211 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009669/0.8695, allocations: 299.6 kB / 0.5155 GB, free: 6.898 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003472/0.8699, allocations: 36 kB / 0.5155 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.8715, allocations: 71.95 kB / 0.5156 GB, free: 6.793 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004638/0.872, allocations: 129.1 kB / 0.5157 GB, free: 6.668 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/0.8722, allocations: 43.98 kB / 0.5157 GB, free: 6.625 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008724/0.8731, allocations: 415.2 kB / 0.5161 GB, free: 6.223 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.82e-07/0.8731, allocations: 0 / 0.5161 GB, free: 6.223 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002805/0.8759, allocations: 428 kB / 0.5165 GB, free: 5.805 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009463/0.8854, allocations: 3.473 MB / 0.5199 GB, free: 2.266 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005368/0.8908, allocations: 1.879 MB / 0.5218 GB, free: 364 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.8909, allocations: 7.938 kB / 0.5218 GB, free: 356 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2852/1.176, allocations: 1.296 MB / 0.523 GB, free: 122.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/1.177, allocations: 88.52 kB / 0.5231 GB, free: 122.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009191/1.187, allocations: 2.301 MB / 0.5254 GB, free: 122.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/1.188, allocations: 1.217 MB / 0.5266 GB, free: 121.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001416/1.189, allocations: 158.2 kB / 0.5267 GB, free: 121.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/1.19, allocations: 0.5119 MB / 0.5272 GB, free: 121.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/1.19, allocations: 0 / 0.5272 GB, free: 121.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/1.292, allocations: 26.64 MB / 0.5532 GB, free: 120 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/1.293, allocations: 199.5 kB / 0.5534 GB, free: 119.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.081/5.374, allocations: 0 / 0.5534 GB, free: 119.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat