Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",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.903/1.903, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2069/2.11, allocations: 41.11 MB / 219.3 MB, free: 11.17 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/2.223, allocations: 38.77 MB / 258 MB, free: 4.34 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2988/2.522, allocations: 67.36 MB / 325.4 MB, free: 4.66 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/2.522, allocations: 65.62 kB / 325.4 MB, free: 4.629 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.04141/2.563, allocations: 6.398 MB / 331.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/2.563, allocations: 12 kB / 331.8 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/2.564, allocations: 47.44 kB / 331.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009024/2.565, allocations: 312.3 kB / 332.2 MB, free: 14.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/2.565, allocations: 12 kB / 332.2 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.683e-05/2.565, allocations: 23.94 kB / 332.2 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001225/2.566, allocations: 210.7 kB / 332.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008128/2.567, allocations: 281.3 kB / 332.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/2.567, allocations: 0 / 332.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.005e-05/2.567, allocations: 0 / 332.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/2.567, allocations: 8 kB / 332.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005502/2.573, allocations: 1.379 MB / 334.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/2.574, allocations: 180.8 kB / 334.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/2.574, allocations: 83.98 kB / 334.4 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.772e-05/2.574, allocations: 4 kB / 334.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.247e-05/2.574, allocations: 42.19 kB / 334.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 4.598e-06/2.574, allocations: 3.938 kB / 334.4 MB, free: 12.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.001264/2.576, allocations: 241.8 kB / 334.6 MB, free: 12.69 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/2.576, allocations: 63.25 kB / 334.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008506/2.577, allocations: 245.5 kB / 334.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.516e-05/2.577, allocations: 25.7 kB / 335 MB, free: 12.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/2.577, allocations: 177 kB / 335.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/2.577, allocations: 74.22 kB / 335.2 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/2.577, allocations: 4 kB / 335.2 MB, free: 12.15 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002527/2.577, allocations: 334 kB / 335.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003839/2.578, allocations: 64.12 kB / 335.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/2.578, allocations: 92.03 kB / 335.7 MB, free: 11.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/2.579, allocations: 64.61 kB / 335.8 MB, free: 11.67 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/2.579, allocations: 4 kB / 335.8 MB, free: 11.67 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001922/2.581, allocations: 306.3 kB / 336.1 MB, free: 11.42 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/2.581, allocations: 4 kB / 336.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/2.581, allocations: 4 kB / 336.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008904/2.582, allocations: 111.6 kB / 336.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005435/2.582, allocations: 35.97 kB / 336.2 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005215/2.587, allocations: 3.978 MB / 340.2 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004847/2.588, allocations: 27.73 kB / 340.2 MB, free: 7.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/2.588, allocations: 11.81 kB / 340.2 MB, free: 7.145 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001765/2.588, allocations: 112.9 kB / 340.3 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.859e-05/2.588, allocations: 31.62 kB / 340.4 MB, free: 6.996 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/2.588, allocations: 35.7 kB / 340.4 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/2.588, allocations: 4 kB / 340.4 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/2.588, allocations: 0 / 340.4 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/2.588, allocations: 0 / 340.4 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/2.589, allocations: 322.1 kB / 340.7 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/2.589, allocations: 0 / 340.7 MB, free: 6.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/2.589, allocations: 27.98 kB / 340.8 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005625/2.59, allocations: 114.4 kB / 340.9 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/2.59, allocations: 3.938 kB / 340.9 MB, free: 6.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/2.595, allocations: 3.972 MB / 344.8 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/2.595, allocations: 0 / 344.8 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007849/2.596, allocations: 351.8 kB / 345.2 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008677/2.597, allocations: 0.7214 MB / 345.9 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/2.597, allocations: 134.7 kB / 346 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.658e-05/2.597, allocations: 0 / 346 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004651/2.597, allocations: 27.97 kB / 346.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/2.598, allocations: 11.67 kB / 346.1 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-05/2.598, allocations: 11.98 kB / 346.1 MB, free: 1.273 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003204/2.598, allocations: 190.6 kB / 346.3 MB, free: 1.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001553/2.6, allocations: 103.7 kB / 346.4 MB, free: 1.023 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001919/2.6, allocations: 100.8 kB / 346.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001071/2.601, allocations: 483.2 kB / 346.9 MB, free: 484 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/2.601, allocations: 0 / 346.9 MB, free: 484 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006087/2.602, allocations: 410.9 kB / 347.3 MB, free: 76 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/2.602, allocations: 40.73 kB / 347.4 MB, free: 44 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/2.604, allocations: 396.7 kB / 347.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/2.604, allocations: 0.8197 MB / 348.6 MB, free: 14.83 MB / 298.7 MB Notification: Performance of SimCode: time 1.393e-06/2.604, allocations: 0 / 348.6 MB, free: 14.83 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat