Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.695e-05/3.699e-05, allocations: 4 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09498, allocations: 44.5 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4706/0.5656, allocations: 97.78 MB / 397.8 MB, free: 12.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.5659, allocations: 72.72 kB / 397.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.44/1.006, allocations: 125.3 MB / 0.5109 GB, free: 7.922 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.006, allocations: 0 / 0.5109 GB, free: 7.922 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.811e-05/1.006, allocations: 48 kB / 0.5109 GB, free: 7.875 MB / 410.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.008034/1.014, allocations: 2.709 MB / 0.5136 GB, free: 5.109 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/1.014, allocations: 12.03 kB / 0.5136 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003673/1.015, allocations: 98.5 kB / 0.5137 GB, free: 4.992 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009742/1.016, allocations: 395.2 kB / 0.5141 GB, free: 4.602 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007337/1.023, allocations: 2.368 MB / 0.5164 GB, free: 2.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.303e-05/1.023, allocations: 40.98 kB / 0.5164 GB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003334/1.023, allocations: 55.91 kB / 0.5165 GB, free: 2.066 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/1.026, allocations: 0.7774 MB / 0.5172 GB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/1.026, allocations: 4 kB / 0.5172 GB, free: 1.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/1.026, allocations: 20 kB / 0.5173 GB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/1.026, allocations: 19.98 kB / 0.5173 GB, free: 1.211 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/1.028, allocations: 0.713 MB / 0.518 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2932/1.321, allocations: 3.184 MB / 0.5211 GB, free: 79.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/1.322, allocations: 488.4 kB / 0.5215 GB, free: 79.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/1.324, allocations: 0.591 MB / 0.5221 GB, free: 79.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05219/1.376, allocations: 36.18 MB / 0.5574 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007455/1.377, allocations: 328.9 kB / 0.5578 GB, free: 52.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.097e-06/1.377, allocations: 0 / 0.5578 GB, free: 52.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00216/1.379, allocations: 0.7967 MB / 0.5585 GB, free: 52.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/1.379, allocations: 274.9 kB / 0.5588 GB, free: 52.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008836/1.388, allocations: 2.511 MB / 0.5613 GB, free: 51.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002581/1.388, allocations: 35.98 kB / 0.5613 GB, free: 51.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003201/1.392, allocations: 1.509 MB / 0.5628 GB, free: 51.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/1.392, allocations: 163.6 kB / 0.5629 GB, free: 51.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/1.392, allocations: 15.38 kB / 0.5629 GB, free: 51.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/1.392, allocations: 341.3 kB / 0.5633 GB, free: 51.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000898/1.393, allocations: 187 kB / 0.5634 GB, free: 51.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/1.395, allocations: 0.5933 MB / 0.564 GB, free: 50.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/1.396, allocations: 285 kB / 0.5643 GB, free: 50.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/1.396, allocations: 3.344 kB / 0.5643 GB, free: 50.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002686/1.398, allocations: 1.096 MB / 0.5654 GB, free: 50.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.629e-05/1.398, allocations: 9.562 kB / 0.5654 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/1.399, allocations: 84.03 kB / 0.5655 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.655e-05/1.399, allocations: 22.48 kB / 0.5655 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/1.401, allocations: 212.7 kB / 0.5657 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.01e-05/1.402, allocations: 21.47 kB / 0.5657 GB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005202/1.407, allocations: 128.3 kB / 0.5658 GB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004889/1.407, allocations: 66.06 kB / 0.5659 GB, free: 50.45 MB / 410.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.0005167/1.408, allocations: 177.9 kB / 0.566 GB, free: 50.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/1.409, allocations: 382.5 kB / 0.5664 GB, free: 50.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007208/1.417, allocations: 1.145 MB / 0.5675 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/1.417, allocations: 11.42 kB / 0.5675 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/1.417, allocations: 0 / 0.5675 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/1.417, allocations: 0 / 0.5675 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008157/1.425, allocations: 2.116 MB / 0.5696 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002077/1.425, allocations: 74.23 kB / 0.5697 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/1.427, allocations: 105.5 kB / 0.5698 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/1.427, allocations: 3.375 kB / 0.5698 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/1.427, allocations: 35.42 kB / 0.5698 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.187e-05/1.427, allocations: 7.75 kB / 0.5698 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.427, allocations: 0 / 0.5698 GB, free: 49.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003653/1.431, allocations: 1.205 MB / 0.571 GB, free: 49.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.432, allocations: 0.5517 MB / 0.5715 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006942/1.433, allocations: 17.53 kB / 0.5716 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/1.435, allocations: 45.72 kB / 0.5716 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/1.435, allocations: 61.42 kB / 0.5717 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/1.435, allocations: 39.64 kB / 0.5717 GB, free: 48.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004397/1.44, allocations: 1.913 MB / 0.5736 GB, free: 48.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.432e-06/1.44, allocations: 7.062 kB / 0.5736 GB, free: 48.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002617/1.442, allocations: 0.6468 MB / 0.5742 GB, free: 48.67 MB / 410.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.004372/1.447, allocations: 2.623 MB / 0.5768 GB, free: 47.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001682/1.448, allocations: 0.6973 MB / 0.5774 GB, free: 47.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.448, allocations: 0 / 0.5774 GB, free: 47.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007254/1.449, allocations: 388.1 kB / 0.5778 GB, free: 47.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/1.452, allocations: 0.4997 MB / 0.5783 GB, free: 47.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/1.463, allocations: 3.649 MB / 0.5819 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001416/1.464, allocations: 1.729 MB / 0.5836 GB, free: 45.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002285/1.467, allocations: 375.8 kB / 0.5839 GB, free: 45.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001956/1.469, allocations: 1.213 MB / 0.5851 GB, free: 45.49 MB / 410.7 MB Notification: Performance of SimCode: time 2.534e-06/1.469, allocations: 3.625 kB / 0.5851 GB, free: 45.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1534/1.622, allocations: 58.9 MB / 0.6426 GB, free: 14.48 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/1.622, allocations: 162 kB / 0.6428 GB, free: 14.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.261/7.884, allocations: 3.938 kB / 0.6428 GB, free: 14.25 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat