Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.611/1.611, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1942/1.805, allocations: 46.83 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/1.894, allocations: 44.51 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2699/2.164, allocations: 72.38 MB / 366.3 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/2.164, allocations: 70.81 kB / 366.4 MB, free: 7.207 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.02267/2.187, allocations: 4.946 MB / 371.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/2.187, allocations: 7.719 kB / 371.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.218e-05/2.187, allocations: 35 kB / 371.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/2.187, allocations: 253.7 kB / 371.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/2.187, allocations: 9.375 kB / 371.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/2.187, allocations: 11.47 kB / 371.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005735/2.188, allocations: 165.6 kB / 371.8 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/2.188, allocations: 239.2 kB / 372 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/2.189, allocations: 3.875 kB / 372 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.166e-05/2.189, allocations: 0 / 372 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/2.189, allocations: 7.859 kB / 372 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/2.191, allocations: 1.367 MB / 373.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/2.194, allocations: 306.7 kB / 373.7 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/2.194, allocations: 99.09 kB / 373.8 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/2.194, allocations: 8.703 kB / 373.8 MB, free: 5.133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.711e-05/2.194, allocations: 34.53 kB / 373.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.014e-06/2.194, allocations: 0 / 373.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004994/2.199, allocations: 0.5356 MB / 374.4 MB, free: 5.016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/2.199, allocations: 51.41 kB / 374.4 MB, free: 20.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002435/2.199, allocations: 182.1 kB / 374.6 MB, free: 20.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/2.199, allocations: 25.7 kB / 374.6 MB, free: 20.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/2.2, allocations: 150.9 kB / 374.8 MB, free: 20.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.085e-05/2.2, allocations: 49.94 kB / 374.8 MB, free: 20.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/2.2, allocations: 3.938 kB / 374.8 MB, free: 20.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/2.2, allocations: 330.5 kB / 375.1 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/2.2, allocations: 62.05 kB / 375.2 MB, free: 20.35 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/2.2, allocations: 90.89 kB / 375.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/2.2, allocations: 60.91 kB / 375.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.2, allocations: 0 / 375.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.005/2.205, allocations: 0.5613 MB / 375.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/2.205, allocations: 7.75 kB / 375.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/2.206, allocations: 0 / 375.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004893/2.206, allocations: 144.1 kB / 376.1 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/2.206, allocations: 36.94 kB / 376.1 MB, free: 20.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008789/2.215, allocations: 2.12 MB / 378.2 MB, free: 18.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005624/2.216, allocations: 44.89 kB / 378.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/2.216, allocations: 9.781 kB / 378.3 MB, free: 18.88 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.0001773/2.216, allocations: 109.4 kB / 378.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.558e-05/2.216, allocations: 27.92 kB / 378.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.25e-05/2.216, allocations: 18.83 kB / 378.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/2.216, allocations: 8.688 kB / 378.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/2.216, allocations: 0 / 378.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/2.216, allocations: 4.484 kB / 378.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/2.217, allocations: 284.8 kB / 378.7 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/2.217, allocations: 0 / 378.7 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003094/2.217, allocations: 36.83 kB / 378.7 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/2.217, allocations: 134.9 kB / 378.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/2.218, allocations: 2.578 kB / 378.9 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009251/2.227, allocations: 2.159 MB / 381 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/2.227, allocations: 0.6094 kB / 381 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005239/2.232, allocations: 0.7294 MB / 381.8 MB, free: 17.06 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005614/2.238, allocations: 1.178 MB / 383 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.922e-05/2.238, allocations: 95.02 kB / 383 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.277e-05/2.238, allocations: 7.812 kB / 383.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005957/2.238, allocations: 40.47 kB / 383.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.714e-05/2.239, allocations: 10.31 kB / 383.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/2.239, allocations: 5.141 kB / 383.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001799/2.239, allocations: 144.7 kB / 383.2 MB, free: 16.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00156/2.24, allocations: 85.91 kB / 383.3 MB, free: 16.3 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.0001809/2.241, allocations: 104.2 kB / 383.4 MB, free: 16.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001933/2.243, allocations: 373.2 kB / 383.8 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/2.243, allocations: 0 / 383.8 MB, free: 16.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/2.244, allocations: 305 kB / 384.1 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/2.245, allocations: 26.56 kB / 384.1 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/2.246, allocations: 386.3 kB / 384.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004726/2.247, allocations: 0.7747 MB / 385.3 MB, free: 15.1 MB / 314.7 MB Notification: Performance of SimCode: time 7.82e-07/2.247, allocations: 0 / 385.3 MB, free: 15.1 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat does not exist to compare? outputFormat=mat