Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.196/2.196, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.923e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3465, allocations: 44.49 MB / 294.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.5363, allocations: 97.27 MB / 391.5 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.5367, allocations: 79.89 kB / 391.6 MB, free: 428 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9669/1.504, allocations: 186.6 MB / 0.5647 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.504, allocations: 0 / 0.5647 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001847/1.504, allocations: 84 kB / 0.5648 GB, free: 440 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.3244/1.828, allocations: 4.673 MB / 0.5693 GB, free: 50.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/1.828, allocations: 9.688 kB / 0.5694 GB, free: 50.91 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/1.831, allocations: 0.7508 MB / 0.5701 GB, free: 50.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01611/1.847, allocations: 4.512 MB / 0.5745 GB, free: 49.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.935e-05/1.847, allocations: 30.55 kB / 0.5745 GB, free: 49.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005084/1.848, allocations: 66.06 kB / 0.5746 GB, free: 49.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00352/1.851, allocations: 1.316 MB / 0.5759 GB, free: 49.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003174/1.855, allocations: 1.324 MB / 0.5772 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.239e-05/1.855, allocations: 1.781 kB / 0.5772 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002078/1.855, allocations: 0 / 0.5772 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.022e-05/1.855, allocations: 39.7 kB / 0.5772 GB, free: 49.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01936/1.874, allocations: 5.668 MB / 0.5827 GB, free: 48.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002042/1.876, allocations: 0.8538 MB / 0.5836 GB, free: 48.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002098/1.879, allocations: 1.125 MB / 0.5847 GB, free: 48.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1095/1.988, allocations: 71.87 MB / 0.6549 GB, free: 28.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001092/1.989, allocations: 492.3 kB / 0.6553 GB, free: 27.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 5.069e-06/1.989, allocations: 0 / 0.6553 GB, free: 27.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.004242/1.994, allocations: 1.424 MB / 0.6567 GB, free: 27.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002725/1.994, allocations: 482.1 kB / 0.6572 GB, free: 26.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01103/2.005, allocations: 4.412 MB / 0.6615 GB, free: 26.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000305/2.005, allocations: 36.58 kB / 0.6615 GB, free: 26.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003916/2.009, allocations: 2.93 MB / 0.6644 GB, free: 26.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005549/2.01, allocations: 284.7 kB / 0.6647 GB, free: 25.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/2.01, allocations: 7.25 kB / 0.6647 GB, free: 25.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/2.01, allocations: 359.5 kB / 0.665 GB, free: 25.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009043/2.011, allocations: 316.4 kB / 0.6653 GB, free: 25.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/2.012, allocations: 1.086 MB / 0.6664 GB, free: 24.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/2.014, allocations: 495.3 kB / 0.6668 GB, free: 24.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.001e-05/2.014, allocations: 7.906 kB / 0.6668 GB, free: 24.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005483/2.019, allocations: 1.924 MB / 0.6687 GB, free: 24.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/2.019, allocations: 19.41 kB / 0.6687 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004174/2.02, allocations: 162.3 kB / 0.6689 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.63e-05/2.02, allocations: 36.22 kB / 0.6689 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002623/2.023, allocations: 364.9 kB / 0.6693 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.51e-05/2.023, allocations: 47.28 kB / 0.6693 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004822/2.027, allocations: 182.6 kB / 0.6695 GB, free: 24.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005954/2.028, allocations: 130.5 kB / 0.6696 GB, free: 24.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0005374/2.029, allocations: 176.6 kB / 0.6698 GB, free: 23.98 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004476/2.033, allocations: 1.439 MB / 0.6712 GB, free: 23.56 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001991/2.035, allocations: 0.7175 MB / 0.6719 GB, free: 23.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/2.046, allocations: 2.084 MB / 0.6739 GB, free: 23.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/2.046, allocations: 7.781 kB / 0.6739 GB, free: 23.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/2.046, allocations: 3.953 kB / 0.6739 GB, free: 23.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/2.046, allocations: 3.703 kB / 0.6739 GB, free: 23.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/2.058, allocations: 3.558 MB / 0.6774 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004013/2.059, allocations: 135.8 kB / 0.6776 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/2.06, allocations: 165 kB / 0.6777 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-05/2.06, allocations: 10.64 kB / 0.6777 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/2.061, allocations: 53.81 kB / 0.6778 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.725e-06/2.061, allocations: 0 / 0.6778 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/2.061, allocations: 3.469 kB / 0.6778 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/2.066, allocations: 2.053 MB / 0.6798 GB, free: 21.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004074/2.07, allocations: 0.935 MB / 0.6807 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002998/2.073, allocations: 8.406 kB / 0.6807 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004724/2.078, allocations: 39.05 kB / 0.6807 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005786/2.078, allocations: 100.1 kB / 0.6808 GB, free: 21.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/2.079, allocations: 71.75 kB / 0.6809 GB, free: 21.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009035/2.088, allocations: 3.259 MB / 0.6841 GB, free: 21.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.223e-06/2.088, allocations: 2.344 kB / 0.6841 GB, free: 21.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005477/2.093, allocations: 1.117 MB / 0.6852 GB, free: 20.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.008848/2.102, allocations: 3.893 MB / 0.689 GB, free: 17.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003493/2.106, allocations: 1.251 MB / 0.6902 GB, free: 16.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/2.106, allocations: 3.188 kB / 0.6902 GB, free: 16.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/2.107, allocations: 0.7063 MB / 0.6909 GB, free: 16.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007277/2.115, allocations: 0.9487 MB / 0.6918 GB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02272/2.137, allocations: 6.905 MB / 0.6986 GB, free: 10.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003866/2.141, allocations: 2.733 MB / 0.7012 GB, free: 8.367 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005258/2.147, allocations: 0.7251 MB / 0.7019 GB, free: 7.973 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004603/2.151, allocations: 2.43 MB / 0.7043 GB, free: 7.676 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/2.151, allocations: 0 / 0.7043 GB, free: 7.676 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6166/2.768, allocations: 99.32 MB / 0.8013 GB, free: 51 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002856/2.768, allocations: 141.8 kB / 0.8014 GB, free: 50.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.51/13.27, allocations: 4 kB / 0.8014 GB, free: 50.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat