Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.667/1.667, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2337/1.901, allocations: 46.84 MB / 249.3 MB, free: 5.328 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/1.987, allocations: 44.51 MB / 293.9 MB, free: 10.92 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2635/2.25, allocations: 74.58 MB / 368.4 MB, free: 7.121 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/2.251, allocations: 73.95 kB / 368.5 MB, free: 7.121 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.02499/2.276, allocations: 5.928 MB / 374.4 MB, free: 6.273 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/2.276, allocations: 7.781 kB / 374.4 MB, free: 6.273 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.78e-05/2.276, allocations: 31.16 kB / 374.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004169/2.276, allocations: 286.7 kB / 374.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/2.276, allocations: 8.375 kB / 374.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/2.276, allocations: 15.62 kB / 374.8 MB, free: 6.023 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005034/2.277, allocations: 164.6 kB / 374.9 MB, free: 6.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/2.278, allocations: 192 kB / 375.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/2.278, allocations: 11.88 kB / 375.1 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/2.278, allocations: 0 / 375.1 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/2.278, allocations: 7.781 kB / 375.1 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/2.28, allocations: 1.029 MB / 376.2 MB, free: 5.457 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003562/2.28, allocations: 102.3 kB / 376.3 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/2.281, allocations: 41.67 kB / 376.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/2.281, allocations: 0 / 376.3 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/2.281, allocations: 98.58 kB / 376.4 MB, free: 5.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.804e-06/2.281, allocations: 0 / 376.4 MB, free: 5.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004378/2.281, allocations: 133.5 kB / 376.5 MB, free: 5.293 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/2.281, allocations: 81.92 kB / 376.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/2.282, allocations: 231.3 kB / 376.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/2.282, allocations: 26.41 kB / 376.9 MB, free: 5.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/2.282, allocations: 186.9 kB / 377.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/2.282, allocations: 32.94 kB / 377.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.961e-05/2.282, allocations: 3.969 kB / 377.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/2.282, allocations: 333 kB / 377.4 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/2.282, allocations: 48.52 kB / 377.5 MB, free: 20.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/2.282, allocations: 150.3 kB / 377.6 MB, free: 20.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/2.283, allocations: 65.33 kB / 377.7 MB, free: 20.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/2.283, allocations: 0 / 377.7 MB, free: 20.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006049/2.283, allocations: 235.9 kB / 377.9 MB, free: 20.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/2.283, allocations: 4.594 kB / 377.9 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/2.283, allocations: 7.844 kB / 377.9 MB, free: 20.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/2.284, allocations: 28.81 kB / 377.9 MB, free: 20.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/2.284, allocations: 65.95 kB / 378 MB, free: 20.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/2.285, allocations: 1.25 MB / 379.3 MB, free: 19.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005628/2.286, allocations: 48.88 kB / 379.3 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/2.286, allocations: 16.36 kB / 379.3 MB, free: 19.12 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.00012/2.286, allocations: 119.2 kB / 379.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/2.286, allocations: 20.42 kB / 379.5 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.26e-05/2.286, allocations: 26.27 kB / 379.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/2.286, allocations: 0 / 379.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.286, allocations: 8.484 kB / 379.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/2.286, allocations: 0.7031 kB / 379.5 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005614/2.287, allocations: 401.1 kB / 379.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/2.287, allocations: 0 / 379.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/2.287, allocations: 32.25 kB / 379.9 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/2.287, allocations: 29.02 kB / 379.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/2.287, allocations: 1.031 kB / 379.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001146/2.288, allocations: 1.249 MB / 381.2 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/2.288, allocations: 0 / 381.2 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003783/2.289, allocations: 179 kB / 381.4 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005104/2.289, allocations: 0.5477 MB / 381.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.023e-05/2.289, allocations: 95.56 kB / 382 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/2.29, allocations: 4.625 kB / 382 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/2.29, allocations: 30.17 kB / 382 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.682e-05/2.29, allocations: 21.8 kB / 382.1 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/2.29, allocations: 0.6094 kB / 382.1 MB, free: 16.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002536/2.29, allocations: 182.8 kB / 382.2 MB, free: 16.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001423/2.292, allocations: 67.11 kB / 382.3 MB, free: 16.69 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.0001585/2.292, allocations: 95.86 kB / 382.4 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006247/2.293, allocations: 270.8 kB / 382.7 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/2.293, allocations: 0 / 382.7 MB, free: 16.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003275/2.293, allocations: 159.4 kB / 382.8 MB, free: 16.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/2.293, allocations: 41.39 kB / 382.9 MB, free: 16.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008737/2.294, allocations: 267.5 kB / 383.1 MB, free: 16.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004814/2.295, allocations: 0.7924 MB / 383.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/2.295, allocations: 0 / 383.9 MB, free: 15.49 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat