Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.717e-05/3.729e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09677, allocations: 44.51 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.479/0.5758, allocations: 97.89 MB / 397.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.5762, allocations: 85.72 kB / 397.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559/5.135, allocations: 0.8213 GB / 1.21 GB, free: 33.63 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.617e-06/5.135, allocations: 4 kB / 1.21 GB, free: 33.62 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001758/5.137, allocations: 400.7 kB / 1.21 GB, free: 33.59 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5161 * Number of variables: 5161 Notification: Performance of Generate backend data structure: time 0.08694/5.224, allocations: 16.49 MB / 1.226 GB, free: 28.94 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/5.224, allocations: 6.594 kB / 1.226 GB, free: 28.94 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01648/5.241, allocations: 3.08 MB / 1.229 GB, free: 28.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07196/5.313, allocations: 8.64 MB / 1.238 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04159/5.354, allocations: 11.92 MB / 1.25 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002633/5.357, allocations: 1.342 MB / 1.251 GB, free: 26.32 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0102/5.367, allocations: 1.723 MB / 1.252 GB, free: 26.31 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1092/5.476, allocations: 31.66 MB / 1.283 GB, free: 24.24 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001079/5.477, allocations: 21.44 kB / 1.283 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008951/5.486, allocations: 0.7401 MB / 1.284 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002193/5.489, allocations: 1.258 MB / 1.285 GB, free: 24.19 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0845/5.573, allocations: 27.51 MB / 1.312 GB, free: 19.03 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8682/6.441, allocations: 99.28 MB / 1.409 GB, free: 25.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05938/6.501, allocations: 33.76 MB / 1.442 GB, free: 28.24 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03915/6.54, allocations: 15.12 MB / 1.457 GB, free: 28.08 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1588/6.699, allocations: 47.24 MB / 1.503 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/6.699, allocations: 150.9 kB / 1.503 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1454): time 2.198e-05/6.699, allocations: 3.281 kB / 1.503 GB, free: 19.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1454): time 0.08115/6.78, allocations: 25.45 MB / 1.528 GB, free: 8.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002252/6.781, allocations: 193.9 kB / 1.528 GB, free: 8.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01681/6.797, allocations: 3.918 MB / 1.532 GB, free: 4.855 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.004085/6.802, allocations: 204.4 kB / 1.532 GB, free: 4.652 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008047/6.81, allocations: 5.912 MB / 1.538 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.01226/6.822, allocations: 4.768 MB / 1.543 GB, free: 11.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00465/6.827, allocations: 232 kB / 1.543 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.002797/6.83, allocations: 0.898 MB / 1.544 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03183/6.861, allocations: 9.813 MB / 1.553 GB, free: 1.879 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5106/7.372, allocations: 14.79 MB / 1.568 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03543/7.408, allocations: 11.87 MB / 1.579 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/7.408, allocations: 18.91 kB / 1.579 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1803) (initialization): time 0.08634/7.494, allocations: 28.07 MB / 1.607 GB, free: 72.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/7.494, allocations: 32.12 kB / 1.607 GB, free: 72.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002278/7.495, allocations: 64.41 kB / 1.607 GB, free: 72.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03251/7.527, allocations: 10.4 MB / 1.617 GB, free: 71.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01639/7.543, allocations: 1.953 MB / 1.619 GB, free: 71.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04608/7.59, allocations: 21.2 MB / 1.64 GB, free: 68.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01552/7.605, allocations: 1.415 MB / 1.641 GB, free: 67.69 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00478/7.61, allocations: 0.5282 MB / 1.642 GB, free: 67.69 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1062): * Single equations (assignments): 909 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 146 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {6 9,6 9,6 9,6 9,54 290,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.008234/7.618, allocations: 0.7081 MB / 1.642 GB, free: 67.58 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005223/7.624, allocations: 0.7251 MB / 1.643 GB, free: 67.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08598/7.71, allocations: 27.79 MB / 1.67 GB, free: 59.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07191/7.782, allocations: 25.33 MB / 1.695 GB, free: 48.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.816e-05/7.782, allocations: 0 / 1.695 GB, free: 48.74 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002825/7.782, allocations: 57.42 kB / 1.695 GB, free: 48.74 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.151/7.933, allocations: 52.1 MB / 1.746 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002469/7.933, allocations: 0.5625 kB / 1.746 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01718/7.95, allocations: 1.862 MB / 1.748 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4939/8.444, allocations: 10.3 MB / 1.758 GB, free: 72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004457/8.449, allocations: 298.6 kB / 1.758 GB, free: 72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06498/8.514, allocations: 21.09 MB / 1.779 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/8.514, allocations: 0 / 1.779 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1139/8.628, allocations: 41.3 MB / 1.819 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01178/8.64, allocations: 3.135 MB / 1.822 GB, free: 66.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005084/8.645, allocations: 185 kB / 1.822 GB, free: 66.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01171/8.657, allocations: 0.5053 MB / 1.823 GB, free: 66.87 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005637/8.662, allocations: 1.058 MB / 1.824 GB, free: 66.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004016/8.666, allocations: 377.9 kB / 1.824 GB, free: 66.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008123/8.674, allocations: 2.924 MB / 1.827 GB, free: 66.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.42e-07/8.675, allocations: 0 / 1.827 GB, free: 66.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02192/8.696, allocations: 4.364 MB / 1.831 GB, free: 65.87 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensorL.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (756): * Single equations (assignments): 603 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 146 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {6 9,6 9,6 9,6 9,54 290,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.1354/8.832, allocations: 42.25 MB / 1.872 GB, free: 48.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07406/8.906, allocations: 23.42 MB / 1.895 GB, free: 30.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/8.906, allocations: 0 / 1.895 GB, free: 30.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03718/8.943, allocations: 12.15 MB / 1.907 GB, free: 19.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01526/8.959, allocations: 1.369 MB / 1.908 GB, free: 18.57 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5968/9.555, allocations: 42.33 MB / 1.95 GB, free: 79.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03344/9.589, allocations: 11.95 MB / 1.961 GB, free: 78.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02675/9.616, allocations: 6.233 MB / 1.968 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of SimCode: time 1.883e-06/9.616, allocations: 0 / 1.968 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.487/19.1, allocations: 0.9965 GB / 2.964 GB, free: 106.1 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat