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 2.118/2.118, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.78e-05/3.776e-05, allocations: 8 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3074, allocations: 44.49 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1751/0.4826, allocations: 97.11 MB / 391.3 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4829, allocations: 71.97 kB / 391.4 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6699/1.153, allocations: 120.1 MB / 0.4995 GB, free: 36.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/1.153, allocations: 3.938 kB / 0.4995 GB, free: 36.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.102e-05/1.153, allocations: 44 kB / 0.4996 GB, free: 36.11 MB / 362.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.0065/1.16, allocations: 2.703 MB / 0.5022 GB, free: 33.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/1.16, allocations: 12.03 kB / 0.5022 GB, free: 33.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008276/1.16, allocations: 395.2 kB / 0.5026 GB, free: 32.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005886/1.166, allocations: 2.376 MB / 0.5049 GB, free: 30.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/1.166, allocations: 20 kB / 0.5049 GB, free: 30.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/1.167, allocations: 31.91 kB / 0.505 GB, free: 30.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001518/1.168, allocations: 0.6899 MB / 0.5056 GB, free: 29.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/1.17, allocations: 0.7206 MB / 0.5063 GB, free: 29.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/1.17, allocations: 0 / 0.5063 GB, free: 29.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/1.17, allocations: 4 kB / 0.5063 GB, free: 29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/1.17, allocations: 23.98 kB / 0.5064 GB, free: 28.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008158/1.178, allocations: 3.073 MB / 0.5094 GB, free: 25.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009582/1.179, allocations: 471.8 kB / 0.5098 GB, free: 25.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009236/1.18, allocations: 0.5654 MB / 0.5104 GB, free: 24.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05059/1.231, allocations: 36.16 MB / 0.5457 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007428/1.231, allocations: 309.3 kB / 0.546 GB, free: 15.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 4.128e-06/1.231, allocations: 0 / 0.546 GB, free: 15.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002268/1.234, allocations: 0.7821 MB / 0.5467 GB, free: 14.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002118/1.234, allocations: 269 kB / 0.547 GB, free: 14.06 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006451/1.24, allocations: 2.322 MB / 0.5493 GB, free: 11.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/1.241, allocations: 25.7 kB / 0.5493 GB, free: 11.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00235/1.243, allocations: 1.497 MB / 0.5508 GB, free: 10.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003483/1.243, allocations: 165.7 kB / 0.5509 GB, free: 10.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.9e-05/1.244, allocations: 0 / 0.5509 GB, free: 10.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/1.244, allocations: 345.9 kB / 0.5512 GB, free: 9.691 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004987/1.244, allocations: 178.6 kB / 0.5514 GB, free: 9.516 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008078/1.245, allocations: 0.5785 MB / 0.552 GB, free: 8.738 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007682/1.246, allocations: 272.2 kB / 0.5522 GB, free: 8.473 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/1.246, allocations: 0 / 0.5522 GB, free: 8.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002781/1.249, allocations: 1.034 MB / 0.5532 GB, free: 7.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/1.249, allocations: 12 kB / 0.5533 GB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/1.249, allocations: 79.98 kB / 0.5533 GB, free: 7.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.03e-05/1.249, allocations: 24.77 kB / 0.5534 GB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/1.25, allocations: 215.6 kB / 0.5536 GB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.038e-05/1.251, allocations: 23.92 kB / 0.5536 GB, free: 7.082 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/1.253, allocations: 107.1 kB / 0.5537 GB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/1.253, allocations: 67.98 kB / 0.5538 GB, free: 6.91 MB / 394.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.0003048/1.253, allocations: 144.6 kB / 0.5539 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002155/1.255, allocations: 0.7818 MB / 0.5547 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008282/1.256, allocations: 387.4 kB / 0.555 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004819/1.261, allocations: 1.119 MB / 0.5561 GB, free: 4.461 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/1.261, allocations: 7.938 kB / 0.5561 GB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/1.261, allocations: 4 kB / 0.5561 GB, free: 4.449 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/1.261, allocations: 4 kB / 0.5561 GB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005727/1.267, allocations: 2.006 MB / 0.5581 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002174/1.267, allocations: 67.98 kB / 0.5582 GB, free: 2.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009879/1.268, allocations: 111.9 kB / 0.5583 GB, free: 2.211 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.709e-06/1.268, allocations: 0 / 0.5583 GB, free: 2.211 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.807e-05/1.268, allocations: 24 kB / 0.5583 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.194e-06/1.268, allocations: 4 kB / 0.5583 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/1.268, allocations: 3.984 kB / 0.5583 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/1.271, allocations: 1.194 MB / 0.5595 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.273, allocations: 0.5568 MB / 0.56 GB, free: 352 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009231/1.274, allocations: 4 kB / 0.56 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/1.276, allocations: 44.02 kB / 0.5601 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/1.276, allocations: 55.94 kB / 0.5601 GB, free: 248 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/1.276, allocations: 43.92 kB / 0.5601 GB, free: 204 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.2851/1.561, allocations: 1.714 MB / 0.5618 GB, free: 88.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.734e-06/1.561, allocations: 0 / 0.5618 GB, free: 88.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004121/1.565, allocations: 0.6082 MB / 0.5624 GB, free: 88.27 MB / 394.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.007286/1.573, allocations: 2.679 MB / 0.565 GB, free: 87.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002546/1.575, allocations: 0.666 MB / 0.5657 GB, free: 87.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/1.575, allocations: 0.875 kB / 0.5657 GB, free: 87.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.577, allocations: 387.6 kB / 0.5661 GB, free: 87.04 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005053/1.582, allocations: 0.4925 MB / 0.5665 GB, free: 87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/1.597, allocations: 3.604 MB / 0.5701 GB, free: 85.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/1.599, allocations: 1.733 MB / 0.5717 GB, free: 85.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002988/1.602, allocations: 381 kB / 0.5721 GB, free: 85.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001907/1.604, allocations: 1.211 MB / 0.5733 GB, free: 85.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/1.604, allocations: 2.25 kB / 0.5733 GB, free: 85.19 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1758/1.78, allocations: 53.69 MB / 0.6257 GB, free: 63.68 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/1.78, allocations: 145.2 kB / 0.6259 GB, free: 63.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.965/7.746, allocations: 2.516 kB / 0.6259 GB, free: 63.49 MB / 394.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