Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.028/2.028, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.812e-05, allocations: 0 / 269.4 MB, free: 6.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 47.59 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4305/0.5356, allocations: 77.31 MB / 394.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5359, allocations: 65.28 kB / 394.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02358/0.5595, allocations: 4.595 MB / 399 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5595, allocations: 0 / 399 MB, free: 6.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.5596, allocations: 4 kB / 399 MB, free: 6.621 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001507/0.5611, allocations: 0.533 MB / 399.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.5611, allocations: 12.03 kB / 399.5 MB, free: 6.047 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.809e-05/0.5612, allocations: 51.05 kB / 399.6 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.5614, allocations: 37.86 kB / 399.6 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.5618, allocations: 253.8 kB / 399.9 MB, free: 5.695 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.5618, allocations: 14.69 kB / 399.9 MB, free: 5.688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.5619, allocations: 22.19 kB / 399.9 MB, free: 5.672 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006442/0.5625, allocations: 242.1 kB / 400.2 MB, free: 5.484 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.5626, allocations: 4 kB / 400.2 MB, free: 5.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.158e-05/0.5626, allocations: 10.88 kB / 400.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.5627, allocations: 4 kB / 400.2 MB, free: 5.473 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005712/0.5632, allocations: 178.2 kB / 400.3 MB, free: 5.363 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.566, allocations: 1.084 MB / 401.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.5686, allocations: 336.3 kB / 401.8 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.5689, allocations: 102.5 kB / 401.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.293e-05/0.5689, allocations: 4 kB / 401.9 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.569, allocations: 33.94 kB / 401.9 MB, free: 3.984 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 3.035e-06/0.569, allocations: 0 / 401.9 MB, free: 3.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.004866/0.5739, allocations: 0.5264 MB / 402.4 MB, free: 3.504 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.574, allocations: 59.41 kB / 402.5 MB, free: 3.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003595/0.5743, allocations: 191.8 kB / 402.7 MB, free: 3.266 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.5744, allocations: 29.2 kB / 402.7 MB, free: 3.234 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.5746, allocations: 157.2 kB / 402.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.5747, allocations: 49.11 kB / 402.9 MB, free: 3.059 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.566e-05/0.5747, allocations: 2.75 kB / 402.9 MB, free: 3.059 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.5748, allocations: 332 kB / 403.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.5751, allocations: 59.8 kB / 403.3 MB, free: 2.699 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.5753, allocations: 80.39 kB / 403.4 MB, free: 2.641 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.5756, allocations: 64.33 kB / 403.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.5756, allocations: 0 / 403.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004798/0.5804, allocations: 0.5484 MB / 404 MB, free: 2.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.5805, allocations: 7.938 kB / 404 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.5805, allocations: 0 / 404 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005443/0.581, allocations: 143.1 kB / 404.1 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.5814, allocations: 35.97 kB / 404.2 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009023/0.5904, allocations: 2.182 MB / 406.3 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/0.591, allocations: 42.39 kB / 406.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.5911, allocations: 7.984 kB / 406.4 MB, free: 15.83 MB / 330.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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.0001404/0.5912, allocations: 108.4 kB / 406.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.281e-05/0.5913, allocations: 26.8 kB / 406.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.698e-05/0.5914, allocations: 27.77 kB / 406.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.5914, allocations: 0 / 406.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.5914, allocations: 4 kB / 406.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.5915, allocations: 0 / 406.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005875/0.5921, allocations: 325.1 kB / 406.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5921, allocations: 3.938 kB / 406.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003132/0.5924, allocations: 35.88 kB / 406.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004547/0.5929, allocations: 136.9 kB / 407 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.5929, allocations: 15.48 kB / 407.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008815/0.6017, allocations: 2.167 MB / 409.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6018, allocations: 0 / 409.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005204/0.607, allocations: 0.7112 MB / 409.9 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.6072, allocations: 104.7 kB / 410 MB, free: 12.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.6073, allocations: 8.062 kB / 410 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.6078, allocations: 39.78 kB / 410.1 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.6079, allocations: 7.984 kB / 410.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.608, allocations: 7.953 kB / 410.1 MB, free: 12.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000232/0.6082, allocations: 156.1 kB / 410.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.6082, allocations: 4 kB / 410.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006875/0.6089, allocations: 79.72 kB / 410.3 MB, free: 12.11 MB / 330.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.005541/0.6145, allocations: 1.251 MB / 411.6 MB, free: 10.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.6167, allocations: 377.9 kB / 412 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6167, allocations: 0 / 412 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/0.6185, allocations: 307.9 kB / 412.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.6189, allocations: 32.17 kB / 412.3 MB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.6207, allocations: 428.3 kB / 412.7 MB, free: 9.898 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.6212, allocations: 0.7519 MB / 413.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.6213, allocations: 13.55 kB / 413.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.6215, allocations: 65.72 kB / 413.5 MB, free: 9.086 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6215, allocations: 7.938 kB / 413.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05658/0.6781, allocations: 6.467 MB / 420 MB, free: 2.695 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003367/0.6785, allocations: 194.2 kB / 420.2 MB, free: 2.465 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.441, allocations: 3.938 kB / 420.2 MB, free: 2.461 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat