Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",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.633/1.633, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2282/1.862, allocations: 46.83 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08873/1.95, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/2.231, allocations: 75.12 MB / 369 MB, free: 7.059 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/2.231, allocations: 66.69 kB / 369.1 MB, free: 7.059 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.04466/2.276, allocations: 8.891 MB / 378 MB, free: 5.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/2.276, allocations: 11.66 kB / 378 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/2.276, allocations: 58.58 kB / 378.1 MB, free: 5.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006584/2.277, allocations: 374.4 kB / 378.4 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/2.277, allocations: 19.53 kB / 378.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/2.277, allocations: 23.22 kB / 378.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001203/2.278, allocations: 361.1 kB / 378.8 MB, free: 5.219 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/2.279, allocations: 401.5 kB / 379.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/2.279, allocations: 5.141 kB / 379.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-05/2.279, allocations: 0 / 379.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/2.279, allocations: 15.59 kB / 379.2 MB, free: 5.074 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005688/2.285, allocations: 1.978 MB / 381.2 MB, free: 3.961 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/2.286, allocations: 242.8 kB / 381.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006258/2.286, allocations: 251.4 kB / 381.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.133e-05/2.286, allocations: 7.953 kB / 381.7 MB, free: 3.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006551/2.287, allocations: 274.6 kB / 382 MB, free: 3.801 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 2.685e-06/2.287, allocations: 0 / 382 MB, free: 3.801 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002123/2.289, allocations: 0.5159 MB / 382.5 MB, free: 3.684 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/2.289, allocations: 84.83 kB / 382.6 MB, free: 3.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004583/2.29, allocations: 287.5 kB / 382.8 MB, free: 3.469 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.79e-05/2.29, allocations: 25.7 kB / 382.9 MB, free: 19.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/2.29, allocations: 183 kB / 383 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/2.29, allocations: 124.1 kB / 383.2 MB, free: 19.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/2.29, allocations: 0 / 383.2 MB, free: 19.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/2.291, allocations: 354 kB / 383.5 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005294/2.291, allocations: 161.5 kB / 383.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005325/2.292, allocations: 192 kB / 383.9 MB, free: 18.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/2.292, allocations: 159 kB / 384 MB, free: 18.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/2.292, allocations: 0 / 384 MB, free: 18.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001893/2.294, allocations: 0.5225 MB / 384.5 MB, free: 18.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/2.294, allocations: 3.719 kB / 384.5 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/2.294, allocations: 7.594 kB / 384.5 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/2.296, allocations: 330 kB / 384.9 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009593/2.297, allocations: 105.7 kB / 385 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/2.31, allocations: 2.845 MB / 387.8 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/2.312, allocations: 105.6 kB / 387.9 MB, free: 16.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-05/2.312, allocations: 15.36 kB / 387.9 MB, free: 16.99 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002713/2.312, allocations: 112.6 kB / 388 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/2.312, allocations: 38.94 kB / 388.1 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002086/2.312, allocations: 52.34 kB / 388.1 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/2.312, allocations: 7.625 kB / 388.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/2.312, allocations: 0 / 388.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/2.312, allocations: 3.984 kB / 388.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009265/2.313, allocations: 0.518 MB / 388.7 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/2.313, allocations: 0 / 388.7 MB, free: 16.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009539/2.314, allocations: 97.11 kB / 388.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00155/2.316, allocations: 331.9 kB / 389.1 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.159e-05/2.316, allocations: 7.922 kB / 389.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01333/2.329, allocations: 2.825 MB / 391.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.329, allocations: 4 kB / 391.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00293/2.332, allocations: 0.798 MB / 392.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003799/2.336, allocations: 1.424 MB / 394.1 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004072/2.337, allocations: 167.5 kB / 394.3 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/2.337, allocations: 5.375 kB / 394.3 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/2.338, allocations: 96.34 kB / 394.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/2.338, allocations: 37.41 kB / 394.4 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.228e-05/2.338, allocations: 11.06 kB / 394.5 MB, free: 14 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0004284/2.339, allocations: 219.5 kB / 394.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001871/2.341, allocations: 158.6 kB / 394.8 MB, free: 13.89 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.000305/2.341, allocations: 117.8 kB / 394.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002465/2.344, allocations: 0.5638 MB / 395.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/2.344, allocations: 3.812 kB / 395.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/2.345, allocations: 369.5 kB / 395.9 MB, free: 13.49 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006511/2.346, allocations: 50.33 kB / 395.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004684/2.351, allocations: 0.8038 MB / 396.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007276/2.351, allocations: 0.8658 MB / 397.6 MB, free: 12.31 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/2.351, allocations: 1.344 kB / 397.6 MB, free: 12.31 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat does not exist to compare? outputFormat=mat