Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.207e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09506, allocations: 44.49 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.566, allocations: 97.47 MB / 397.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.5663, allocations: 72.31 kB / 397.5 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3306/0.8969, allocations: 89.31 MB / 486.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.897, allocations: 3.938 kB / 486.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.235e-05/0.897, allocations: 20 kB / 486.9 MB, free: 13.12 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0045/0.9015, allocations: 1.606 MB / 488.5 MB, free: 11.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.9016, allocations: 8.031 kB / 488.5 MB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001487/0.9018, allocations: 66.53 kB / 488.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000411/0.9022, allocations: 201.7 kB / 488.7 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003281/0.9055, allocations: 1.219 MB / 489.9 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.9056, allocations: 16.56 kB / 490 MB, free: 9.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.9057, allocations: 31.94 kB / 490 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.9068, allocations: 438.5 kB / 490.4 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.9069, allocations: 4 kB / 490.4 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.496e-05/0.907, allocations: 12 kB / 490.4 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.907, allocations: 8 kB / 490.4 MB, free: 9.367 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.908, allocations: 373.3 kB / 490.8 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005022/0.9131, allocations: 1.658 MB / 492.5 MB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007595/0.9139, allocations: 284.8 kB / 492.7 MB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008026/0.9147, allocations: 350 kB / 493.1 MB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03013/0.9449, allocations: 18.19 MB / 0.4993 GB, free: 1.863 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005548/0.9455, allocations: 211.2 kB / 0.4995 GB, free: 1.645 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.657e-06/0.9455, allocations: 0 / 0.4995 GB, free: 1.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001431/0.9469, allocations: 496.2 kB / 0.5 GB, free: 1.148 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.9471, allocations: 162.2 kB / 0.5001 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002504/0.9496, allocations: 1.205 MB / 0.5013 GB, free: 15.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.367e-05/0.9497, allocations: 37.64 kB / 0.5013 GB, free: 15.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009517/0.9507, allocations: 0.7299 MB / 0.502 GB, free: 14.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.9509, allocations: 98.72 kB / 0.5021 GB, free: 14.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.9509, allocations: 12 kB / 0.5022 GB, free: 14.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.9511, allocations: 322 kB / 0.5025 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.9515, allocations: 105.1 kB / 0.5026 GB, free: 14.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.9521, allocations: 330.7 kB / 0.5029 GB, free: 13.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.9525, allocations: 156.3 kB / 0.503 GB, free: 13.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.9525, allocations: 4 kB / 0.503 GB, free: 13.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001708/0.9543, allocations: 0.6348 MB / 0.5037 GB, free: 13.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.9543, allocations: 8.625 kB / 0.5037 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.9544, allocations: 47.95 kB / 0.5037 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005087/0.9549, allocations: 132.7 kB / 0.5038 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.9558, allocations: 120.3 kB / 0.5039 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009259/0.9567, allocations: 0.6811 MB / 0.5046 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.9579, allocations: 79.56 kB / 0.5047 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.706e-05/0.958, allocations: 36 kB / 0.5047 GB, free: 12.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.9583, allocations: 144.6 kB / 0.5049 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002875/0.9586, allocations: 197.8 kB / 0.505 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.9614, allocations: 0.6606 MB / 0.5057 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.9615, allocations: 7.938 kB / 0.5057 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.9615, allocations: 3.953 kB / 0.5057 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.9615, allocations: 0 / 0.5057 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.9645, allocations: 1.234 MB / 0.5069 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.563e-05/0.9646, allocations: 36 kB / 0.5069 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005165/0.9652, allocations: 59.94 kB / 0.507 GB, free: 9.637 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004011/0.9656, allocations: 128.8 kB / 0.5071 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.728e-05/0.9657, allocations: 23.95 kB / 0.5071 GB, free: 9.484 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008467/0.9665, allocations: 0.6694 MB / 0.5078 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.9665, allocations: 0 / 0.5078 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.9679, allocations: 0.6493 MB / 0.5084 GB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006405/0.9686, allocations: 286.7 kB / 0.5087 GB, free: 7.793 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/0.9688, allocations: 8 kB / 0.5087 GB, free: 7.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008745/0.9697, allocations: 48.08 kB / 0.5088 GB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.9699, allocations: 39.95 kB / 0.5088 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.836e-05/0.97, allocations: 19.98 kB / 0.5088 GB, free: 7.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001958/0.9719, allocations: 0.9353 MB / 0.5097 GB, free: 6.719 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.972, allocations: 0 / 0.5097 GB, free: 6.719 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001488/0.9735, allocations: 371.6 kB / 0.5101 GB, free: 6.355 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00302/0.9765, allocations: 1.857 MB / 0.5119 GB, free: 4.445 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.9778, allocations: 408.7 kB / 0.5123 GB, free: 4.035 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.9778, allocations: 4.125 kB / 0.5123 GB, free: 4.031 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006706/0.9785, allocations: 245.3 kB / 0.5125 GB, free: 3.781 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.98, allocations: 227.1 kB / 0.5127 GB, free: 3.555 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005298/0.9853, allocations: 1.794 MB / 0.5145 GB, free: 1.707 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009969/0.9864, allocations: 1.184 MB / 0.5157 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001085/0.9875, allocations: 178.5 kB / 0.5158 GB, free: 320 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2915/1.279, allocations: 0.5531 MB / 0.5164 GB, free: 98.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.783e-06/1.279, allocations: 0 / 0.5164 GB, free: 98.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/1.387, allocations: 33.6 MB / 0.5492 GB, free: 97.14 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/1.387, allocations: 189.3 kB / 0.5494 GB, free: 96.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.155/5.543, allocations: 3.938 kB / 0.5494 GB, free: 96.89 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat