Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.742/1.742, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1963/1.938, allocations: 41.1 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08938/2.028, allocations: 38.77 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2738/2.302, allocations: 68.3 MB / 326.3 MB, free: 3.68 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003597/2.302, allocations: 77.23 kB / 326.4 MB, free: 3.641 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.03476/2.337, allocations: 5.094 MB / 331.5 MB, free: 15.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.378e-05/2.337, allocations: 8 kB / 331.5 MB, free: 15.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/2.337, allocations: 35.53 kB / 331.5 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007139/2.338, allocations: 269.9 kB / 331.8 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.513e-05/2.338, allocations: 12 kB / 331.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.291e-05/2.338, allocations: 12 kB / 331.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008854/2.339, allocations: 174.4 kB / 332 MB, free: 14.88 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/2.34, allocations: 241.5 kB / 332.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/2.34, allocations: 0 / 332.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/2.34, allocations: 0 / 332.2 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/2.34, allocations: 7.938 kB / 332.2 MB, free: 14.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004958/2.345, allocations: 1.1 MB / 333.3 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009547/2.346, allocations: 181.7 kB / 333.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/2.347, allocations: 134.7 kB / 333.6 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-05/2.347, allocations: 4.188 kB / 333.6 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005429/2.348, allocations: 148.5 kB / 333.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 4.058e-06/2.348, allocations: 0 / 333.8 MB, free: 13.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.001452/2.349, allocations: 236.9 kB / 334 MB, free: 13.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/2.349, allocations: 136.2 kB / 334.1 MB, free: 13.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000523/2.35, allocations: 199.2 kB / 334.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.952e-05/2.35, allocations: 25.7 kB / 334.4 MB, free: 12.8 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/2.35, allocations: 153.7 kB / 334.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/2.35, allocations: 61.95 kB / 334.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/2.35, allocations: 4 kB / 334.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002423/2.35, allocations: 333.3 kB / 334.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003392/2.351, allocations: 59.88 kB / 335 MB, free: 12.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004764/2.351, allocations: 114 kB / 335.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/2.352, allocations: 69.47 kB / 335.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/2.352, allocations: 0 / 335.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001378/2.353, allocations: 248.8 kB / 335.4 MB, free: 11.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/2.353, allocations: 4.125 kB / 335.4 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/2.353, allocations: 4 kB / 335.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007944/2.354, allocations: 99.42 kB / 335.5 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/2.355, allocations: 27.42 kB / 335.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005373/2.36, allocations: 1.858 MB / 337.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006563/2.361, allocations: 35.88 kB / 337.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.667e-05/2.361, allocations: 4 kB / 337.4 MB, free: 10.05 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: idealTriac.idealThyristor.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real idealTriac.idealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003882/2.361, allocations: 117.1 kB / 337.5 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/2.361, allocations: 23.72 kB / 337.6 MB, free: 9.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/2.361, allocations: 28.73 kB / 337.6 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/2.362, allocations: 0 / 337.6 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/2.362, allocations: 8 kB / 337.6 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/2.362, allocations: 0 / 337.6 MB, free: 9.883 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/2.364, allocations: 0.7206 MB / 338.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/2.364, allocations: 0 / 338.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/2.364, allocations: 19.98 kB / 338.3 MB, free: 9.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007467/2.365, allocations: 92.31 kB / 338.4 MB, free: 9.176 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.881e-05/2.365, allocations: 11.92 kB / 338.4 MB, free: 9.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004553/2.37, allocations: 1.807 MB / 340.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/2.37, allocations: 96 / 340.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00134/2.371, allocations: 419.3 kB / 340.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001966/2.373, allocations: 0.8849 MB / 341.5 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/2.374, allocations: 127.2 kB / 341.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/2.374, allocations: 0 / 341.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000636/2.374, allocations: 27.98 kB / 341.7 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/2.375, allocations: 23.64 kB / 341.7 MB, free: 6.195 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/2.375, allocations: 4 kB / 341.7 MB, free: 6.191 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003382/2.375, allocations: 153 kB / 341.9 MB, free: 6.066 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00248/2.377, allocations: 87.73 kB / 341.9 MB, free: 5.98 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003108/2.378, allocations: 103.2 kB / 342 MB, free: 5.871 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/2.379, allocations: 293.5 kB / 342.3 MB, free: 5.637 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/2.379, allocations: 0 / 342.3 MB, free: 5.637 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008205/2.38, allocations: 217.2 kB / 342.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/2.381, allocations: 37.97 kB / 342.6 MB, free: 5.422 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/2.383, allocations: 380.5 kB / 343 MB, free: 5.059 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007814/2.384, allocations: 0.7889 MB / 343.7 MB, free: 4.246 MB / 282.7 MB Notification: Performance of SimCode: time 1.593e-06/2.384, allocations: 4 kB / 343.8 MB, free: 4.242 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat does not exist to compare? outputFormat=mat