Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.99e-05/4.004e-05, allocations: 4 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1189, allocations: 44.52 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4073/0.5263, allocations: 82.24 MB / 382.2 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.5266, allocations: 79.64 kB / 382.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08457/0.6112, allocations: 22.16 MB / 404.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.967e-06/0.6113, allocations: 0 / 404.4 MB, free: 8.457 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.564e-05/0.6113, allocations: 31.22 kB / 404.4 MB, free: 8.449 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003854/0.6152, allocations: 1.145 MB / 405.6 MB, free: 7.664 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.6153, allocations: 7.625 kB / 405.6 MB, free: 7.664 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004925/0.6158, allocations: 158.3 kB / 405.8 MB, free: 7.598 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003344/0.6191, allocations: 372.1 kB / 406.1 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.6205, allocations: 0.5244 MB / 406.6 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-05/0.6207, allocations: 79.97 kB / 406.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.6209, allocations: 102.8 kB / 406.8 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.6236, allocations: 0.9981 MB / 407.8 MB, free: 6.844 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.704e-05/0.6237, allocations: 7.812 kB / 407.8 MB, free: 6.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.6239, allocations: 38.62 kB / 407.9 MB, free: 6.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.6239, allocations: 27.25 kB / 407.9 MB, free: 6.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002352/0.6263, allocations: 0.8389 MB / 408.7 MB, free: 6.789 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009275/0.6356, allocations: 3.801 MB / 412.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00343/0.6391, allocations: 2.434 MB / 415 MB, free: 2.621 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.6404, allocations: 424.5 kB / 415.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.6406, allocations: 97.36 kB / 415.5 MB, free: 2.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/0.6417, allocations: 467.5 kB / 415.9 MB, free: 2.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.559e-06/0.6417, allocations: 0 / 415.9 MB, free: 2.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.002602/0.6443, allocations: 0.8411 MB / 416.8 MB, free: 2.094 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.6445, allocations: 192 kB / 417 MB, free: 1.875 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007122/0.6452, allocations: 402.8 kB / 417.4 MB, free: 1.727 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001739/0.6454, allocations: 44.08 kB / 417.4 MB, free: 1.695 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003316/0.6457, allocations: 474.6 kB / 417.9 MB, free: 1.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.646, allocations: 281.4 kB / 418.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.6461, allocations: 22.56 kB / 418.2 MB, free: 1.145 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.005e-05/0.6462, allocations: 348.8 kB / 418.5 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.6469, allocations: 245.5 kB / 418.7 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007967/0.6477, allocations: 494.2 kB / 419.2 MB, free: 0.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.6485, allocations: 311 kB / 419.5 MB, free: 456 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.6485, allocations: 0 / 419.5 MB, free: 456 kB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002722/0.6513, allocations: 0.9756 MB / 420.5 MB, free: 236 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.6514, allocations: 8.031 kB / 420.5 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.6514, allocations: 7.562 kB / 420.5 MB, free: 236 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.6527, allocations: 272.5 kB / 420.8 MB, free: 164 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.654, allocations: 167.2 kB / 420.9 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007888/0.6619, allocations: 4.362 MB / 425.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.6633, allocations: 117.3 kB / 425.4 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.6635, allocations: 38.03 kB / 425.5 MB, free: 13.06 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003352/0.6638, allocations: 168.7 kB / 425.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.6641, allocations: 71.81 kB / 425.7 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/0.667, allocations: 0.9293 MB / 426.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.6671, allocations: 7.656 kB / 426.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.6671, allocations: 3.938 kB / 426.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.337e-05/0.6671, allocations: 7.859 kB / 426.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.6723, allocations: 1.891 MB / 428.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.6723, allocations: 3.984 kB / 428.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009133/0.6732, allocations: 107 kB / 428.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001352/0.6746, allocations: 264.3 kB / 428.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001451/0.6748, allocations: 21.73 kB / 428.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007576/0.6824, allocations: 4.331 MB / 433.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.6824, allocations: 4.031 kB / 433.3 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003715/0.6862, allocations: 1.302 MB / 434.6 MB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006455/0.6869, allocations: 216 kB / 434.8 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.6871, allocations: 22.41 kB / 434.8 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008729/0.688, allocations: 54.39 kB / 434.8 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/0.6882, allocations: 72.14 kB / 434.9 MB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.736e-05/0.6883, allocations: 31.36 kB / 434.9 MB, free: 7.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005634/0.6889, allocations: 308.2 kB / 435.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6889, allocations: 0 / 435.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001687/0.6906, allocations: 319.7 kB / 435.6 MB, free: 6.926 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004132/0.6948, allocations: 2.065 MB / 437.6 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.6975, allocations: 1.03 MB / 438.7 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.6976, allocations: 0 / 438.7 MB, free: 4.871 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/0.6993, allocations: 0.7095 MB / 439.4 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008958/0.7003, allocations: 111.8 kB / 439.5 MB, free: 4.336 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007215/0.7075, allocations: 1.851 MB / 441.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007711/0.7083, allocations: 1.012 MB / 442.3 MB, free: 2.426 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000733/0.7091, allocations: 325 kB / 442.6 MB, free: 2.148 MB / 330.7 MB Notification: Performance of SimCode: time 1.182e-06/0.7091, allocations: 0 / 442.6 MB, free: 2.148 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.88/3.589, allocations: 20.44 MB / 463.1 MB, free: 14.71 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat