Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.512e-05, allocations: 7.984 kB / 292.7 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 50.42 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4443/0.5487, allocations: 96.1 MB / 439.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.549, allocations: 86.95 kB / 439.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.147/0.6961, allocations: 37.14 MB / 476.5 MB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6961, allocations: 4 kB / 476.5 MB, free: 13.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.529e-05/0.6962, allocations: 28 kB / 476.5 MB, free: 13.11 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.00679/0.703, allocations: 1.603 MB / 478.1 MB, free: 11.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.7031, allocations: 8.031 kB / 478.1 MB, free: 11.44 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006624/0.7038, allocations: 214.2 kB / 478.3 MB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003988/0.7078, allocations: 449.8 kB / 478.8 MB, free: 10.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.7099, allocations: 0.7503 MB / 479.5 MB, free: 9.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.7101, allocations: 148.6 kB / 479.7 MB, free: 9.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004038/0.7105, allocations: 159.9 kB / 479.8 MB, free: 9.672 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003808/0.7144, allocations: 1.239 MB / 481.1 MB, free: 8.414 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.13e-05/0.7145, allocations: 0 / 481.1 MB, free: 8.414 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002285/0.7147, allocations: 67.98 kB / 481.1 MB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.7147, allocations: 32 kB / 481.2 MB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003731/0.7185, allocations: 1.154 MB / 482.3 MB, free: 7.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.7325, allocations: 4.958 MB / 487.3 MB, free: 1.977 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004167/0.7367, allocations: 1.844 MB / 489.1 MB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.7381, allocations: 0.516 MB / 489.6 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000198/0.7384, allocations: 118.1 kB / 489.8 MB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001695/0.7401, allocations: 0.6839 MB / 490.4 MB, free: 14.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 4.258e-06/0.7401, allocations: 4 kB / 490.4 MB, free: 14.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.02002/0.7601, allocations: 4.904 MB / 495.3 MB, free: 9.621 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/0.7603, allocations: 230.9 kB / 495.6 MB, free: 9.348 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.7615, allocations: 0.5307 MB / 496.1 MB, free: 8.809 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002503/0.7617, allocations: 57.7 kB / 496.2 MB, free: 8.746 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006098/0.7623, allocations: 0.5624 MB / 496.7 MB, free: 8.172 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006676/0.763, allocations: 0.5313 MB / 497.3 MB, free: 7.633 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.7632, allocations: 36 kB / 497.3 MB, free: 7.598 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000251/0.7634, allocations: 410.7 kB / 497.7 MB, free: 7.188 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.7649, allocations: 456 kB / 498.1 MB, free: 6.742 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.7666, allocations: 0.7718 MB / 498.9 MB, free: 5.848 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001656/0.7682, allocations: 0.5586 MB / 499.5 MB, free: 5.293 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/0.7683, allocations: 8 kB / 499.5 MB, free: 5.285 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.006597/0.7749, allocations: 1.872 MB / 0.4896 GB, free: 3.387 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.775, allocations: 8 kB / 0.4896 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.775, allocations: 11.94 kB / 0.4896 GB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002604/0.7776, allocations: 477.6 kB / 0.4901 GB, free: 2.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002392/0.78, allocations: 291.5 kB / 0.4903 GB, free: 2.605 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01518/0.7952, allocations: 8.586 MB / 0.4987 GB, free: 9.484 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.7972, allocations: 91.8 kB / 0.4988 GB, free: 9.395 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/0.7975, allocations: 67.98 kB / 0.4989 GB, free: 9.328 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.0004687/0.798, allocations: 211.8 kB / 0.4991 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.7983, allocations: 106.8 kB / 0.4992 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006456/0.8047, allocations: 1.757 MB / 0.5009 GB, free: 7.227 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.663e-05/0.8048, allocations: 16 kB / 0.5009 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.8048, allocations: 8 kB / 0.5009 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.325e-05/0.8049, allocations: 12.25 kB / 0.5009 GB, free: 7.191 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.8153, allocations: 3.567 MB / 0.5044 GB, free: 3.539 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.8154, allocations: 0 / 0.5044 GB, free: 3.539 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/0.8174, allocations: 211.6 kB / 0.5046 GB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/0.8199, allocations: 464.8 kB / 0.5051 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.82, allocations: 35.97 kB / 0.5051 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01446/0.8345, allocations: 8.32 MB / 0.5132 GB, free: 9.988 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.8345, allocations: 4.031 kB / 0.5132 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/0.8427, allocations: 2.495 MB / 0.5157 GB, free: 7.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007895/0.8435, allocations: 295.6 kB / 0.5159 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.8438, allocations: 36 kB / 0.516 GB, free: 7.086 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.8453, allocations: 67.95 kB / 0.516 GB, free: 7.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004684/0.8457, allocations: 133.1 kB / 0.5162 GB, free: 6.891 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/0.8459, allocations: 55.97 kB / 0.5162 GB, free: 6.836 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008033/0.8467, allocations: 407.2 kB / 0.5166 GB, free: 6.441 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8467, allocations: 0 / 0.5166 GB, free: 6.441 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00234/0.8491, allocations: 432 kB / 0.517 GB, free: 6.02 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.008976/0.8581, allocations: 3.464 MB / 0.5204 GB, free: 2.484 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005004/0.8631, allocations: 1.878 MB / 0.5222 GB, free: 0.5742 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.8632, allocations: 0 / 0.5222 GB, free: 0.5742 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2771/1.14, allocations: 1.298 MB / 0.5235 GB, free: 123.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/1.141, allocations: 90.09 kB / 0.5236 GB, free: 123.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/1.15, allocations: 2.301 MB / 0.5258 GB, free: 122.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/1.151, allocations: 1.218 MB / 0.527 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001349/1.152, allocations: 155.7 kB / 0.5272 GB, free: 121.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009776/1.153, allocations: 0.5141 MB / 0.5277 GB, free: 121.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.412e-06/1.153, allocations: 0 / 0.5277 GB, free: 121.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07517/1.229, allocations: 26.64 MB / 0.5537 GB, free: 120.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/1.229, allocations: 202.5 kB / 0.5539 GB, free: 120.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.968/5.197, allocations: 0 / 0.5539 GB, free: 120.1 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat