Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.787/1.787, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.836e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2536, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1695/0.4232, allocations: 100.6 MB / 364.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/0.4236, allocations: 87.92 kB / 364.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4539/0.8775, allocations: 65.52 MB / 430.1 MB, free: 45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.8775, allocations: 0 / 430.1 MB, free: 45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003029/0.8778, allocations: 83.88 kB / 430.2 MB, free: 44.92 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 795 * Number of variables: 795 Notification: Performance of Generate backend data structure: time 0.01021/0.888, allocations: 3.241 MB / 433.4 MB, free: 41.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.8881, allocations: 12.03 kB / 433.4 MB, free: 41.61 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001203/0.8893, allocations: 446.2 kB / 433.9 MB, free: 41.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.891, allocations: 447.1 kB / 434.3 MB, free: 40.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006575/0.8976, allocations: 2.328 MB / 436.6 MB, free: 38.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.8978, allocations: 238.1 kB / 436.9 MB, free: 38.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007296/0.8986, allocations: 303.9 kB / 437.2 MB, free: 37.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009647/0.9082, allocations: 4.233 MB / 441.4 MB, free: 33.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/0.9084, allocations: 4 kB / 441.4 MB, free: 33.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004569/0.9089, allocations: 131.9 kB / 441.5 MB, free: 33.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.909, allocations: 129.9 kB / 441.6 MB, free: 33.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008785/0.9178, allocations: 3.463 MB / 445.1 MB, free: 29.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02994/0.9478, allocations: 13.56 MB / 458.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004644/0.9525, allocations: 2.882 MB / 461.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/0.9562, allocations: 1.6 MB / 463.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004847/0.9567, allocations: 143.6 kB / 463.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.9568, allocations: 56.5 kB / 463.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=167): time 3.767e-06/0.9568, allocations: 0 / 463.4 MB, free: 10.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=183): time 0.02333/0.9801, allocations: 7.309 MB / 470.7 MB, free: 3.512 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.9802, allocations: 77.34 kB / 470.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/0.9846, allocations: 2.021 MB / 472.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004665/0.9851, allocations: 53.7 kB / 472.8 MB, free: 1.316 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.9861, allocations: 1.347 MB / 474.2 MB, free: 15.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009545/0.9871, allocations: 0.6084 MB / 474.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.9873, allocations: 40 kB / 474.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.9875, allocations: 390.8 kB / 475.2 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/0.9904, allocations: 1.082 MB / 476.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003278/0.9937, allocations: 1.483 MB / 477.7 MB, free: 12.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003351/0.9971, allocations: 1.298 MB / 479 MB, free: 10.89 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/0.9971, allocations: 4 kB / 479.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.009172/1.006, allocations: 3.336 MB / 482.4 MB, free: 7.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/1.006, allocations: 11.94 kB / 482.4 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.858e-05/1.006, allocations: 12 kB / 482.4 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003425/1.01, allocations: 0.8141 MB / 483.2 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003751/1.014, allocations: 455.3 kB / 483.7 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01639/1.03, allocations: 10.83 MB / 494.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/1.033, allocations: 127.9 kB / 494.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002871/1.034, allocations: 72 kB / 494.7 MB, free: 10.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 207 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000592/1.034, allocations: 229.9 kB / 494.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000673/1.035, allocations: 249 kB / 495.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009039/1.044, allocations: 3.274 MB / 498.4 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/1.044, allocations: 16 kB / 498.5 MB, free: 6.707 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/1.044, allocations: 12 kB / 498.5 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.849e-05/1.044, allocations: 7.969 kB / 498.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2531/1.297, allocations: 6.937 MB / 0.4936 GB, free: 75.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/1.297, allocations: 2.656 kB / 0.4936 GB, free: 75.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/1.3, allocations: 313.7 kB / 0.4939 GB, free: 75.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003881/1.304, allocations: 0.9215 MB / 0.4948 GB, free: 75.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/1.304, allocations: 40.92 kB / 0.4948 GB, free: 75.06 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/1.32, allocations: 13.47 MB / 0.508 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.32, allocations: 3.625 kB / 0.508 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/1.331, allocations: 4.991 MB / 0.5128 GB, free: 65.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/1.333, allocations: 0.5773 MB / 0.5134 GB, free: 65.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000532/1.333, allocations: 35.41 kB / 0.5134 GB, free: 65.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00233/1.335, allocations: 132.6 kB / 0.5136 GB, free: 65.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005397/1.336, allocations: 159.3 kB / 0.5137 GB, free: 65.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001845/1.336, allocations: 52.67 kB / 0.5138 GB, free: 65.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003145/1.339, allocations: 1.558 MB / 0.5153 GB, free: 65.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.553e-06/1.339, allocations: 0 / 0.5153 GB, free: 65.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003397/1.343, allocations: 0.7417 MB / 0.516 GB, free: 65.47 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 141 * 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: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01133/1.354, allocations: 6.4 MB / 0.5223 GB, free: 63.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007023/1.361, allocations: 3.527 MB / 0.5257 GB, free: 63.01 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.361, allocations: 0.8438 kB / 0.5257 GB, free: 63.01 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004912/1.366, allocations: 2.499 MB / 0.5281 GB, free: 62.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004789/1.371, allocations: 0.6601 MB / 0.5288 GB, free: 62.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/1.387, allocations: 6.491 MB / 0.5351 GB, free: 59.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/1.389, allocations: 2.543 MB / 0.5376 GB, free: 58.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002605/1.392, allocations: 1.249 MB / 0.5388 GB, free: 57.58 MB / 346.7 MB Notification: Performance of SimCode: time 1.523e-06/1.392, allocations: 0 / 0.5388 GB, free: 57.58 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.57/5.962, allocations: 175.7 MB / 0.7104 GB, free: 38.94 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat