Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.487/2.487, allocations: 270 MB / 283.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.043e-05/5.052e-05, allocations: 7.938 kB / 348.5 MB, free: 2.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4006/0.4007, allocations: 61.87 MB / 410.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2269/0.6277, allocations: 115.8 MB / 0.5138 GB, free: 6.723 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.628, allocations: 79.95 kB / 0.5139 GB, free: 6.645 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.611/3.239, allocations: 469.4 MB / 0.9723 GB, free: 63.14 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.615e-06/3.239, allocations: 0 / 0.9723 GB, free: 63.14 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0009698/3.24, allocations: 303.6 kB / 0.9726 GB, free: 63.12 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.06849/3.309, allocations: 13.39 MB / 0.9857 GB, free: 59.52 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/3.309, allocations: 7.688 kB / 0.9857 GB, free: 59.52 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009028/3.318, allocations: 1.979 MB / 0.9876 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06142/3.379, allocations: 7.871 MB / 0.9953 GB, free: 58.62 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02975/3.409, allocations: 9.073 MB / 1.004 GB, free: 57.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001335/3.411, allocations: 0.9937 MB / 1.005 GB, free: 57.46 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006446/3.417, allocations: 1.294 MB / 1.006 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07079/3.488, allocations: 22.74 MB / 1.029 GB, free: 55.87 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006805/3.489, allocations: 14.3 kB / 1.029 GB, free: 55.87 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005577/3.494, allocations: 0.5579 MB / 1.029 GB, free: 55.87 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/3.496, allocations: 1.019 MB / 1.03 GB, free: 55.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05784/3.554, allocations: 19.34 MB / 1.049 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1819/3.736, allocations: 72.22 MB / 1.12 GB, free: 6.906 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5169/4.253, allocations: 28.42 MB / 1.147 GB, free: 50.8 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01668/4.269, allocations: 4.799 MB / 1.152 GB, free: 50.73 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05656/4.326, allocations: 15.81 MB / 1.167 GB, free: 49.31 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.494e-05/4.326, allocations: 86.06 kB / 1.168 GB, free: 49.27 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=465): time 7.795e-06/4.326, allocations: 0 / 1.168 GB, free: 49.27 MB / 0.5573 GB Notification: Performance of matching and sorting (n=465): time 0.02682/4.353, allocations: 8.074 MB / 1.175 GB, free: 49.09 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/4.353, allocations: 127 kB / 1.176 GB, free: 48.99 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/4.364, allocations: 4.522 MB / 1.18 GB, free: 48.61 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001107/4.365, allocations: 98.23 kB / 1.18 GB, free: 48.58 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.004696/4.37, allocations: 5.862 MB / 1.186 GB, free: 45.93 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00261/4.373, allocations: 1.583 MB / 1.187 GB, free: 44.95 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009596/4.374, allocations: 147.8 kB / 1.187 GB, free: 44.95 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0005848/4.374, allocations: 0.6118 MB / 1.188 GB, free: 44.64 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009943/4.384, allocations: 3.966 MB / 1.192 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0125/4.397, allocations: 6.933 MB / 1.199 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0123/4.409, allocations: 5.44 MB / 1.204 GB, free: 40.89 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001406/4.409, allocations: 27.78 kB / 1.204 GB, free: 40.89 MB / 0.5573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.03234/4.442, allocations: 12.41 MB / 1.216 GB, free: 40.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/4.442, allocations: 56.38 kB / 1.216 GB, free: 40.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/4.442, allocations: 101.3 kB / 1.216 GB, free: 40.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/4.453, allocations: 3.074 MB / 1.219 GB, free: 40.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01109/4.464, allocations: 1.575 MB / 1.221 GB, free: 40.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/4.477, allocations: 6.418 MB / 1.227 GB, free: 38.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01275/4.49, allocations: 1.059 MB / 1.228 GB, free: 38.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/4.492, allocations: 371.8 kB / 1.229 GB, free: 38.33 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (802): * Single equations (assignments): 799 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.002673/4.495, allocations: 0.58 MB / 1.229 GB, free: 38.16 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002035/4.497, allocations: 0.4983 MB / 1.23 GB, free: 37.89 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03319/4.53, allocations: 9.348 MB / 1.239 GB, free: 36.59 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.741e-05/4.53, allocations: 51.45 kB / 1.239 GB, free: 36.59 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.15e-05/4.53, allocations: 0 / 1.239 GB, free: 36.59 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001206/4.53, allocations: 22.17 kB / 1.239 GB, free: 36.59 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06316/4.593, allocations: 20.48 MB / 1.259 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.684e-05/4.594, allocations: 3.188 kB / 1.259 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006722/4.6, allocations: 0.7291 MB / 1.26 GB, free: 29.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01059/4.611, allocations: 2.948 MB / 1.262 GB, free: 28.36 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001134/4.612, allocations: 94.41 kB / 1.262 GB, free: 28.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/4.624, allocations: 6.235 MB / 1.269 GB, free: 25.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/4.624, allocations: 0 / 1.269 GB, free: 25.14 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0315/4.656, allocations: 13.75 MB / 1.282 GB, free: 19.72 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004931/4.661, allocations: 1.403 MB / 1.283 GB, free: 18.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002077/4.663, allocations: 82.25 kB / 1.283 GB, free: 18.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006456/4.669, allocations: 385.5 kB / 1.284 GB, free: 18.85 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001504/4.671, allocations: 317.2 kB / 1.284 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005936/4.671, allocations: 128.9 kB / 1.284 GB, free: 18.77 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.008216/4.68, allocations: 3.36 MB / 1.288 GB, free: 16.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.082e-06/4.68, allocations: 0 / 1.288 GB, free: 16.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01229/4.692, allocations: 3.19 MB / 1.291 GB, free: 13.71 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 28,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03252/4.725, allocations: 14.57 MB / 1.305 GB, free: 1.109 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03743/4.762, allocations: 10.17 MB / 1.315 GB, free: 10.25 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/4.762, allocations: 4.188 kB / 1.315 GB, free: 10.25 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01549/4.778, allocations: 4.553 MB / 1.319 GB, free: 6.32 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01064/4.788, allocations: 1.156 MB / 1.32 GB, free: 5.422 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08695/4.875, allocations: 24.79 MB / 1.345 GB, free: 252 kB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4768/5.352, allocations: 9.586 MB / 1.354 GB, free: 96.52 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01514/5.367, allocations: 2.845 MB / 1.357 GB, free: 96.46 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01059/5.378, allocations: 4.647 MB / 1.361 GB, free: 96.46 MB / 0.5886 GB Notification: Performance of SimCode: time 1.222e-06/5.378, allocations: 4.438 kB / 1.361 GB, free: 96.46 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.377/5.755, allocations: 173.4 MB / 1.531 GB, free: 21.56 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/5.755, allocations: 184.1 kB / 1.531 GB, free: 21.33 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.418/13.17, allocations: 0 / 1.531 GB, free: 21.33 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat does not exist to compare? outputFormat=mat