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.944/1.944, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.382e-05, allocations: 4 kB / 255.4 MB, free: 2.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09422, allocations: 44.52 MB / 300 MB, free: 6.086 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.5619, allocations: 97.76 MB / 397.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.5623, allocations: 77.61 kB / 397.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4853/1.048, allocations: 125.3 MB / 0.5109 GB, free: 8.121 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.048, allocations: 0 / 0.5109 GB, free: 8.121 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001042/1.048, allocations: 44 kB / 0.5109 GB, free: 8.078 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.008139/1.056, allocations: 2.702 MB / 0.5136 GB, free: 5.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/1.056, allocations: 11.97 kB / 0.5136 GB, free: 5.309 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003787/1.056, allocations: 106.4 kB / 0.5137 GB, free: 5.195 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009756/1.057, allocations: 395.2 kB / 0.514 GB, free: 4.805 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007804/1.065, allocations: 2.368 MB / 0.5164 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.021e-05/1.065, allocations: 41 kB / 0.5164 GB, free: 2.324 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/1.066, allocations: 51.91 kB / 0.5164 GB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/1.068, allocations: 0.7949 MB / 0.5172 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/1.068, allocations: 0 / 0.5172 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/1.068, allocations: 20 kB / 0.5172 GB, free: 1.426 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.623e-05/1.068, allocations: 23.98 kB / 0.5173 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002136/1.07, allocations: 0.7111 MB / 0.518 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2893/1.36, allocations: 3.181 MB / 0.5211 GB, free: 79.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/1.361, allocations: 497.5 kB / 0.5215 GB, free: 79.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/1.362, allocations: 0.5938 MB / 0.5221 GB, free: 79.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04788/1.41, allocations: 36.17 MB / 0.5574 GB, free: 53.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006795/1.411, allocations: 318.4 kB / 0.5577 GB, free: 53.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/1.411, allocations: 3.75 kB / 0.5577 GB, free: 53.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001737/1.413, allocations: 0.8087 MB / 0.5585 GB, free: 52.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.606e-05/1.413, allocations: 266.7 kB / 0.5588 GB, free: 52.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004285/1.417, allocations: 2.515 MB / 0.5612 GB, free: 52.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/1.417, allocations: 39.98 kB / 0.5613 GB, free: 52.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001553/1.419, allocations: 1.506 MB / 0.5628 GB, free: 51.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/1.419, allocations: 160.7 kB / 0.5629 GB, free: 51.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.945e-05/1.419, allocations: 16.31 kB / 0.5629 GB, free: 51.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.481e-05/1.419, allocations: 343.7 kB / 0.5633 GB, free: 51.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005182/1.42, allocations: 190.4 kB / 0.5634 GB, free: 51.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007214/1.42, allocations: 0.592 MB / 0.564 GB, free: 51.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006442/1.421, allocations: 283 kB / 0.5643 GB, free: 51.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/1.421, allocations: 3.844 kB / 0.5643 GB, free: 51.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002401/1.423, allocations: 1.133 MB / 0.5654 GB, free: 50.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.164e-05/1.424, allocations: 11.28 kB / 0.5654 GB, free: 50.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/1.424, allocations: 79.45 kB / 0.5655 GB, free: 50.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.84e-05/1.424, allocations: 25.61 kB / 0.5655 GB, free: 50.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/1.425, allocations: 209.6 kB / 0.5657 GB, free: 50.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.958e-05/1.425, allocations: 30.36 kB / 0.5657 GB, free: 50.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/1.427, allocations: 129.9 kB / 0.5659 GB, free: 50.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/1.427, allocations: 69.66 kB / 0.5659 GB, free: 50.77 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.0002447/1.428, allocations: 163.5 kB / 0.5661 GB, free: 50.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004793/1.428, allocations: 387 kB / 0.5664 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004398/1.433, allocations: 1.143 MB / 0.5676 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/1.433, allocations: 4.406 kB / 0.5676 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.433, allocations: 7.891 kB / 0.5676 GB, free: 50.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/1.433, allocations: 0 / 0.5676 GB, free: 50.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004739/1.437, allocations: 2.118 MB / 0.5696 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001387/1.438, allocations: 73.25 kB / 0.5697 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009188/1.439, allocations: 99.61 kB / 0.5698 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.426e-05/1.439, allocations: 7.078 kB / 0.5698 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-05/1.439, allocations: 40.14 kB / 0.5699 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.439, allocations: 3.906 kB / 0.5699 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.439, allocations: 7.625 kB / 0.5699 GB, free: 49.99 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/1.441, allocations: 1.205 MB / 0.571 GB, free: 49.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.442, allocations: 0.5437 MB / 0.5716 GB, free: 49.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000559/1.443, allocations: 21.36 kB / 0.5716 GB, free: 49.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/1.444, allocations: 41.38 kB / 0.5716 GB, free: 49.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/1.445, allocations: 68.2 kB / 0.5717 GB, free: 49.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/1.445, allocations: 37.83 kB / 0.5717 GB, free: 49.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003724/1.449, allocations: 1.92 MB / 0.5736 GB, free: 48.98 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.449, allocations: 2.344 kB / 0.5736 GB, free: 48.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002397/1.451, allocations: 0.6437 MB / 0.5742 GB, free: 48.98 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.004062/1.455, allocations: 2.624 MB / 0.5768 GB, free: 47.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/1.457, allocations: 0.7155 MB / 0.5775 GB, free: 47.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.457, allocations: 0 / 0.5775 GB, free: 47.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007346/1.458, allocations: 394 kB / 0.5779 GB, free: 47.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00328/1.461, allocations: 0.4968 MB / 0.5784 GB, free: 47.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/1.471, allocations: 3.637 MB / 0.5819 GB, free: 46.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/1.473, allocations: 1.73 MB / 0.5836 GB, free: 45.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002096/1.475, allocations: 377.7 kB / 0.584 GB, free: 45.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/1.477, allocations: 1.217 MB / 0.5851 GB, free: 45.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.953e-06/1.477, allocations: 3.938 kB / 0.5852 GB, free: 45.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1426/1.619, allocations: 58.95 MB / 0.6427 GB, free: 14.85 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/1.619, allocations: 159.4 kB / 0.6429 GB, free: 14.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.974/7.593, allocations: 0 / 0.6429 GB, free: 14.62 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