Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.958e-05/3.969e-05, allocations: 5.562 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.41 MB / 342.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/0.6173, allocations: 112.4 MB / 455 MB, free: 14.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.6176, allocations: 85.58 kB / 455.1 MB, free: 14.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8096/1.427, allocations: 93.96 MB / 0.5362 GB, free: 90.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.427, allocations: 2.625 kB / 0.5362 GB, free: 90.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000449/1.428, allocations: 94.86 kB / 0.5363 GB, free: 90.62 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01438/1.442, allocations: 3.564 MB / 0.5398 GB, free: 89.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/1.442, allocations: 10 kB / 0.5398 GB, free: 89.42 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002095/1.444, allocations: 0.4966 MB / 0.5403 GB, free: 89.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003047/1.447, allocations: 0.4997 MB / 0.5408 GB, free: 89.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009098/1.457, allocations: 2.555 MB / 0.5432 GB, free: 88.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004494/1.457, allocations: 264.2 kB / 0.5435 GB, free: 88.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/1.459, allocations: 352.6 kB / 0.5438 GB, free: 88.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/1.474, allocations: 4.791 MB / 0.5485 GB, free: 88.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001531/1.474, allocations: 7.844 kB / 0.5485 GB, free: 88.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006793/1.475, allocations: 153.4 kB / 0.5487 GB, free: 88.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002172/1.475, allocations: 175.3 kB / 0.5488 GB, free: 88.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/1.487, allocations: 3.853 MB / 0.5526 GB, free: 88.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03746/1.524, allocations: 14.96 MB / 0.5672 GB, free: 84.81 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00607/1.53, allocations: 4.12 MB / 0.5712 GB, free: 82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004101/1.534, allocations: 1.83 MB / 0.573 GB, free: 81.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000475/1.535, allocations: 150.7 kB / 0.5732 GB, free: 81.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/1.535, allocations: 54.34 kB / 0.5732 GB, free: 81.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 4.528e-06/1.535, allocations: 0 / 0.5732 GB, free: 81.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.02706/1.562, allocations: 8.339 MB / 0.5814 GB, free: 78.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/1.562, allocations: 74.56 kB / 0.5814 GB, free: 77.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004712/1.567, allocations: 2.189 MB / 0.5836 GB, free: 77.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005277/1.567, allocations: 65.64 kB / 0.5836 GB, free: 77.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/1.569, allocations: 1.479 MB / 0.5851 GB, free: 75.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000935/1.57, allocations: 0.7368 MB / 0.5858 GB, free: 75.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/1.57, allocations: 43.78 kB / 0.5858 GB, free: 75.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/1.57, allocations: 411.6 kB / 0.5862 GB, free: 74.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/1.573, allocations: 1.232 MB / 0.5874 GB, free: 74.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002959/1.576, allocations: 1.647 MB / 0.589 GB, free: 73.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003254/1.579, allocations: 1.494 MB / 0.5905 GB, free: 72.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/1.579, allocations: 2.969 kB / 0.5905 GB, free: 72.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.009086/1.588, allocations: 3.709 MB / 0.5941 GB, free: 71.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/1.588, allocations: 7.094 kB / 0.5941 GB, free: 71.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.395e-05/1.588, allocations: 15.06 kB / 0.5941 GB, free: 71.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002988/1.591, allocations: 0.7594 MB / 0.5949 GB, free: 71.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004147/1.595, allocations: 0.53 MB / 0.5954 GB, free: 71.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/1.608, allocations: 8.7 MB / 0.6039 GB, free: 65.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003435/1.612, allocations: 115.5 kB / 0.604 GB, free: 65.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003856/1.612, allocations: 94.86 kB / 0.6041 GB, free: 65.26 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005935/1.613, allocations: 235.4 kB / 0.6043 GB, free: 65.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008123/1.614, allocations: 274.9 kB / 0.6046 GB, free: 64.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008745/1.622, allocations: 3.639 MB / 0.6081 GB, free: 63.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/1.623, allocations: 22.12 kB / 0.6082 GB, free: 63.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.623, allocations: 7.219 kB / 0.6082 GB, free: 63.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.173e-05/1.623, allocations: 13.61 kB / 0.6082 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/1.643, allocations: 7.949 MB / 0.6159 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/1.643, allocations: 0 / 0.6159 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/1.646, allocations: 394.8 kB / 0.6163 GB, free: 60.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003558/1.65, allocations: 0.8139 MB / 0.6171 GB, free: 59.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003472/1.65, allocations: 58.61 kB / 0.6172 GB, free: 59.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/1.665, allocations: 10.21 MB / 0.6271 GB, free: 49.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.331e-06/1.665, allocations: 4 kB / 0.6271 GB, free: 49.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/1.677, allocations: 5.611 MB / 0.6326 GB, free: 44.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002298/1.679, allocations: 0.6438 MB / 0.6333 GB, free: 43.94 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007035/1.68, allocations: 55.59 kB / 0.6333 GB, free: 43.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002645/1.683, allocations: 129.9 kB / 0.6334 GB, free: 43.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005547/1.683, allocations: 187.2 kB / 0.6336 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.683, allocations: 59.75 kB / 0.6337 GB, free: 43.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003427/1.687, allocations: 1.681 MB / 0.6353 GB, free: 42.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.687, allocations: 0 / 0.6353 GB, free: 42.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004014/1.691, allocations: 0.8317 MB / 0.6361 GB, free: 41.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01253/1.703, allocations: 7.144 MB / 0.6431 GB, free: 34.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008009/1.711, allocations: 3.704 MB / 0.6467 GB, free: 31.33 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.712, allocations: 4.312 kB / 0.6467 GB, free: 31.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005446/1.717, allocations: 2.385 MB / 0.649 GB, free: 29.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005532/1.723, allocations: 0.7454 MB / 0.6498 GB, free: 28.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/1.743, allocations: 7.437 MB / 0.657 GB, free: 22.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003381/1.746, allocations: 2.79 MB / 0.6598 GB, free: 19.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003464/1.75, allocations: 1.409 MB / 0.6611 GB, free: 18.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.024e-06/1.75, allocations: 0 / 0.6611 GB, free: 18.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.84/6.59, allocations: 154.8 MB / 0.8123 GB, free: 37.25 MB / 458.7 MB