Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.283/2.283, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.896e-05, allocations: 3.094 kB / 249.8 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09887, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5529, allocations: 97.1 MB / 391.4 MB, free: 3.117 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.5532, allocations: 74.33 kB / 391.5 MB, free: 3.105 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.785/1.338, allocations: 120.1 MB / 0.4996 GB, free: 75.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.338, allocations: 1.125 kB / 0.4996 GB, free: 75.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001085/1.338, allocations: 44.84 kB / 0.4996 GB, free: 75.59 MB / 394.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.008722/1.347, allocations: 2.713 MB / 0.5023 GB, free: 74.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.959e-05/1.347, allocations: 9.25 kB / 0.5023 GB, free: 74.37 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00151/1.349, allocations: 400.5 kB / 0.5027 GB, free: 74.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007945/1.357, allocations: 2.372 MB / 0.505 GB, free: 73.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/1.357, allocations: 15.94 kB / 0.505 GB, free: 73.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/1.357, allocations: 34.38 kB / 0.505 GB, free: 73.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001833/1.359, allocations: 0.6905 MB / 0.5057 GB, free: 73.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/1.361, allocations: 0.7177 MB / 0.5064 GB, free: 73.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/1.361, allocations: 2.062 kB / 0.5064 GB, free: 73.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/1.361, allocations: 7.844 kB / 0.5064 GB, free: 73.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/1.361, allocations: 21.58 kB / 0.5064 GB, free: 73.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009791/1.371, allocations: 3.075 MB / 0.5094 GB, free: 72.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/1.372, allocations: 478.1 kB / 0.5099 GB, free: 72.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/1.373, allocations: 0.566 MB / 0.5104 GB, free: 72.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05166/1.425, allocations: 36.15 MB / 0.5458 GB, free: 46.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007071/1.425, allocations: 312.7 kB / 0.5461 GB, free: 46.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 5.48e-06/1.425, allocations: 0 / 0.5461 GB, free: 46.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.002252/1.428, allocations: 0.7782 MB / 0.5468 GB, free: 46.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.428, allocations: 272.4 kB / 0.5471 GB, free: 45.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005212/1.433, allocations: 2.32 MB / 0.5493 GB, free: 45.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/1.433, allocations: 29.05 kB / 0.5494 GB, free: 45.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001857/1.435, allocations: 1.496 MB / 0.5508 GB, free: 45.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003198/1.435, allocations: 164.9 kB / 0.551 GB, free: 45.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.748e-05/1.436, allocations: 0 / 0.551 GB, free: 45.19 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.54e-05/1.436, allocations: 339.2 kB / 0.5513 GB, free: 44.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004847/1.436, allocations: 177.1 kB / 0.5515 GB, free: 44.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007142/1.437, allocations: 0.575 MB / 0.552 GB, free: 44.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007474/1.438, allocations: 265.4 kB / 0.5523 GB, free: 44.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/1.438, allocations: 3.906 kB / 0.5523 GB, free: 44.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002893/1.441, allocations: 1.036 MB / 0.5533 GB, free: 44.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/1.441, allocations: 7.906 kB / 0.5533 GB, free: 44.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/1.441, allocations: 84.33 kB / 0.5534 GB, free: 44.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.98e-05/1.441, allocations: 33.7 kB / 0.5534 GB, free: 44.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/1.442, allocations: 212 kB / 0.5536 GB, free: 44.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-05/1.443, allocations: 24.84 kB / 0.5537 GB, free: 44.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002383/1.445, allocations: 105.2 kB / 0.5538 GB, free: 44.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/1.445, allocations: 68.88 kB / 0.5538 GB, free: 44.09 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.0002778/1.445, allocations: 145.8 kB / 0.554 GB, free: 43.98 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002141/1.448, allocations: 0.7905 MB / 0.5547 GB, free: 43.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006481/1.448, allocations: 387.7 kB / 0.5551 GB, free: 43.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004932/1.453, allocations: 1.111 MB / 0.5562 GB, free: 43.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/1.453, allocations: 5.656 kB / 0.5562 GB, free: 43.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/1.453, allocations: 0 / 0.5562 GB, free: 43.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/1.453, allocations: 0 / 0.5562 GB, free: 43.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005404/1.459, allocations: 2.014 MB / 0.5582 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002114/1.459, allocations: 71.36 kB / 0.5582 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/1.46, allocations: 106.3 kB / 0.5583 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.3e-05/1.46, allocations: 1.844 kB / 0.5583 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-05/1.46, allocations: 28.69 kB / 0.5584 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.293e-06/1.46, allocations: 7.203 kB / 0.5584 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.46, allocations: 2.906 kB / 0.5584 GB, free: 43.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/1.463, allocations: 1.185 MB / 0.5595 GB, free: 42.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/1.465, allocations: 0.5515 MB / 0.5601 GB, free: 42.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009824/1.466, allocations: 6.891 kB / 0.5601 GB, free: 42.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/1.467, allocations: 41.94 kB / 0.5601 GB, free: 42.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/1.468, allocations: 64.08 kB / 0.5602 GB, free: 42.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.468, allocations: 39.89 kB / 0.5602 GB, free: 42.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003909/1.472, allocations: 1.716 MB / 0.5619 GB, free: 42.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.21e-07/1.472, allocations: 0 / 0.5619 GB, free: 42.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002859/1.475, allocations: 0.6186 MB / 0.5625 GB, free: 42.05 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.004878/1.48, allocations: 2.682 MB / 0.5651 GB, free: 40.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/1.481, allocations: 0.6742 MB / 0.5658 GB, free: 40.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/1.481, allocations: 2.281 kB / 0.5658 GB, free: 40.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008063/1.482, allocations: 386.7 kB / 0.5661 GB, free: 40.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/1.486, allocations: 0.4896 MB / 0.5666 GB, free: 40.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/1.497, allocations: 3.589 MB / 0.5701 GB, free: 39.53 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/1.498, allocations: 1.729 MB / 0.5718 GB, free: 38.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002304/1.501, allocations: 385.3 kB / 0.5722 GB, free: 38.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00206/1.503, allocations: 1.213 MB / 0.5734 GB, free: 38.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.893e-06/1.503, allocations: 0 / 0.5734 GB, free: 38.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1623/1.665, allocations: 53.72 MB / 0.6258 GB, free: 15.13 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003964/1.666, allocations: 161.7 kB / 0.626 GB, free: 14.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.224/7.89, allocations: 0 / 0.626 GB, free: 14.93 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat