Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.9 MB / 202.5 MB, free: 6.941 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2271/2.035, allocations: 46.82 MB / 249.3 MB, free: 5.332 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/2.124, allocations: 44.51 MB / 293.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3243/2.448, allocations: 72.38 MB / 366.2 MB, free: 7.098 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003082/2.449, allocations: 65.84 kB / 366.3 MB, free: 7.098 MB / 298.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.03378/2.482, allocations: 4.944 MB / 371.2 MB, free: 6.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.74e-05/2.483, allocations: 12.98 kB / 371.2 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/2.483, allocations: 27 kB / 371.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005372/2.483, allocations: 253.4 kB / 371.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/2.483, allocations: 7.688 kB / 371.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-05/2.483, allocations: 10.94 kB / 371.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008262/2.484, allocations: 167.6 kB / 371.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/2.485, allocations: 247.5 kB / 371.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/2.485, allocations: 0 / 371.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/2.485, allocations: 3.984 kB / 372 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/2.485, allocations: 7.375 kB / 372 MB, free: 6.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/2.489, allocations: 1.367 MB / 373.3 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003409/2.493, allocations: 308.5 kB / 373.6 MB, free: 5.043 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/2.493, allocations: 92.2 kB / 373.7 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/2.493, allocations: 13 kB / 373.7 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/2.493, allocations: 30.56 kB / 373.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 4.929e-06/2.493, allocations: 0 / 373.8 MB, free: 4.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.006984/2.5, allocations: 0.5328 MB / 374.3 MB, free: 4.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/2.5, allocations: 51.41 kB / 374.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/2.501, allocations: 184.2 kB / 374.5 MB, free: 20.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.39e-05/2.501, allocations: 25.7 kB / 374.5 MB, free: 20.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/2.501, allocations: 152.5 kB / 374.7 MB, free: 20.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.673e-05/2.501, allocations: 49.77 kB / 374.7 MB, free: 20.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.931e-05/2.501, allocations: 3.938 kB / 374.7 MB, free: 20.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002228/2.501, allocations: 334.8 kB / 375.1 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/2.502, allocations: 56.95 kB / 375.1 MB, free: 20.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/2.502, allocations: 92.77 kB / 375.2 MB, free: 20.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003182/2.502, allocations: 69.12 kB / 375.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/2.503, allocations: 0 / 375.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.007144/2.51, allocations: 0.5616 MB / 375.9 MB, free: 20.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/2.51, allocations: 12.36 kB / 375.9 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/2.51, allocations: 3.656 kB / 375.9 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007438/2.511, allocations: 132.8 kB / 376 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005318/2.511, allocations: 41.06 kB / 376 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/2.524, allocations: 2.114 MB / 378.2 MB, free: 18.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008286/2.525, allocations: 45.06 kB / 378.2 MB, free: 18.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.889e-05/2.525, allocations: 9.266 kB / 378.2 MB, free: 18.78 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.0002753/2.525, allocations: 117.2 kB / 378.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/2.525, allocations: 20.12 kB / 378.3 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/2.525, allocations: 26.64 kB / 378.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/2.525, allocations: 0 / 378.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/2.525, allocations: 0 / 378.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/2.525, allocations: 1.359 kB / 378.4 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/2.526, allocations: 292.3 kB / 378.7 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/2.526, allocations: 0.75 kB / 378.7 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004758/2.527, allocations: 32.72 kB / 378.7 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000632/2.527, allocations: 130 kB / 378.8 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/2.527, allocations: 9.703 kB / 378.8 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/2.541, allocations: 2.162 MB / 381 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/2.541, allocations: 0.6094 kB / 381 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007265/2.548, allocations: 0.7216 MB / 381.7 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00779/2.556, allocations: 1.185 MB / 382.9 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/2.556, allocations: 102.8 kB / 383 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-05/2.556, allocations: 3.938 kB / 383 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008179/2.557, allocations: 39.02 kB / 383 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/2.557, allocations: 13.39 kB / 383 MB, free: 16.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.416e-05/2.557, allocations: 3.812 kB / 383 MB, free: 16.29 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002507/2.557, allocations: 137.7 kB / 383.2 MB, free: 16.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002386/2.56, allocations: 84.19 kB / 383.3 MB, free: 16.2 MB / 314.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.0003021/2.56, allocations: 109.8 kB / 383.4 MB, free: 16.11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002813/2.563, allocations: 367.3 kB / 383.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/2.563, allocations: 0 / 383.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002542/2.566, allocations: 308.7 kB / 384 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/2.566, allocations: 26.16 kB / 384.1 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/2.569, allocations: 390 kB / 384.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/2.569, allocations: 0.7738 MB / 385.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of SimCode: time 1.333e-06/2.569, allocations: 0 / 385.2 MB, free: 14.99 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat