Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.602e-05/2.613e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3146, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.4748, allocations: 93.32 MB / 351.6 MB, free: 464 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.4751, allocations: 67.97 kB / 351.7 MB, free: 396 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.674/1.149, allocations: 124 MB / 475.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.149, allocations: 0 / 475.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.256e-05/1.149, allocations: 48 kB / 475.7 MB, free: 15.09 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007955/1.157, allocations: 2.797 MB / 478.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/1.157, allocations: 16.02 kB / 478.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009692/1.158, allocations: 418.9 kB / 478.9 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006742/1.165, allocations: 2.418 MB / 481.3 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/1.165, allocations: 16 kB / 481.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/1.165, allocations: 51.84 kB / 481.4 MB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001755/1.167, allocations: 0.6821 MB / 482.1 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/1.169, allocations: 0.7245 MB / 482.8 MB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/1.169, allocations: 4 kB / 482.8 MB, free: 7.797 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000107/1.169, allocations: 4 kB / 482.8 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-05/1.169, allocations: 27.91 kB / 482.8 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009217/1.178, allocations: 3.163 MB / 486 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/1.179, allocations: 471.8 kB / 486.5 MB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/1.181, allocations: 0.5693 MB / 487 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.301/1.482, allocations: 36.18 MB / 0.511 GB, free: 49.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006418/1.482, allocations: 307.3 kB / 0.5112 GB, free: 49.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.118e-06/1.482, allocations: 0 / 0.5112 GB, free: 49.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001939/1.484, allocations: 0.8002 MB / 0.512 GB, free: 48.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/1.484, allocations: 275.9 kB / 0.5123 GB, free: 48.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00494/1.489, allocations: 2.445 MB / 0.5147 GB, free: 48.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001715/1.49, allocations: 32.48 kB / 0.5147 GB, free: 48.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001489/1.491, allocations: 1.298 MB / 0.516 GB, free: 48.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003201/1.491, allocations: 162.1 kB / 0.5161 GB, free: 47.94 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.424e-05/1.491, allocations: 2.031 kB / 0.5161 GB, free: 47.94 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.784e-05/1.492, allocations: 347.2 kB / 0.5165 GB, free: 47.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/1.492, allocations: 172.1 kB / 0.5166 GB, free: 47.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006915/1.493, allocations: 0.5818 MB / 0.5172 GB, free: 47.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006932/1.493, allocations: 257.3 kB / 0.5174 GB, free: 47.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-05/1.493, allocations: 4.734 kB / 0.5174 GB, free: 47.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0018/1.495, allocations: 0.7258 MB / 0.5182 GB, free: 47.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/1.495, allocations: 14.03 kB / 0.5182 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001956/1.496, allocations: 85.52 kB / 0.5183 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.572e-05/1.496, allocations: 20.72 kB / 0.5183 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/1.497, allocations: 215.2 kB / 0.5185 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.467e-05/1.497, allocations: 23.22 kB / 0.5185 GB, free: 47.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/1.499, allocations: 103.9 kB / 0.5186 GB, free: 47.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/1.499, allocations: 67.19 kB / 0.5187 GB, free: 47.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002821/1.5, allocations: 142.7 kB / 0.5188 GB, free: 46.91 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001904/1.502, allocations: 0.8011 MB / 0.5196 GB, free: 46.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005847/1.502, allocations: 403.1 kB / 0.52 GB, free: 46.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004461/1.507, allocations: 1.122 MB / 0.5211 GB, free: 46.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/1.507, allocations: 9.625 kB / 0.5211 GB, free: 46.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.507, allocations: 0 / 0.5211 GB, free: 46.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/1.507, allocations: 7.766 kB / 0.5211 GB, free: 46.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005151/1.512, allocations: 2.093 MB / 0.5231 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001891/1.512, allocations: 71.97 kB / 0.5232 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008827/1.513, allocations: 100.6 kB / 0.5233 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/1.513, allocations: 3.188 kB / 0.5233 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.783e-05/1.513, allocations: 27.12 kB / 0.5233 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/1.513, allocations: 5.344 kB / 0.5233 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.513, allocations: 3.844 kB / 0.5233 GB, free: 46.03 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/1.516, allocations: 1.203 MB / 0.5245 GB, free: 45.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/1.517, allocations: 0.5199 MB / 0.525 GB, free: 45.27 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000668/1.518, allocations: 5.094 kB / 0.525 GB, free: 45.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/1.519, allocations: 44.91 kB / 0.5251 GB, free: 45.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/1.519, allocations: 65.05 kB / 0.5251 GB, free: 45.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.937e-05/1.519, allocations: 38.67 kB / 0.5252 GB, free: 45.27 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003408/1.523, allocations: 1.819 MB / 0.5269 GB, free: 45.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.523, allocations: 0 / 0.5269 GB, free: 45.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002449/1.525, allocations: 0.6196 MB / 0.5275 GB, free: 45.08 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004206/1.529, allocations: 2.762 MB / 0.5302 GB, free: 44.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/1.531, allocations: 0.6692 MB / 0.5309 GB, free: 43.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.531, allocations: 0 / 0.5309 GB, free: 43.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006561/1.532, allocations: 379 kB / 0.5312 GB, free: 43.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/1.535, allocations: 0.5131 MB / 0.5317 GB, free: 43.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009802/1.545, allocations: 3.836 MB / 0.5355 GB, free: 42.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/1.546, allocations: 1.785 MB / 0.5372 GB, free: 41.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001845/1.548, allocations: 1.265 MB / 0.5385 GB, free: 41.85 MB / 346.7 MB Notification: Performance of SimCode: time 1.242e-06/1.548, allocations: 0 / 0.5385 GB, free: 41.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.624/5.171, allocations: 50.43 MB / 0.5877 GB, free: 14.98 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat