Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.634/1.634, allocations: 171.2 MB / 183.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.775e-05/3.792e-05, allocations: 7.984 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2537, allocations: 38.76 MB / 263.9 MB, free: 9.797 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.3744, allocations: 67.99 MB / 331.8 MB, free: 5.707 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.3747, allocations: 71.97 kB / 331.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02302/0.3978, allocations: 4.725 MB / 336.6 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3978, allocations: 0 / 336.6 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.3979, allocations: 8 kB / 336.6 MB, free: 0.8828 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001419/0.3993, allocations: 0.5336 MB / 337.2 MB, free: 312 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3994, allocations: 8.031 kB / 337.2 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.622e-05/0.3995, allocations: 54.55 kB / 337.2 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/0.3996, allocations: 35.62 kB / 337.3 MB, free: 204 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.4, allocations: 251.5 kB / 337.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.4001, allocations: 20.42 kB / 337.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-05/0.4001, allocations: 23.91 kB / 337.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006737/0.4008, allocations: 264.4 kB / 337.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.4009, allocations: 3.938 kB / 337.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/0.4009, allocations: 12 kB / 337.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.4009, allocations: 4 kB / 337.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005799/0.4015, allocations: 185.6 kB / 338 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.4043, allocations: 1.265 MB / 339.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002297/0.4067, allocations: 334.5 kB / 339.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.407, allocations: 104.8 kB / 339.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.407, allocations: 7.984 kB / 339.7 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.4071, allocations: 30.56 kB / 339.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.304e-06/0.4071, allocations: 0 / 339.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004516/0.4116, allocations: 0.5213 MB / 340.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.725e-05/0.4117, allocations: 55.41 kB / 340.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.4121, allocations: 201.1 kB / 340.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.301e-05/0.4122, allocations: 25.7 kB / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.4123, allocations: 168 kB / 340.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.118e-05/0.4124, allocations: 47.3 kB / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.4124, allocations: 0 / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4126, allocations: 338.8 kB / 341.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.4128, allocations: 63.98 kB / 341.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.4131, allocations: 96.91 kB / 341.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.4134, allocations: 65.06 kB / 341.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4134, allocations: 0 / 341.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.004555/0.4179, allocations: 0.5648 MB / 341.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.418, allocations: 11.89 kB / 341.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.418, allocations: 4 kB / 341.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005239/0.4186, allocations: 132.8 kB / 342 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.419, allocations: 47.97 kB / 342.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008595/0.4276, allocations: 2.173 MB / 344.2 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.4282, allocations: 43.73 kB / 344.3 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4282, allocations: 15.98 kB / 344.3 MB, free: 8.789 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001429/0.4284, allocations: 116.9 kB / 344.4 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-05/0.4285, allocations: 19.81 kB / 344.4 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.596e-05/0.4286, allocations: 25.95 kB / 344.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.4286, allocations: 4 kB / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4286, allocations: 0 / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4286, allocations: 0 / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005971/0.4292, allocations: 337.2 kB / 344.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4292, allocations: 0 / 344.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.4295, allocations: 31.97 kB / 344.8 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004395/0.43, allocations: 132.8 kB / 345 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/0.4301, allocations: 7.984 kB / 345 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008268/0.4383, allocations: 2.17 MB / 347.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.4384, allocations: 3.953 kB / 347.1 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.4432, allocations: 0.7148 MB / 347.9 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002141/0.4435, allocations: 124.8 kB / 348 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.4436, allocations: 3.953 kB / 348 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/0.4442, allocations: 47.97 kB / 348 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.114e-05/0.4443, allocations: 7.984 kB / 348 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-05/0.4443, allocations: 7.984 kB / 348 MB, free: 4.812 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.4446, allocations: 157.4 kB / 348.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4446, allocations: 3.938 kB / 348.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006437/0.4452, allocations: 87.84 kB / 348.3 MB, free: 4.566 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005231/0.4505, allocations: 1.258 MB / 349.5 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.4526, allocations: 391 kB / 349.9 MB, free: 2.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4527, allocations: 4.062 kB / 349.9 MB, free: 2.883 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.4544, allocations: 314.5 kB / 350.2 MB, free: 2.562 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.4548, allocations: 28.42 kB / 350.3 MB, free: 2.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.4565, allocations: 424.8 kB / 350.7 MB, free: 2.086 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.4569, allocations: 0.7519 MB / 351.4 MB, free: 1.305 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.4571, allocations: 17.55 kB / 351.4 MB, free: 1.289 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.4573, allocations: 71.41 kB / 351.5 MB, free: 1.219 MB / 298.7 MB Notification: Performance of SimCode: time 1.263e-06/0.4573, allocations: 0 / 351.5 MB, free: 1.219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03751/0.4948, allocations: 6.585 MB / 358.1 MB, free: 10.71 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003304/0.4952, allocations: 195.1 kB / 358.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.595/3.091, allocations: 0 / 358.3 MB, free: 10.48 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat