Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 205.8 MB / 218.9 MB, free: 9.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.537e-05/4.546e-05, allocations: 4 kB / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 47.58 MB / 317 MB, free: 6.652 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.5554, allocations: 93.59 MB / 410.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.5558, allocations: 83.58 kB / 410.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1624/0.7182, allocations: 37.36 MB / 448.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7183, allocations: 7.938 kB / 448.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.739e-05/0.7184, allocations: 24 kB / 448.1 MB, free: 11.31 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.009106/0.7275, allocations: 1.613 MB / 449.7 MB, free: 9.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.022e-05/0.7276, allocations: 8.031 kB / 449.7 MB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001109/0.7287, allocations: 219.9 kB / 449.9 MB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007457/0.7362, allocations: 0.5087 MB / 450.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003172/0.7395, allocations: 0.7493 MB / 451.2 MB, free: 8.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/0.7398, allocations: 148.3 kB / 451.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006531/0.7405, allocations: 158.8 kB / 451.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005165/0.7457, allocations: 1.267 MB / 452.7 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.7458, allocations: 4 kB / 452.8 MB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004627/0.7463, allocations: 63.98 kB / 452.8 MB, free: 7.211 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-05/0.7464, allocations: 36 kB / 452.8 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004986/0.7514, allocations: 1.22 MB / 454.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01782/0.7693, allocations: 5.081 MB / 459.2 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00546/0.7748, allocations: 2.361 MB / 461.5 MB, free: 13.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.7767, allocations: 0.5247 MB / 462 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000264/0.777, allocations: 110.3 kB / 462.1 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002275/0.7793, allocations: 0.6946 MB / 462.8 MB, free: 12.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 7.124e-06/0.7794, allocations: 4 kB / 462.8 MB, free: 12.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.023/0.8024, allocations: 4.926 MB / 467.8 MB, free: 7.613 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/0.8026, allocations: 234.9 kB / 468 MB, free: 7.336 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.8039, allocations: 0.5464 MB / 468.5 MB, free: 6.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000365/0.8043, allocations: 61.69 kB / 468.6 MB, free: 6.719 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007586/0.8051, allocations: 0.5739 MB / 469.2 MB, free: 6.133 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009716/0.8061, allocations: 0.5429 MB / 469.7 MB, free: 5.582 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.8064, allocations: 36 kB / 469.8 MB, free: 5.547 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003536/0.8067, allocations: 418.7 kB / 470.2 MB, free: 5.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.8084, allocations: 460 kB / 470.6 MB, free: 4.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002186/0.8107, allocations: 0.8176 MB / 471.4 MB, free: 3.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002007/0.8127, allocations: 0.5781 MB / 472 MB, free: 3.145 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/0.8128, allocations: 4 kB / 472 MB, free: 3.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007816/0.8206, allocations: 1.918 MB / 473.9 MB, free: 1.199 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.8207, allocations: 8 kB / 473.9 MB, free: 1.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-05/0.8208, allocations: 12 kB / 474 MB, free: 1.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002861/0.8236, allocations: 477.6 kB / 474.4 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002757/0.8265, allocations: 303.5 kB / 474.7 MB, free: 416 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01604/0.8425, allocations: 8.598 MB / 483.3 MB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/0.8447, allocations: 87.91 kB / 483.4 MB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003273/0.8451, allocations: 71.98 kB / 483.5 MB, free: 7.129 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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.0005376/0.8456, allocations: 223.8 kB / 483.7 MB, free: 6.902 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004057/0.8461, allocations: 110.6 kB / 483.8 MB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007002/0.8531, allocations: 1.766 MB / 485.6 MB, free: 5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-05/0.8532, allocations: 16 kB / 485.6 MB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.558e-05/0.8532, allocations: 15.95 kB / 485.6 MB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.571e-05/0.8533, allocations: 11.97 kB / 485.6 MB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.8647, allocations: 3.593 MB / 489.2 MB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/0.8648, allocations: 4 kB / 489.2 MB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/0.867, allocations: 211.7 kB / 489.4 MB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002667/0.8698, allocations: 447 kB / 489.8 MB, free: 0.625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003576/0.8702, allocations: 39.98 kB / 489.9 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/0.8859, allocations: 8.323 MB / 498.2 MB, free: 7.723 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.886, allocations: 4.031 kB / 498.2 MB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008859/0.8948, allocations: 2.511 MB / 0.489 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.8959, allocations: 307.5 kB / 0.4893 GB, free: 4.824 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.8963, allocations: 35.95 kB / 0.4893 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/0.898, allocations: 71.95 kB / 0.4894 GB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/0.8985, allocations: 125.1 kB / 0.4895 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001631/0.8986, allocations: 51.98 kB / 0.4896 GB, free: 4.547 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009/0.8995, allocations: 419.2 kB / 0.49 GB, free: 4.137 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8996, allocations: 0 / 0.49 GB, free: 4.137 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002629/0.9022, allocations: 432 kB / 0.4904 GB, free: 3.715 MB / 410.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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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 (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009679/0.9119, allocations: 3.487 MB / 0.4938 GB, free: 176 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005617/0.9176, allocations: 1.915 MB / 0.4956 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.9177, allocations: 0 / 0.4956 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003641/0.9213, allocations: 1.301 MB / 0.4969 GB, free: 12.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.9226, allocations: 102.5 kB / 0.497 GB, free: 12.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.9343, allocations: 2.814 MB / 0.4998 GB, free: 9.902 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.9355, allocations: 1.225 MB / 0.5009 GB, free: 8.648 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001416/0.937, allocations: 165 kB / 0.5011 GB, free: 8.484 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.9382, allocations: 0.5188 MB / 0.5016 GB, free: 7.965 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/0.9382, allocations: 3.938 kB / 0.5016 GB, free: 7.961 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4042/1.342, allocations: 26.79 MB / 0.5278 GB, free: 120.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002716/1.343, allocations: 203.6 kB / 0.528 GB, free: 120 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.952/5.295, allocations: 0 / 0.528 GB, free: 120 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat