Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.668/1.668, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2442/1.912, allocations: 46.84 MB / 249.4 MB, free: 5.336 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/1.999, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.293/2.292, allocations: 74.57 MB / 368.5 MB, free: 7.09 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/2.292, allocations: 77.34 kB / 368.6 MB, free: 7.09 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.02594/2.318, allocations: 5.934 MB / 374.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/2.318, allocations: 12.39 kB / 374.5 MB, free: 6.234 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.886e-05/2.318, allocations: 31.28 kB / 374.5 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/2.319, allocations: 282.7 kB / 374.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/2.319, allocations: 7.781 kB / 374.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/2.319, allocations: 19.56 kB / 374.8 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005205/2.32, allocations: 164.7 kB / 375 MB, free: 5.977 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/2.32, allocations: 193.4 kB / 375.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/2.32, allocations: 0 / 375.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/2.32, allocations: 0.5156 kB / 375.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/2.32, allocations: 7.719 kB / 375.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/2.323, allocations: 1.036 MB / 376.2 MB, free: 5.422 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/2.323, allocations: 88.94 kB / 376.3 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/2.323, allocations: 40.59 kB / 376.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/2.323, allocations: 0.75 kB / 376.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/2.324, allocations: 106.9 kB / 376.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 2.414e-06/2.324, allocations: 0 / 376.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004711/2.324, allocations: 129 kB / 376.6 MB, free: 5.262 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/2.324, allocations: 82.53 kB / 376.7 MB, free: 5.168 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003394/2.324, allocations: 234 kB / 376.9 MB, free: 5.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/2.325, allocations: 25.7 kB / 376.9 MB, free: 5.039 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/2.325, allocations: 194.6 kB / 377.1 MB, free: 4.891 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/2.325, allocations: 30.09 kB / 377.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.991e-05/2.325, allocations: 0 / 377.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/2.325, allocations: 331.1 kB / 377.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001637/2.325, allocations: 47.94 kB / 377.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/2.325, allocations: 152.4 kB / 377.7 MB, free: 20.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/2.325, allocations: 79.14 kB / 377.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/2.325, allocations: 0 / 377.7 MB, free: 20.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006258/2.326, allocations: 232.2 kB / 378 MB, free: 20.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/2.326, allocations: 7.812 kB / 378 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/2.326, allocations: 3.875 kB / 378 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002279/2.326, allocations: 33.34 kB / 378 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/2.327, allocations: 67.11 kB / 378.1 MB, free: 20.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/2.328, allocations: 1.247 MB / 379.3 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006055/2.329, allocations: 49.14 kB / 379.4 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/2.329, allocations: 12.67 kB / 379.4 MB, free: 19.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/2.329, allocations: 122.2 kB / 379.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/2.329, allocations: 23.38 kB / 379.5 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.84e-05/2.329, allocations: 24.64 kB / 379.6 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/2.329, allocations: 0 / 379.6 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/2.329, allocations: 0 / 379.6 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/2.329, allocations: 0.75 kB / 379.6 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/2.33, allocations: 395.9 kB / 379.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/2.33, allocations: 3.875 kB / 380 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/2.33, allocations: 34.47 kB / 380 MB, free: 18.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/2.33, allocations: 25.38 kB / 380 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/2.33, allocations: 8.562 kB / 380 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/2.332, allocations: 1.245 MB / 381.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.332, allocations: 0 / 381.3 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004066/2.332, allocations: 174.9 kB / 381.4 MB, free: 17.34 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005206/2.333, allocations: 0.5503 MB / 382 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/2.333, allocations: 99.81 kB / 382.1 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.605e-05/2.333, allocations: 4.766 kB / 382.1 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004268/2.333, allocations: 26.28 kB / 382.1 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/2.333, allocations: 26.02 kB / 382.1 MB, free: 16.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/2.333, allocations: 1.172 kB / 382.1 MB, free: 16.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002765/2.334, allocations: 181.9 kB / 382.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001394/2.335, allocations: 69.92 kB / 382.4 MB, free: 16.64 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001806/2.335, allocations: 107.9 kB / 382.5 MB, free: 16.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006623/2.336, allocations: 256.8 kB / 382.7 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.336, allocations: 0.9375 kB / 382.7 MB, free: 16.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/2.336, allocations: 162 kB / 382.9 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/2.337, allocations: 35.61 kB / 382.9 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009765/2.338, allocations: 271.6 kB / 383.2 MB, free: 16.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005162/2.338, allocations: 0.788 MB / 384 MB, free: 15.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/2.338, allocations: 0 / 384 MB, free: 15.43 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat