Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.166/2.166, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.933e-05/3.981e-05, allocations: 8 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3255, allocations: 44.49 MB / 294.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1546/0.4802, allocations: 75.41 MB / 369.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4805, allocations: 71.97 kB / 369.7 MB, free: 6.434 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03981/0.5203, allocations: 6.289 MB / 376 MB, free: 116 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5204, allocations: 4 kB / 376 MB, free: 112 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.282e-05/0.5205, allocations: 8 kB / 376 MB, free: 104 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.003413/0.524, allocations: 0.7127 MB / 376.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.47e-05/0.5241, allocations: 8.031 kB / 376.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003647/0.5244, allocations: 47.48 kB / 376.8 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.5259, allocations: 297.5 kB / 377.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/0.526, allocations: 12 kB / 377.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.5262, allocations: 27.94 kB / 377.1 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001547/0.5277, allocations: 337.4 kB / 377.4 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.5292, allocations: 360 kB / 377.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.5293, allocations: 3.938 kB / 377.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.5293, allocations: 3.984 kB / 377.8 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.5294, allocations: 12 kB / 377.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004357/0.5337, allocations: 1.347 MB / 379.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.5351, allocations: 351.5 kB / 379.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005145/0.5357, allocations: 177.8 kB / 379.7 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.712e-05/0.5358, allocations: 20.3 kB / 379.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.5358, allocations: 38.89 kB / 379.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 6.452e-06/0.5359, allocations: 0 / 379.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.002289/0.5382, allocations: 492.8 kB / 380.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5383, allocations: 158.2 kB / 380.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003742/0.5387, allocations: 210.3 kB / 380.6 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.221e-05/0.5388, allocations: 29.7 kB / 380.6 MB, free: 11.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.5391, allocations: 212.3 kB / 380.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.5392, allocations: 130 kB / 380.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.395e-05/0.5393, allocations: 0 / 380.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.5394, allocations: 338.8 kB / 381.3 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.5398, allocations: 112.9 kB / 381.4 MB, free: 10.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.5403, allocations: 209.8 kB / 381.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004983/0.5408, allocations: 147.1 kB / 381.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.5408, allocations: 0 / 381.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002805/0.5436, allocations: 0.6157 MB / 382.3 MB, free: 9.449 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.5437, allocations: 4 kB / 382.3 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.5437, allocations: 7.953 kB / 382.3 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.5452, allocations: 253.5 kB / 382.6 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000706/0.5459, allocations: 83.94 kB / 382.7 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.5483, allocations: 1.343 MB / 384 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.5496, allocations: 87.64 kB / 384.1 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.369e-05/0.5497, allocations: 20 kB / 384.1 MB, free: 7.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002466/0.55, allocations: 112.7 kB / 384.2 MB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003/0.553, allocations: 498.5 kB / 384.7 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.5532, allocations: 35.62 kB / 384.8 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.557, allocations: 0.5915 MB / 385.3 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.557, allocations: 4 kB / 385.3 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5571, allocations: 0 / 385.3 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.5571, allocations: 11.98 kB / 385.4 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.5582, allocations: 397.7 kB / 385.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.5582, allocations: 0 / 385.7 MB, free: 5.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007919/0.559, allocations: 59.95 kB / 385.8 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.561, allocations: 257.5 kB / 386.1 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.5611, allocations: 15.92 kB / 386.1 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.5636, allocations: 1.343 MB / 387.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.5637, allocations: 0 / 387.4 MB, free: 4.176 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004741/0.5684, allocations: 0.8477 MB / 388.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.5687, allocations: 116.6 kB / 388.4 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.5689, allocations: 0 / 388.4 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5699, allocations: 56 kB / 388.4 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.5701, allocations: 23.97 kB / 388.5 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.5702, allocations: 12 kB / 388.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003393/0.5706, allocations: 158 kB / 388.6 MB, free: 2.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5706, allocations: 0 / 388.6 MB, free: 2.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001063/0.5717, allocations: 99.77 kB / 388.7 MB, free: 2.832 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005165/0.5768, allocations: 1.39 MB / 390.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.5785, allocations: 343.7 kB / 390.4 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.5786, allocations: 0.5 kB / 390.4 MB, free: 1.074 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008856/0.5795, allocations: 199.8 kB / 390.6 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007202/0.5802, allocations: 36.7 kB / 390.7 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.5832, allocations: 0.6284 MB / 391.3 MB, free: 172 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006917/0.584, allocations: 0.7995 MB / 392.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003966/0.5844, allocations: 31.28 kB / 392.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.5848, allocations: 123.4 kB / 392.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.754e-06/0.5848, allocations: 0 / 392.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06402/0.6488, allocations: 7.622 MB / 399.9 MB, free: 7.598 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004236/0.6493, allocations: 143.1 kB / 400 MB, free: 7.406 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.861/3.51, allocations: 0 / 400 MB, free: 7.406 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat