Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.147/2.147, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.126e-05/2.13e-05, allocations: 2.562 kB / 249.8 MB, free: 5.223 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09798, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4635/0.5615, allocations: 96.79 MB / 391.1 MB, free: 3.168 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.5618, allocations: 71 kB / 391.2 MB, free: 3.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3342/0.896, allocations: 84.86 MB / 476 MB, free: 11.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.8961, allocations: 0 / 476 MB, free: 11.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.086e-05/0.8961, allocations: 24 kB / 476 MB, free: 11.39 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.004897/0.901, allocations: 1.613 MB / 477.7 MB, free: 9.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.9011, allocations: 8.031 kB / 477.7 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000502/0.9016, allocations: 193.7 kB / 477.8 MB, free: 9.523 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003595/0.9052, allocations: 1.215 MB / 479.1 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.9053, allocations: 16 kB / 479.1 MB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.9055, allocations: 20 kB / 479.1 MB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001071/0.9065, allocations: 361.3 kB / 479.5 MB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.9076, allocations: 402.5 kB / 479.8 MB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.9076, allocations: 0 / 479.8 MB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.807e-05/0.9077, allocations: 0 / 479.8 MB, free: 7.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.808e-05/0.9078, allocations: 19.98 kB / 479.9 MB, free: 7.414 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.913, allocations: 1.598 MB / 481.5 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007176/0.9137, allocations: 263.3 kB / 481.7 MB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000781/0.9145, allocations: 361.9 kB / 482.1 MB, free: 5.141 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03516/0.9497, allocations: 18.19 MB / 0.4885 GB, free: 376 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007091/0.9505, allocations: 199.3 kB / 0.4887 GB, free: 164 kB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 5.16e-06/0.9505, allocations: 0 / 0.4887 GB, free: 164 kB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.328/1.279, allocations: 478.8 kB / 0.4892 GB, free: 92.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/1.279, allocations: 162.2 kB / 0.4893 GB, free: 92.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004194/1.283, allocations: 1.122 MB / 0.4904 GB, free: 91.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/1.283, allocations: 27.89 kB / 0.4905 GB, free: 91.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009867/1.284, allocations: 0.7187 MB / 0.4912 GB, free: 91.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/1.284, allocations: 93.55 kB / 0.4913 GB, free: 91.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.151e-05/1.284, allocations: 1.156 kB / 0.4913 GB, free: 91.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/1.284, allocations: 325.9 kB / 0.4916 GB, free: 91.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/1.285, allocations: 97.06 kB / 0.4917 GB, free: 91.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004951/1.285, allocations: 318.8 kB / 0.492 GB, free: 91.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/1.286, allocations: 145.7 kB / 0.4921 GB, free: 91.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/1.286, allocations: 2.469 kB / 0.4921 GB, free: 91.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002093/1.288, allocations: 0.5978 MB / 0.4927 GB, free: 90.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/1.288, allocations: 8.578 kB / 0.4927 GB, free: 90.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/1.288, allocations: 42.7 kB / 0.4927 GB, free: 90.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005575/1.289, allocations: 133 kB / 0.4929 GB, free: 90.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/1.29, allocations: 125 kB / 0.493 GB, free: 90.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/1.291, allocations: 0.6964 MB / 0.4937 GB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.292, allocations: 79.56 kB / 0.4937 GB, free: 90.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001992/1.293, allocations: 39.17 kB / 0.4938 GB, free: 90.42 MB / 394.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.0002721/1.293, allocations: 131.7 kB / 0.4939 GB, free: 90.31 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001526/1.295, allocations: 485 kB / 0.4944 GB, free: 90.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/1.295, allocations: 189 kB / 0.4945 GB, free: 90.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/1.298, allocations: 0.6523 MB / 0.4952 GB, free: 90.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/1.298, allocations: 6.344 kB / 0.4952 GB, free: 90.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.298, allocations: 0.9688 kB / 0.4952 GB, free: 90.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/1.298, allocations: 0 / 0.4952 GB, free: 90.01 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/1.302, allocations: 1.168 MB / 0.4963 GB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000128/1.302, allocations: 36.59 kB / 0.4964 GB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006103/1.302, allocations: 66.03 kB / 0.4964 GB, free: 89.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004328/1.303, allocations: 123.2 kB / 0.4965 GB, free: 89.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.313e-05/1.303, allocations: 15.8 kB / 0.4966 GB, free: 89.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008691/1.304, allocations: 0.6902 MB / 0.4972 GB, free: 89.17 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.304, allocations: 0 / 0.4972 GB, free: 89.17 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/1.305, allocations: 0.6276 MB / 0.4978 GB, free: 88.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000705/1.306, allocations: 288.3 kB / 0.4981 GB, free: 88.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004216/1.306, allocations: 3.312 kB / 0.4981 GB, free: 88.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/1.307, allocations: 38.75 kB / 0.4982 GB, free: 88.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/1.308, allocations: 48.38 kB / 0.4982 GB, free: 88.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/1.308, allocations: 24.2 kB / 0.4982 GB, free: 88.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001986/1.31, allocations: 0.8346 MB / 0.499 GB, free: 88.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.844e-06/1.31, allocations: 0 / 0.499 GB, free: 88.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001874/1.312, allocations: 347.7 kB / 0.4994 GB, free: 88.52 MB / 394.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.003351/1.315, allocations: 1.927 MB / 0.5013 GB, free: 87.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/1.317, allocations: 397.1 kB / 0.5016 GB, free: 87.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.317, allocations: 7.375 kB / 0.5016 GB, free: 87.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006468/1.317, allocations: 233.8 kB / 0.5019 GB, free: 87.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/1.319, allocations: 232.5 kB / 0.5021 GB, free: 87.42 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/1.325, allocations: 1.772 MB / 0.5038 GB, free: 86.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008653/1.326, allocations: 1.18 MB / 0.505 GB, free: 86.14 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002036/1.328, allocations: 183.3 kB / 0.5051 GB, free: 86.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/1.329, allocations: 0.5546 MB / 0.5057 GB, free: 86.12 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/1.329, allocations: 0 / 0.5057 GB, free: 86.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/1.442, allocations: 29.12 MB / 0.5341 GB, free: 84.68 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002767/1.443, allocations: 134.8 kB / 0.5342 GB, free: 84.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.154/5.597, allocations: 0 / 0.5342 GB, free: 84.49 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat