Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.198/2.198, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.853e-05/4.866e-05, allocations: 4 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 50.42 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4978/0.6125, allocations: 104.4 MB / 447.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.6128, allocations: 69.47 kB / 447.6 MB, free: 6.027 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8516/1.464, allocations: 141 MB / 0.5749 GB, free: 100.3 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.435e-06/1.465, allocations: 0 / 0.5749 GB, free: 100.3 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000245/1.465, allocations: 42.72 kB / 0.5749 GB, free: 100.3 MB / 442.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.007368/1.472, allocations: 2.699 MB / 0.5775 GB, free: 98.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/1.472, allocations: 10.97 kB / 0.5776 GB, free: 98.62 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003455/1.473, allocations: 95.52 kB / 0.5776 GB, free: 98.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008195/1.473, allocations: 400.2 kB / 0.578 GB, free: 98.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006928/1.48, allocations: 2.353 MB / 0.5803 GB, free: 97.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.42e-05/1.481, allocations: 45.91 kB / 0.5804 GB, free: 97.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/1.481, allocations: 56.12 kB / 0.5804 GB, free: 97.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/1.483, allocations: 0.7767 MB / 0.5812 GB, free: 96.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/1.483, allocations: 4 kB / 0.5812 GB, free: 96.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/1.483, allocations: 26.31 kB / 0.5812 GB, free: 96.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/1.483, allocations: 17.62 kB / 0.5812 GB, free: 96.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/1.485, allocations: 0.7009 MB / 0.5819 GB, free: 96.63 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/1.495, allocations: 3.182 MB / 0.585 GB, free: 95.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/1.497, allocations: 486.7 kB / 0.5855 GB, free: 94.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001231/1.498, allocations: 0.5906 MB / 0.5861 GB, free: 94.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04913/1.547, allocations: 36.08 MB / 0.6213 GB, free: 62.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007607/1.548, allocations: 313.5 kB / 0.6216 GB, free: 62.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.208e-06/1.548, allocations: 4 kB / 0.6216 GB, free: 62.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002129/1.55, allocations: 0.7938 MB / 0.6224 GB, free: 61.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.947e-05/1.55, allocations: 267.6 kB / 0.6226 GB, free: 60.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005678/1.556, allocations: 2.51 MB / 0.6251 GB, free: 58.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001828/1.556, allocations: 37.7 kB / 0.6251 GB, free: 58.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/1.558, allocations: 1.488 MB / 0.6266 GB, free: 56.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/1.558, allocations: 179 kB / 0.6267 GB, free: 56.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.437e-05/1.558, allocations: 16 kB / 0.6268 GB, free: 56.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.008e-05/1.559, allocations: 337.9 kB / 0.6271 GB, free: 56.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005233/1.559, allocations: 186 kB / 0.6273 GB, free: 56.15 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/1.56, allocations: 0.5952 MB / 0.6278 GB, free: 55.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006895/1.561, allocations: 283.2 kB / 0.6281 GB, free: 55.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/1.561, allocations: 4 kB / 0.6281 GB, free: 55.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00278/1.563, allocations: 1.087 MB / 0.6292 GB, free: 53.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/1.563, allocations: 12 kB / 0.6292 GB, free: 53.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/1.564, allocations: 79.98 kB / 0.6293 GB, free: 53.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.143e-05/1.564, allocations: 20 kB / 0.6293 GB, free: 53.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/1.565, allocations: 212 kB / 0.6295 GB, free: 53.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.282e-05/1.565, allocations: 27.86 kB / 0.6295 GB, free: 53.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/1.568, allocations: 123 kB / 0.6296 GB, free: 53.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002733/1.568, allocations: 71.95 kB / 0.6297 GB, free: 53.45 MB / 442.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.0002575/1.568, allocations: 164.6 kB / 0.6298 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008274/1.569, allocations: 379.4 kB / 0.6302 GB, free: 52.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/1.574, allocations: 1.152 MB / 0.6313 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/1.574, allocations: 4 kB / 0.6313 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/1.574, allocations: 0 / 0.6313 GB, free: 51.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/1.574, allocations: 4 kB / 0.6313 GB, free: 51.76 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005648/1.58, allocations: 2.108 MB / 0.6334 GB, free: 49.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001394/1.58, allocations: 67.98 kB / 0.6335 GB, free: 49.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009498/1.581, allocations: 107.9 kB / 0.6336 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/1.581, allocations: 0 / 0.6336 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/1.581, allocations: 35.98 kB / 0.6336 GB, free: 49.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.443e-06/1.581, allocations: 0 / 0.6336 GB, free: 49.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.581, allocations: 3.953 kB / 0.6336 GB, free: 49.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/1.583, allocations: 1.212 MB / 0.6348 GB, free: 48.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.585, allocations: 0.549 MB / 0.6353 GB, free: 47.54 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009491/1.586, allocations: 12 kB / 0.6353 GB, free: 47.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/1.588, allocations: 54.41 kB / 0.6354 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/1.589, allocations: 55.94 kB / 0.6354 GB, free: 47.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.589, allocations: 39.98 kB / 0.6355 GB, free: 47.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004619/1.593, allocations: 1.91 MB / 0.6373 GB, free: 45.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.192e-06/1.593, allocations: 0 / 0.6373 GB, free: 45.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002681/1.596, allocations: 0.64 MB / 0.638 GB, free: 44.83 MB / 442.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.004563/1.601, allocations: 2.609 MB / 0.6405 GB, free: 42.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/1.602, allocations: 0.6928 MB / 0.6412 GB, free: 41.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.603, allocations: 256 / 0.6412 GB, free: 41.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007808/1.603, allocations: 395.1 kB / 0.6416 GB, free: 41.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004728/1.608, allocations: 0.5921 MB / 0.6422 GB, free: 40.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/1.619, allocations: 3.629 MB / 0.6457 GB, free: 36.96 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/1.62, allocations: 1.72 MB / 0.6474 GB, free: 35.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002424/1.623, allocations: 385.5 kB / 0.6477 GB, free: 34.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/1.625, allocations: 1.206 MB / 0.6489 GB, free: 33.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.793e-06/1.625, allocations: 0 / 0.6489 GB, free: 33.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4687/2.094, allocations: 58.66 MB / 0.7062 GB, free: 110.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/2.094, allocations: 158.9 kB / 0.7064 GB, free: 110.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.101/8.195, allocations: 2.531 kB / 0.7064 GB, free: 110.3 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat