Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.294e-05/2.304e-05, allocations: 0 / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3103, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1635/0.4738, allocations: 93.28 MB / 351.6 MB, free: 460 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4741, allocations: 75.95 kB / 351.7 MB, free: 384 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6162/1.09, allocations: 122.2 MB / 473.9 MB, free: 464 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.594e-06/1.09, allocations: 0 / 473.9 MB, free: 464 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000113/1.09, allocations: 48 kB / 473.9 MB, free: 416 kB / 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.009647/1.1, allocations: 2.706 MB / 476.6 MB, free: 13.63 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.911e-05/1.1, allocations: 8.031 kB / 476.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/1.102, allocations: 403.1 kB / 477 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009371/1.111, allocations: 2.368 MB / 479.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.777e-05/1.111, allocations: 16 kB / 479.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/1.111, allocations: 31.95 kB / 479.5 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002901/1.114, allocations: 0.6861 MB / 480.1 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003375/1.118, allocations: 0.7284 MB / 480.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/1.118, allocations: 0 / 480.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/1.118, allocations: 0 / 480.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-05/1.118, allocations: 19.98 kB / 480.9 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/1.133, allocations: 3.082 MB / 484 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/1.135, allocations: 479.9 kB / 484.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/1.136, allocations: 0.5654 MB / 485 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2991/1.435, allocations: 36.15 MB / 0.5089 GB, free: 52.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006494/1.436, allocations: 304.8 kB / 0.5092 GB, free: 52.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.659e-06/1.436, allocations: 0 / 0.5092 GB, free: 52.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001839/1.438, allocations: 0.7824 MB / 0.51 GB, free: 52.22 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.861e-05/1.438, allocations: 271.1 kB / 0.5103 GB, free: 51.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/1.443, allocations: 2.316 MB / 0.5125 GB, free: 51.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/1.443, allocations: 25.7 kB / 0.5125 GB, free: 51.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001988/1.445, allocations: 1.51 MB / 0.514 GB, free: 51.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003668/1.445, allocations: 157.2 kB / 0.5142 GB, free: 51.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.55e-05/1.445, allocations: 0 / 0.5142 GB, free: 51.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/1.446, allocations: 342.9 kB / 0.5145 GB, free: 51 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/1.446, allocations: 172.4 kB / 0.5147 GB, free: 50.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000666/1.447, allocations: 0.5746 MB / 0.5152 GB, free: 50.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007251/1.447, allocations: 270.8 kB / 0.5155 GB, free: 50.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/1.447, allocations: 3.969 kB / 0.5155 GB, free: 50.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002335/1.45, allocations: 1.033 MB / 0.5165 GB, free: 50.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/1.45, allocations: 18.06 kB / 0.5165 GB, free: 50.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/1.45, allocations: 77.59 kB / 0.5166 GB, free: 50.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.011e-05/1.45, allocations: 19.5 kB / 0.5166 GB, free: 50.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/1.451, allocations: 213 kB / 0.5168 GB, free: 50.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.401e-05/1.451, allocations: 28.06 kB / 0.5168 GB, free: 50.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/1.455, allocations: 113.5 kB / 0.5169 GB, free: 50.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00039/1.455, allocations: 67.58 kB / 0.517 GB, free: 50.22 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.0004109/1.456, allocations: 142.6 kB / 0.5171 GB, free: 50.12 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003383/1.459, allocations: 0.7843 MB / 0.5179 GB, free: 49.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.46, allocations: 388.2 kB / 0.5183 GB, free: 49.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006832/1.467, allocations: 1.117 MB / 0.5194 GB, free: 49.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/1.467, allocations: 3.562 kB / 0.5194 GB, free: 49.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.467, allocations: 6.469 kB / 0.5194 GB, free: 49.6 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/1.467, allocations: 3.422 kB / 0.5194 GB, free: 49.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004918/1.472, allocations: 2.001 MB / 0.5213 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001745/1.472, allocations: 72.61 kB / 0.5214 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009212/1.473, allocations: 102.9 kB / 0.5215 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/1.473, allocations: 3.031 kB / 0.5215 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.84e-05/1.473, allocations: 24.83 kB / 0.5215 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/1.473, allocations: 6.875 kB / 0.5215 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.474, allocations: 0 / 0.5215 GB, free: 49.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/1.476, allocations: 1.188 MB / 0.5227 GB, free: 48.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/1.477, allocations: 0.5555 MB / 0.5232 GB, free: 48.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008377/1.478, allocations: 8.094 kB / 0.5232 GB, free: 48.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001496/1.48, allocations: 39.47 kB / 0.5233 GB, free: 48.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/1.48, allocations: 63.42 kB / 0.5233 GB, free: 48.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/1.48, allocations: 38.78 kB / 0.5234 GB, free: 48.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003238/1.483, allocations: 1.721 MB / 0.5251 GB, free: 48.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.483, allocations: 0 / 0.5251 GB, free: 48.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002411/1.486, allocations: 0.6101 MB / 0.5257 GB, free: 48.27 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.00414/1.49, allocations: 2.688 MB / 0.5283 GB, free: 47.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001507/1.491, allocations: 0.6708 MB / 0.5289 GB, free: 47.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/1.491, allocations: 0 / 0.5289 GB, free: 47.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006734/1.492, allocations: 384.4 kB / 0.5293 GB, free: 46.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/1.495, allocations: 0.503 MB / 0.5298 GB, free: 46.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009478/1.505, allocations: 3.59 MB / 0.5333 GB, free: 45.86 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/1.506, allocations: 1.738 MB / 0.535 GB, free: 45.13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002139/1.508, allocations: 381.5 kB / 0.5354 GB, free: 45.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001938/1.51, allocations: 1.217 MB / 0.5365 GB, free: 45.1 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/1.51, allocations: 1.969 kB / 0.5365 GB, free: 45.1 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.154/1.664, allocations: 53.7 MB / 0.589 GB, free: 13.4 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/1.665, allocations: 148.8 kB / 0.5891 GB, free: 13.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.933/7.598, allocations: 0 / 0.5891 GB, free: 13.2 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat