Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 171.2 MB / 178.4 MB, free: 152 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.269e-05, allocations: 0 / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3077, allocations: 38.77 MB / 258.3 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.4729, allocations: 93.31 MB / 351.7 MB, free: 0.5 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.4732, allocations: 75.95 kB / 351.7 MB, free: 436 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6488/1.122, allocations: 124 MB / 475.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.122, allocations: 4 kB / 475.7 MB, free: 15.19 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.718e-05/1.122, allocations: 44 kB / 475.7 MB, free: 15.15 MB / 330.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.007935/1.13, allocations: 2.796 MB / 478.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/1.13, allocations: 8.031 kB / 478.5 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/1.131, allocations: 418.9 kB / 478.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007222/1.139, allocations: 2.422 MB / 481.4 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.519e-05/1.139, allocations: 16 kB / 481.4 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/1.139, allocations: 39.86 kB / 481.4 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001827/1.141, allocations: 0.6899 MB / 482.1 MB, free: 8.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/1.142, allocations: 0.7245 MB / 482.8 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/1.143, allocations: 0 / 482.8 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/1.143, allocations: 0 / 482.8 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.605e-05/1.143, allocations: 19.98 kB / 482.8 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009911/1.153, allocations: 3.174 MB / 486 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/1.154, allocations: 472.9 kB / 486.5 MB, free: 4.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/1.155, allocations: 0.5694 MB / 487.1 MB, free: 3.562 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2916/1.447, allocations: 36.19 MB / 0.511 GB, free: 50.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006056/1.448, allocations: 296 kB / 0.5113 GB, free: 50.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.096e-06/1.448, allocations: 0 / 0.5113 GB, free: 50.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001918/1.45, allocations: 0.8045 MB / 0.512 GB, free: 50.38 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/1.45, allocations: 279.7 kB / 0.5123 GB, free: 50.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/1.454, allocations: 2.449 MB / 0.5147 GB, free: 49.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/1.455, allocations: 32.17 kB / 0.5147 GB, free: 49.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/1.456, allocations: 1.579 MB / 0.5163 GB, free: 49.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/1.457, allocations: 160.7 kB / 0.5164 GB, free: 49.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/1.457, allocations: 2.219 kB / 0.5164 GB, free: 49.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.83e-05/1.457, allocations: 339.6 kB / 0.5168 GB, free: 49.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/1.457, allocations: 173.8 kB / 0.5169 GB, free: 49.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006298/1.458, allocations: 0.5782 MB / 0.5175 GB, free: 48.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006505/1.459, allocations: 266.2 kB / 0.5177 GB, free: 48.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/1.459, allocations: 6.828 kB / 0.5178 GB, free: 48.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002355/1.461, allocations: 1.056 MB / 0.5188 GB, free: 48.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/1.461, allocations: 11.41 kB / 0.5188 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001816/1.461, allocations: 83.69 kB / 0.5189 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.187e-05/1.461, allocations: 25.53 kB / 0.5189 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/1.463, allocations: 207.8 kB / 0.5191 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.406e-05/1.463, allocations: 31.11 kB / 0.5191 GB, free: 48.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/1.465, allocations: 109.2 kB / 0.5192 GB, free: 48.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/1.465, allocations: 63.31 kB / 0.5193 GB, free: 48.36 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.0002562/1.465, allocations: 142.9 kB / 0.5194 GB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001841/1.467, allocations: 0.7979 MB / 0.5202 GB, free: 48.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005873/1.468, allocations: 403.1 kB / 0.5206 GB, free: 47.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/1.472, allocations: 1.131 MB / 0.5217 GB, free: 47.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.472, allocations: 3.531 kB / 0.5217 GB, free: 47.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/1.472, allocations: 0 / 0.5217 GB, free: 47.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.472, allocations: 7.109 kB / 0.5217 GB, free: 47.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/1.477, allocations: 2.085 MB / 0.5237 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001716/1.477, allocations: 67.61 kB / 0.5238 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008714/1.478, allocations: 110 kB / 0.5239 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/1.478, allocations: 2.656 kB / 0.5239 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.665e-05/1.478, allocations: 34.73 kB / 0.5239 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/1.478, allocations: 2.906 kB / 0.5239 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.478, allocations: 3.938 kB / 0.524 GB, free: 47.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/1.481, allocations: 1.202 MB / 0.5251 GB, free: 46.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/1.482, allocations: 0.5154 MB / 0.5256 GB, free: 46.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007229/1.483, allocations: 7.188 kB / 0.5256 GB, free: 46.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/1.484, allocations: 37.19 kB / 0.5257 GB, free: 46.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/1.484, allocations: 64.84 kB / 0.5257 GB, free: 46.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/1.485, allocations: 41.02 kB / 0.5258 GB, free: 46.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003462/1.488, allocations: 1.818 MB / 0.5275 GB, free: 46.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.488, allocations: 0 / 0.5275 GB, free: 46.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002494/1.491, allocations: 0.6244 MB / 0.5282 GB, free: 46.43 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.004196/1.495, allocations: 2.761 MB / 0.5309 GB, free: 45.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/1.496, allocations: 0.665 MB / 0.5315 GB, free: 45.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/1.496, allocations: 3.75 kB / 0.5315 GB, free: 45.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006823/1.497, allocations: 386.4 kB / 0.5319 GB, free: 45.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002879/1.5, allocations: 0.5112 MB / 0.5324 GB, free: 45.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009512/1.51, allocations: 3.763 MB / 0.536 GB, free: 43.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/1.511, allocations: 1.786 MB / 0.5378 GB, free: 43.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002035/1.513, allocations: 380 kB / 0.5382 GB, free: 43.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001794/1.515, allocations: 1.257 MB / 0.5394 GB, free: 43.19 MB / 346.7 MB Notification: Performance of SimCode: time 2.705e-06/1.515, allocations: 1.469 kB / 0.5394 GB, free: 43.19 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2012/1.716, allocations: 56.18 MB / 0.5943 GB, free: 9.078 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/1.716, allocations: 155.1 kB / 0.5944 GB, free: 8.879 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.968/7.685, allocations: 0 / 0.5944 GB, free: 8.879 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat