Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_Polyphase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.356/2.356, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.331e-05, allocations: 4 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1271, allocations: 61.89 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5268/0.6539, allocations: 115.8 MB / 0.5138 GB, free: 4.117 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.6543, allocations: 83.94 kB / 0.5139 GB, free: 4.035 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.178/2.832, allocations: 469.4 MB / 0.9723 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.445e-06/2.833, allocations: 4 kB / 0.9723 GB, free: 27.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008368/2.833, allocations: 299.7 kB / 0.9726 GB, free: 27.54 MB / 0.5261 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.08635/2.92, allocations: 13.39 MB / 0.9857 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.006e-05/2.92, allocations: 12.03 kB / 0.9857 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01362/2.934, allocations: 1.974 MB / 0.9877 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09136/3.025, allocations: 7.88 MB / 0.9953 GB, free: 4.148 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04405/3.069, allocations: 9.063 MB / 1.004 GB, free: 11 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002126/3.071, allocations: 0.9951 MB / 1.005 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007757/3.079, allocations: 1.293 MB / 1.006 GB, free: 8.715 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5013/3.58, allocations: 22.74 MB / 1.029 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007083/3.581, allocations: 17.41 kB / 1.029 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005404/3.586, allocations: 0.5625 MB / 1.029 GB, free: 53.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001845/3.588, allocations: 1.023 MB / 1.03 GB, free: 53.72 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06197/3.65, allocations: 19.33 MB / 1.049 GB, free: 53.66 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1753/3.826, allocations: 72.19 MB / 1.12 GB, free: 31.95 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03271/3.858, allocations: 28.42 MB / 1.147 GB, free: 23.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01085/3.869, allocations: 4.795 MB / 1.152 GB, free: 21.82 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04593/3.915, allocations: 15.81 MB / 1.167 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.531e-05/3.915, allocations: 83.67 kB / 1.168 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=465): time 8.837e-06/3.915, allocations: 4 kB / 1.168 GB, free: 15.01 MB / 0.5573 GB Notification: Performance of matching and sorting (n=465): time 0.02108/3.937, allocations: 8.074 MB / 1.175 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.675e-05/3.937, allocations: 126.3 kB / 1.176 GB, free: 11.92 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01134/3.948, allocations: 4.524 MB / 1.18 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00111/3.949, allocations: 101.1 kB / 1.18 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005935/3.955, allocations: 5.85 MB / 1.186 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002938/3.958, allocations: 1.588 MB / 1.187 GB, free: 4.633 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001205/3.959, allocations: 142.8 kB / 1.187 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0008486/3.96, allocations: 0.6154 MB / 1.188 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01026/3.971, allocations: 3.965 MB / 1.192 GB, free: 2.68 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01723/3.988, allocations: 6.94 MB / 1.199 GB, free: 11.98 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01931/4.007, allocations: 5.435 MB / 1.204 GB, free: 7.57 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/4.007, allocations: 32 kB / 1.204 GB, free: 7.539 MB / 0.573 GB Notification: Performance of matching and sorting (n=949) (initialization): time 0.0575/4.065, allocations: 12.86 MB / 1.217 GB, free: 14.56 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/4.065, allocations: 48 kB / 1.217 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/4.065, allocations: 100.9 kB / 1.217 GB, free: 14.42 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/4.077, allocations: 3.082 MB / 1.22 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01173/4.089, allocations: 1.576 MB / 1.221 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01444/4.103, allocations: 6.421 MB / 1.228 GB, free: 5.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01044/4.114, allocations: 1.061 MB / 1.229 GB, free: 4.312 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/4.116, allocations: 368.8 kB / 1.229 GB, free: 3.961 MB / 0.5886 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.00267/4.119, allocations: 0.5851 MB / 1.23 GB, free: 3.43 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001729/4.121, allocations: 0.4976 MB / 1.23 GB, free: 2.926 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4687/4.589, allocations: 9.564 MB / 1.239 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.374e-05/4.59, allocations: 46.62 kB / 1.239 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.766e-05/4.59, allocations: 3.625 kB / 1.239 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001583/4.59, allocations: 27.64 kB / 1.239 GB, free: 100.3 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06417/4.654, allocations: 20.48 MB / 1.259 GB, free: 99.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.304e-05/4.654, allocations: 3.469 kB / 1.259 GB, free: 99.56 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006806/4.661, allocations: 0.739 MB / 1.26 GB, free: 99.56 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01104/4.672, allocations: 2.95 MB / 1.263 GB, free: 99.51 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001183/4.673, allocations: 94.91 kB / 1.263 GB, free: 99.51 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/4.685, allocations: 6.228 MB / 1.269 GB, free: 97.94 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/4.685, allocations: 0 / 1.269 GB, free: 97.94 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03227/4.718, allocations: 13.75 MB / 1.283 GB, free: 97.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005202/4.723, allocations: 1.397 MB / 1.284 GB, free: 97.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/4.725, allocations: 83.27 kB / 1.284 GB, free: 97.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006636/4.732, allocations: 396.9 kB / 1.284 GB, free: 97.21 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/4.734, allocations: 314.4 kB / 1.285 GB, free: 97.21 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006412/4.734, allocations: 127.2 kB / 1.285 GB, free: 97.21 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.008471/4.743, allocations: 3.358 MB / 1.288 GB, free: 97 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.373e-06/4.743, allocations: 6.844 kB / 1.288 GB, free: 97 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01315/4.756, allocations: 3.192 MB / 1.291 GB, free: 96.57 MB / 0.5886 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.03416/4.79, allocations: 14.56 MB / 1.305 GB, free: 95.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02609/4.816, allocations: 9.615 MB / 1.315 GB, free: 94.98 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/4.816, allocations: 3.75 kB / 1.315 GB, free: 94.98 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01381/4.83, allocations: 4.551 MB / 1.319 GB, free: 94.71 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01006/4.84, allocations: 1.149 MB / 1.32 GB, free: 94.67 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07871/4.919, allocations: 24.79 MB / 1.345 GB, free: 87.99 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01993/4.939, allocations: 9.246 MB / 1.354 GB, free: 84.98 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01371/4.953, allocations: 2.845 MB / 1.356 GB, free: 84.81 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01124/4.964, allocations: 4.652 MB / 1.361 GB, free: 80.48 MB / 0.5886 GB Notification: Performance of SimCode: time 1.844e-06/4.964, allocations: 0 / 1.361 GB, free: 80.48 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7996/5.764, allocations: 173.4 MB / 1.53 GB, free: 97.23 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002319/5.764, allocations: 183.7 kB / 1.531 GB, free: 97.01 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.228/12.99, allocations: 3.406 kB / 1.531 GB, free: 97.01 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal_res.mat does not exist to compare? outputFormat=mat