Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.079e-05/2.078e-05, allocations: 0 / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.248, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1796/0.4276, allocations: 93.28 MB / 351.6 MB, free: 0.582 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004045/0.428, allocations: 75.95 kB / 351.7 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6768/1.105, allocations: 122.2 MB / 473.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.105, allocations: 0 / 473.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.081e-05/1.105, allocations: 44 kB / 473.9 MB, free: 0.6445 MB / 314.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.007385/1.112, allocations: 2.71 MB / 476.6 MB, free: 13.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/1.112, allocations: 8.031 kB / 476.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/1.114, allocations: 399.1 kB / 477 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006877/1.12, allocations: 2.36 MB / 479.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/1.12, allocations: 20 kB / 479.4 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/1.121, allocations: 39.95 kB / 479.4 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00175/1.122, allocations: 0.6938 MB / 480.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/1.124, allocations: 0.7167 MB / 480.8 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/1.124, allocations: 4 kB / 480.8 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/1.124, allocations: 3.984 kB / 480.9 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/1.124, allocations: 16 kB / 480.9 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009156/1.134, allocations: 3.078 MB / 483.9 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/1.135, allocations: 475.8 kB / 484.4 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/1.136, allocations: 0.5654 MB / 485 MB, free: 5.312 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2956/1.432, allocations: 36.15 MB / 0.5089 GB, free: 52.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006117/1.432, allocations: 305.2 kB / 0.5092 GB, free: 52.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.799e-06/1.432, allocations: 0 / 0.5092 GB, free: 52.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001764/1.434, allocations: 0.7847 MB / 0.51 GB, free: 52.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/1.434, allocations: 275 kB / 0.5102 GB, free: 52.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004041/1.438, allocations: 2.313 MB / 0.5125 GB, free: 51.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001521/1.438, allocations: 33.09 kB / 0.5125 GB, free: 51.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/1.44, allocations: 1.237 MB / 0.5137 GB, free: 51.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/1.44, allocations: 154 kB / 0.5139 GB, free: 51.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/1.44, allocations: 0.5625 kB / 0.5139 GB, free: 51.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.752e-05/1.44, allocations: 345 kB / 0.5142 GB, free: 51.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/1.44, allocations: 179.4 kB / 0.5144 GB, free: 51.28 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006199/1.441, allocations: 0.5765 MB / 0.5149 GB, free: 50.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006945/1.442, allocations: 263.5 kB / 0.5152 GB, free: 50.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/1.442, allocations: 6.125 kB / 0.5152 GB, free: 50.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001722/1.444, allocations: 0.7236 MB / 0.5159 GB, free: 50.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/1.444, allocations: 11.56 kB / 0.5159 GB, free: 50.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/1.444, allocations: 81.78 kB / 0.516 GB, free: 50.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.569e-05/1.444, allocations: 18.31 kB / 0.516 GB, free: 50.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/1.445, allocations: 217.7 kB / 0.5162 GB, free: 50.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.635e-05/1.445, allocations: 26.47 kB / 0.5162 GB, free: 50.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/1.447, allocations: 117.9 kB / 0.5164 GB, free: 50.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/1.447, allocations: 59.06 kB / 0.5164 GB, free: 50.67 MB / 346.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.0002688/1.448, allocations: 146.8 kB / 0.5166 GB, free: 50.57 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001685/1.449, allocations: 0.7913 MB / 0.5173 GB, free: 50.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/1.45, allocations: 381.7 kB / 0.5177 GB, free: 50.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004378/1.454, allocations: 1.108 MB / 0.5188 GB, free: 50.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/1.454, allocations: 6.969 kB / 0.5188 GB, free: 50.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/1.454, allocations: 3.938 kB / 0.5188 GB, free: 50.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/1.454, allocations: 9.812 kB / 0.5188 GB, free: 50.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004711/1.459, allocations: 1.996 MB / 0.5207 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000175/1.459, allocations: 71.34 kB / 0.5208 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009246/1.46, allocations: 109.3 kB / 0.5209 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/1.46, allocations: 0 / 0.5209 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.535e-05/1.46, allocations: 29.47 kB / 0.5209 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/1.46, allocations: 6.75 kB / 0.5209 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.46, allocations: 0 / 0.5209 GB, free: 49.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/1.463, allocations: 1.189 MB / 0.5221 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/1.464, allocations: 0.5541 MB / 0.5227 GB, free: 48.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007676/1.465, allocations: 7.156 kB / 0.5227 GB, free: 48.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/1.466, allocations: 41.75 kB / 0.5227 GB, free: 48.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002389/1.467, allocations: 64.22 kB / 0.5228 GB, free: 48.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/1.467, allocations: 36.47 kB / 0.5228 GB, free: 48.9 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003457/1.47, allocations: 1.722 MB / 0.5245 GB, free: 48.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.513e-06/1.47, allocations: 0 / 0.5245 GB, free: 48.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002454/1.473, allocations: 0.6056 MB / 0.5251 GB, free: 48.71 MB / 346.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.004152/1.477, allocations: 2.697 MB / 0.5277 GB, free: 47.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/1.478, allocations: 0.6697 MB / 0.5284 GB, free: 47.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/1.478, allocations: 0 / 0.5284 GB, free: 47.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006926/1.479, allocations: 384.6 kB / 0.5287 GB, free: 47.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002983/1.482, allocations: 489.2 kB / 0.5292 GB, free: 47.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/1.493, allocations: 3.672 MB / 0.5328 GB, free: 46.29 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/1.494, allocations: 1.735 MB / 0.5345 GB, free: 45.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.496, allocations: 1.215 MB / 0.5357 GB, free: 45.55 MB / 346.7 MB Notification: Performance of SimCode: time 2.796e-06/1.496, allocations: 0 / 0.5357 GB, free: 45.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.538/5.034, allocations: 48.42 MB / 0.5829 GB, free: 20.51 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat