Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.787e-05/2.792e-05, allocations: 0 / 269.4 MB, free: 6.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09814, allocations: 47.58 MB / 317 MB, free: 6.664 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4295/0.5277, allocations: 102.2 MB / 419.2 MB, free: 1.758 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.528, allocations: 78.33 kB / 419.3 MB, free: 1.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7028/1.231, allocations: 125.5 MB / 0.532 GB, free: 95.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.231, allocations: 3.812 kB / 0.532 GB, free: 95.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001537/1.231, allocations: 42.78 kB / 0.532 GB, free: 95.64 MB / 426.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.006563/1.238, allocations: 2.707 MB / 0.5347 GB, free: 94.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/1.238, allocations: 11.81 kB / 0.5347 GB, free: 94.24 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002887/1.238, allocations: 102.9 kB / 0.5348 GB, free: 94.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007192/1.239, allocations: 399 kB / 0.5352 GB, free: 94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005839/1.245, allocations: 2.373 MB / 0.5375 GB, free: 93.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.677e-05/1.245, allocations: 40.98 kB / 0.5375 GB, free: 93.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/1.245, allocations: 63.06 kB / 0.5376 GB, free: 93.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/1.247, allocations: 0.7769 MB / 0.5383 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/1.247, allocations: 0 / 0.5383 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/1.247, allocations: 21.34 kB / 0.5384 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/1.247, allocations: 22.75 kB / 0.5384 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/1.248, allocations: 0.7094 MB / 0.5391 GB, free: 93.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008545/1.257, allocations: 3.183 MB / 0.5422 GB, free: 92.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/1.258, allocations: 490.8 kB / 0.5426 GB, free: 92.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/1.259, allocations: 0.5866 MB / 0.5432 GB, free: 92.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04469/1.304, allocations: 36.18 MB / 0.5786 GB, free: 66.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006766/1.305, allocations: 318.3 kB / 0.5789 GB, free: 66.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.587e-06/1.305, allocations: 0 / 0.5789 GB, free: 66.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002769/1.307, allocations: 0.8078 MB / 0.5796 GB, free: 65.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/1.308, allocations: 268.8 kB / 0.5799 GB, free: 65.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008298/1.316, allocations: 2.515 MB / 0.5824 GB, free: 65.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/1.316, allocations: 38.64 kB / 0.5824 GB, free: 65.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/1.319, allocations: 1.502 MB / 0.5839 GB, free: 64.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/1.319, allocations: 170.8 kB / 0.584 GB, free: 64.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/1.319, allocations: 16.47 kB / 0.584 GB, free: 64.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/1.319, allocations: 337.9 kB / 0.5844 GB, free: 63.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008249/1.32, allocations: 194.7 kB / 0.5845 GB, free: 63.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/1.321, allocations: 0.5914 MB / 0.5851 GB, free: 63.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009692/1.322, allocations: 275 kB / 0.5854 GB, free: 63.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.448e-05/1.322, allocations: 3.969 kB / 0.5854 GB, free: 63.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003825/1.326, allocations: 1.1 MB / 0.5865 GB, free: 62.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/1.326, allocations: 9.156 kB / 0.5865 GB, free: 62.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002266/1.326, allocations: 79.47 kB / 0.5866 GB, free: 62.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.478e-05/1.327, allocations: 19.69 kB / 0.5866 GB, free: 62.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001992/1.329, allocations: 218 kB / 0.5868 GB, free: 62.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.424e-05/1.329, allocations: 28.77 kB / 0.5868 GB, free: 62.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003397/1.332, allocations: 122.3 kB / 0.5869 GB, free: 62.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/1.332, allocations: 64.88 kB / 0.587 GB, free: 62.8 MB / 426.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.0003445/1.333, allocations: 168.6 kB / 0.5871 GB, free: 62.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009686/1.334, allocations: 381.1 kB / 0.5875 GB, free: 62.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006756/1.34, allocations: 1.148 MB / 0.5886 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/1.341, allocations: 7.281 kB / 0.5886 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/1.341, allocations: 0 / 0.5886 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/1.341, allocations: 10.7 kB / 0.5886 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006737/1.347, allocations: 2.108 MB / 0.5907 GB, free: 61.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002018/1.348, allocations: 71.59 kB / 0.5908 GB, free: 61.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/1.349, allocations: 106.2 kB / 0.5909 GB, free: 61.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/1.349, allocations: 0 / 0.5909 GB, free: 61.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/1.349, allocations: 41.39 kB / 0.5909 GB, free: 61.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.608e-06/1.349, allocations: 2.938 kB / 0.5909 GB, free: 61.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.349, allocations: 3.5 kB / 0.5909 GB, free: 61.15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/1.353, allocations: 1.22 MB / 0.5921 GB, free: 60.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001921/1.355, allocations: 0.558 MB / 0.5927 GB, free: 60.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008628/1.356, allocations: 11.28 kB / 0.5927 GB, free: 60.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.358, allocations: 46.44 kB / 0.5927 GB, free: 60.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/1.358, allocations: 62.2 kB / 0.5928 GB, free: 60.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.358, allocations: 35.31 kB / 0.5928 GB, free: 60.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005977/1.364, allocations: 1.917 MB / 0.5947 GB, free: 59.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.025e-06/1.364, allocations: 0 / 0.5947 GB, free: 59.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003662/1.368, allocations: 0.6503 MB / 0.5953 GB, free: 59.22 MB / 426.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.005907/1.374, allocations: 2.634 MB / 0.5979 GB, free: 57.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002405/1.377, allocations: 0.682 MB / 0.5986 GB, free: 57.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.377, allocations: 2.719 kB / 0.5986 GB, free: 57.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/1.378, allocations: 395.4 kB / 0.5989 GB, free: 57.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004703/1.382, allocations: 0.504 MB / 0.5994 GB, free: 57.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/1.398, allocations: 3.635 MB / 0.603 GB, free: 55.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001887/1.4, allocations: 1.733 MB / 0.6047 GB, free: 54.21 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003359/1.403, allocations: 381.7 kB / 0.605 GB, free: 53.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002629/1.406, allocations: 1.215 MB / 0.6062 GB, free: 52.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.873e-06/1.406, allocations: 0 / 0.6062 GB, free: 52.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1658/1.572, allocations: 58.92 MB / 0.6638 GB, free: 14.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003045/1.572, allocations: 158 kB / 0.6639 GB, free: 13.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.67/7.242, allocations: 0 / 0.6639 GB, free: 13.88 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat