Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.438e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3254, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1688/0.4942, allocations: 97.13 MB / 391.3 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/0.4946, allocations: 67.97 kB / 391.4 MB, free: 0.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6446/1.139, allocations: 121.9 MB / 0.5013 GB, free: 35.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.139, allocations: 0 / 0.5013 GB, free: 35.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.007e-05/1.139, allocations: 48 kB / 0.5013 GB, free: 35.32 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007018/1.146, allocations: 2.8 MB / 0.504 GB, free: 32.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/1.146, allocations: 11.97 kB / 0.504 GB, free: 32.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/1.147, allocations: 418.9 kB / 0.5044 GB, free: 32.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006245/1.154, allocations: 2.425 MB / 0.5068 GB, free: 29.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/1.154, allocations: 19.98 kB / 0.5068 GB, free: 29.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/1.154, allocations: 40 kB / 0.5069 GB, free: 29.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001525/1.156, allocations: 0.6861 MB / 0.5075 GB, free: 28.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/1.157, allocations: 0.7206 MB / 0.5082 GB, free: 28.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/1.157, allocations: 0 / 0.5082 GB, free: 28.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/1.157, allocations: 0 / 0.5082 GB, free: 28.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.828e-05/1.157, allocations: 23.98 kB / 0.5083 GB, free: 28.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008646/1.166, allocations: 3.164 MB / 0.5114 GB, free: 24.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/1.167, allocations: 471.8 kB / 0.5118 GB, free: 24.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009476/1.168, allocations: 0.5887 MB / 0.5124 GB, free: 23.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0499/1.218, allocations: 36.17 MB / 0.5477 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007292/1.219, allocations: 321.2 kB / 0.548 GB, free: 14.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 4.368e-06/1.219, allocations: 0 / 0.548 GB, free: 14.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002147/1.221, allocations: 0.7935 MB / 0.5488 GB, free: 13.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/1.221, allocations: 269 kB / 0.549 GB, free: 12.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005665/1.227, allocations: 2.457 MB / 0.5514 GB, free: 10.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001688/1.227, allocations: 33.64 kB / 0.5515 GB, free: 10.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001867/1.229, allocations: 1.294 MB / 0.5527 GB, free: 9.168 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003456/1.229, allocations: 169.7 kB / 0.5529 GB, free: 9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.295e-05/1.229, allocations: 0 / 0.5529 GB, free: 9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/1.229, allocations: 346.8 kB / 0.5532 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/1.23, allocations: 170.6 kB / 0.5534 GB, free: 8.484 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008258/1.231, allocations: 0.5824 MB / 0.554 GB, free: 7.703 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007757/1.232, allocations: 256.5 kB / 0.5542 GB, free: 7.449 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/1.232, allocations: 4 kB / 0.5542 GB, free: 7.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001961/1.234, allocations: 0.7222 MB / 0.5549 GB, free: 6.719 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/1.234, allocations: 15.94 kB / 0.5549 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002189/1.234, allocations: 79.98 kB / 0.555 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.919e-05/1.234, allocations: 23.95 kB / 0.555 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/1.235, allocations: 215.7 kB / 0.5552 GB, free: 6.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.108e-05/1.235, allocations: 23.92 kB / 0.5553 GB, free: 6.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/1.238, allocations: 103 kB / 0.5554 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/1.238, allocations: 64 kB / 0.5554 GB, free: 6.203 MB / 394.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.0002806/1.238, allocations: 148.6 kB / 0.5556 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002286/1.24, allocations: 0.8011 MB / 0.5563 GB, free: 5.238 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009344/1.241, allocations: 411.1 kB / 0.5567 GB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004952/1.246, allocations: 1.129 MB / 0.5578 GB, free: 3.695 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/1.246, allocations: 8 kB / 0.5578 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/1.246, allocations: 0 / 0.5578 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/1.246, allocations: 3.984 kB / 0.5578 GB, free: 3.684 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005825/1.252, allocations: 2.094 MB / 0.5599 GB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000205/1.253, allocations: 71.98 kB / 0.56 GB, free: 1.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009433/1.254, allocations: 91.92 kB / 0.56 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/1.254, allocations: 4 kB / 0.5601 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/1.254, allocations: 40.05 kB / 0.5601 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/1.254, allocations: 7.938 kB / 0.5601 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.254, allocations: 0 / 0.5601 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002739/1.256, allocations: 1.201 MB / 0.5613 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2767/1.533, allocations: 0.5133 MB / 0.5618 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.534, allocations: 5.875 kB / 0.5618 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001927/1.536, allocations: 37.25 kB / 0.5618 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003554/1.537, allocations: 59.14 kB / 0.5619 GB, free: 87.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/1.537, allocations: 37.75 kB / 0.5619 GB, free: 87.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005975/1.543, allocations: 1.826 MB / 0.5637 GB, free: 87.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.474e-06/1.543, allocations: 0 / 0.5637 GB, free: 87.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003105/1.546, allocations: 0.6238 MB / 0.5643 GB, free: 87.27 MB / 394.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.005296/1.551, allocations: 2.747 MB / 0.567 GB, free: 86.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001743/1.553, allocations: 0.6641 MB / 0.5676 GB, free: 86.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/1.553, allocations: 1.125 kB / 0.5676 GB, free: 86.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008007/1.554, allocations: 388.9 kB / 0.568 GB, free: 85.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/1.558, allocations: 0.5124 MB / 0.5685 GB, free: 85.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/1.569, allocations: 3.839 MB / 0.5723 GB, free: 84.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/1.57, allocations: 1.78 MB / 0.574 GB, free: 84.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/1.572, allocations: 1.26 MB / 0.5752 GB, free: 84.07 MB / 394.7 MB Notification: Performance of SimCode: time 1.703e-06/1.572, allocations: 0 / 0.5752 GB, free: 84.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.454/5.026, allocations: 50.43 MB / 0.6245 GB, free: 67.25 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat