Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.622/1.622, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2348/1.856, allocations: 46.83 MB / 249.4 MB, free: 5.312 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08786/1.944, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/2.215, allocations: 74 MB / 367.9 MB, free: 7.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/2.215, allocations: 73.41 kB / 368 MB, free: 7.062 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.0303/2.246, allocations: 7.463 MB / 375.5 MB, free: 5.984 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/2.246, allocations: 7.75 kB / 375.5 MB, free: 5.984 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/2.246, allocations: 62.09 kB / 375.5 MB, free: 5.953 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005346/2.246, allocations: 311.4 kB / 375.8 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/2.246, allocations: 16.39 kB / 375.8 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/2.247, allocations: 27.41 kB / 375.9 MB, free: 5.711 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008085/2.247, allocations: 263.5 kB / 376.1 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008578/2.248, allocations: 340.5 kB / 376.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/2.248, allocations: 4.578 kB / 376.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/2.248, allocations: 3.938 kB / 376.5 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/2.248, allocations: 7.75 kB / 376.5 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/2.252, allocations: 1.581 MB / 378.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/2.252, allocations: 255.1 kB / 378.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003754/2.253, allocations: 171.7 kB / 378.5 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/2.253, allocations: 4.156 kB / 378.5 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/2.253, allocations: 253.9 kB / 378.7 MB, free: 4.598 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 2.735e-06/2.253, allocations: 0 / 378.7 MB, free: 4.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001276/2.254, allocations: 402.8 kB / 379.1 MB, free: 4.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/2.255, allocations: 213.3 kB / 379.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/2.255, allocations: 248.1 kB / 379.6 MB, free: 20.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/2.255, allocations: 29.58 kB / 379.6 MB, free: 20.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/2.255, allocations: 185.5 kB / 379.8 MB, free: 19.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.327e-05/2.255, allocations: 115 kB / 379.9 MB, free: 19.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/2.255, allocations: 0 / 379.9 MB, free: 19.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/2.255, allocations: 348.5 kB / 380.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/2.256, allocations: 102.9 kB / 380.3 MB, free: 19.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003867/2.256, allocations: 171.3 kB / 380.5 MB, free: 19.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/2.257, allocations: 111 kB / 380.6 MB, free: 19.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/2.257, allocations: 0 / 380.6 MB, free: 19.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009996/2.258, allocations: 407 kB / 381 MB, free: 19.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/2.258, allocations: 7.844 kB / 381 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/2.258, allocations: 0 / 381 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007616/2.258, allocations: 147 kB / 381.2 MB, free: 19.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/2.259, allocations: 39.06 kB / 381.2 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006048/2.265, allocations: 5.333 MB / 386.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007023/2.266, allocations: 46.72 kB / 386.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/2.266, allocations: 11.78 kB / 386.6 MB, free: 14.23 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002176/2.266, allocations: 163 kB / 386.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/2.266, allocations: 34.94 kB / 386.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/2.266, allocations: 41.58 kB / 386.8 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-06/2.266, allocations: 7.938 kB / 386.8 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/2.266, allocations: 3.906 kB / 386.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/2.266, allocations: 3.938 kB / 386.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005811/2.267, allocations: 381 kB / 387.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/2.267, allocations: 0 / 387.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/2.267, allocations: 31.39 kB / 387.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006843/2.268, allocations: 146.5 kB / 387.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/2.268, allocations: 3.188 kB / 387.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006019/2.274, allocations: 5.328 MB / 392.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/2.274, allocations: 0 / 392.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001329/2.275, allocations: 445.2 kB / 393.1 MB, free: 8.555 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001408/2.277, allocations: 0.8234 MB / 394 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002886/2.277, allocations: 143.8 kB / 394.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/2.277, allocations: 7.438 kB / 394.1 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/2.278, allocations: 39.44 kB / 394.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/2.278, allocations: 27.48 kB / 394.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/2.278, allocations: 15.39 kB / 394.2 MB, free: 7.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002824/2.278, allocations: 193 kB / 394.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001702/2.28, allocations: 144.2 kB / 394.5 MB, free: 7.734 MB / 314.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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002733/2.28, allocations: 130 kB / 394.6 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001308/2.281, allocations: 0.746 MB / 395.4 MB, free: 7.141 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/2.281, allocations: 0 / 395.4 MB, free: 7.141 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008372/2.282, allocations: 0.6008 MB / 396 MB, free: 6.684 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/2.283, allocations: 50.97 kB / 396 MB, free: 6.672 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/2.285, allocations: 0.5155 MB / 396.6 MB, free: 6.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/2.285, allocations: 0.8469 MB / 397.4 MB, free: 5.656 MB / 314.7 MB Notification: Performance of SimCode: time 8.61e-07/2.285, allocations: 3.938 kB / 397.4 MB, free: 5.652 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat