Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.55e-05/4.556e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.4 MB / 342.6 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4447/0.5554, allocations: 80.69 MB / 423.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.5557, allocations: 71.22 kB / 423.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04113/0.5969, allocations: 9.135 MB / 432.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5969, allocations: 0 / 432.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.96e-05/0.597, allocations: 12 kB / 432.6 MB, free: 5.348 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002027/0.599, allocations: 0.7525 MB / 433.3 MB, free: 4.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.5991, allocations: 8.031 kB / 433.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002347/0.5993, allocations: 104.9 kB / 433.4 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.5995, allocations: 79.14 kB / 433.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007454/0.6003, allocations: 375.5 kB / 433.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.6004, allocations: 41.27 kB / 433.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.6005, allocations: 58.56 kB / 434 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.6018, allocations: 0.5316 MB / 434.5 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.6019, allocations: 4 kB / 434.5 MB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7e-05/0.602, allocations: 20.94 kB / 434.5 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.602, allocations: 12 kB / 434.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.6032, allocations: 423.2 kB / 434.9 MB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004809/0.608, allocations: 2.11 MB / 437 MB, free: 1.527 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.6094, allocations: 0.6074 MB / 437.7 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008474/0.6103, allocations: 377.1 kB / 438 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.796e-05/0.6103, allocations: 8.562 kB / 438 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.6104, allocations: 39.05 kB / 438.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 3.877e-06/0.6104, allocations: 0 / 438.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.003448/0.6138, allocations: 1.257 MB / 439.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.442e-05/0.614, allocations: 63.92 kB / 439.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.6145, allocations: 306.3 kB / 439.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-05/0.6146, allocations: 37.08 kB / 439.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001969/0.6148, allocations: 241.9 kB / 440 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002314/0.6151, allocations: 200.9 kB / 440.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.6151, allocations: 11.25 kB / 440.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.6153, allocations: 354.6 kB / 440.5 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004644/0.6158, allocations: 159.1 kB / 440.7 MB, free: 14.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.6163, allocations: 193.3 kB / 440.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004594/0.6168, allocations: 160.1 kB / 441 MB, free: 14.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.6168, allocations: 0 / 441 MB, free: 14.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00179/0.6186, allocations: 0.6306 MB / 441.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.6187, allocations: 8 kB / 441.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6187, allocations: 0 / 441.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001182/0.6199, allocations: 245.2 kB / 441.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005667/0.6205, allocations: 67.77 kB / 442 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/0.6295, allocations: 6.758 MB / 448.7 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005867/0.6302, allocations: 21.11 kB / 448.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.6302, allocations: 15.25 kB / 448.8 MB, free: 7.078 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.6304, allocations: 126.4 kB / 448.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.6306, allocations: 59.45 kB / 448.9 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.6307, allocations: 72.8 kB / 449 MB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.6308, allocations: 8 kB / 449 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.6308, allocations: 0 / 449 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.6308, allocations: 0.5625 kB / 449 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003135/0.6339, allocations: 1.31 MB / 450.3 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.634, allocations: 0 / 450.3 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/0.6346, allocations: 63.39 kB / 450.4 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.6357, allocations: 253.8 kB / 450.6 MB, free: 5.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-05/0.6358, allocations: 14.52 kB / 450.6 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009278/0.6451, allocations: 6.771 MB / 457.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6452, allocations: 3.953 kB / 457.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002622/0.6478, allocations: 0.9704 MB / 458.4 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.6482, allocations: 152.5 kB / 458.5 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.6483, allocations: 12 kB / 458.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004901/0.6488, allocations: 19.98 kB / 458.6 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.6491, allocations: 52.48 kB / 458.6 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.512e-05/0.6491, allocations: 16 kB / 458.6 MB, free: 13.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004358/0.6496, allocations: 254.1 kB / 458.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6496, allocations: 4 kB / 458.9 MB, free: 12.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001252/0.6509, allocations: 176 kB / 459.1 MB, free: 12.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003072/0.654, allocations: 1.531 MB / 460.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002193/0.6562, allocations: 0.9569 MB / 461.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.6563, allocations: 0 / 461.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.6579, allocations: 0.7818 MB / 462.3 MB, free: 9.215 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007473/0.6587, allocations: 79.05 kB / 462.4 MB, free: 9.141 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003807/0.6625, allocations: 1.127 MB / 463.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.6631, allocations: 0.8985 MB / 464.4 MB, free: 7.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003207/0.6635, allocations: 48.53 kB / 464.5 MB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.6638, allocations: 175.4 kB / 464.7 MB, free: 6.832 MB / 378.7 MB Notification: Performance of SimCode: time 1.173e-06/0.6638, allocations: 0 / 464.7 MB, free: 6.832 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05234/0.7162, allocations: 12.07 MB / 476.7 MB, free: 10.9 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000299/0.7166, allocations: 176.9 kB / 476.9 MB, free: 10.68 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.883/3.6, allocations: 0 / 476.9 MB, free: 10.68 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat