Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.788e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09758, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.5286, allocations: 75.85 MB / 375.8 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5289, allocations: 69.34 kB / 375.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04244/0.5714, allocations: 8.213 MB / 384.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5714, allocations: 0 / 384.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.488e-05/0.5715, allocations: 8.25 kB / 384.1 MB, free: 11.46 MB / 314.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.003483/0.575, allocations: 0.8417 MB / 384.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.5751, allocations: 10.25 kB / 384.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002755/0.5753, allocations: 70.92 kB / 385 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.5756, allocations: 56.19 kB / 385.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008856/0.5765, allocations: 373.7 kB / 385.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.931e-05/0.5766, allocations: 29.78 kB / 385.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.5768, allocations: 33.94 kB / 385.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.5782, allocations: 454.2 kB / 385.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.5783, allocations: 1.312 kB / 385.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.683e-05/0.5784, allocations: 14.25 kB / 386 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.5784, allocations: 10.28 kB / 386 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.5799, allocations: 382.2 kB / 386.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006616/0.5866, allocations: 2.04 MB / 388.4 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005856/0.5926, allocations: 0.7105 MB / 389.1 MB, free: 9.637 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008142/0.5934, allocations: 265 kB / 389.4 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.464e-05/0.5935, allocations: 12.41 kB / 389.4 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007772/0.5943, allocations: 288.1 kB / 389.6 MB, free: 9.559 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 5.5e-06/0.5944, allocations: 0 / 389.6 MB, free: 9.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.002111/0.5965, allocations: 0.5494 MB / 390.2 MB, free: 9.477 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.5966, allocations: 81.02 kB / 390.3 MB, free: 9.383 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005848/0.5972, allocations: 324.4 kB / 390.6 MB, free: 9.273 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/0.5974, allocations: 29.52 kB / 390.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.5976, allocations: 273.1 kB / 390.9 MB, free: 9.051 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.5978, allocations: 130.6 kB / 391 MB, free: 8.969 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.386e-05/0.5979, allocations: 7.438 kB / 391 MB, free: 8.969 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.5979, allocations: 329.6 kB / 391.3 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.5985, allocations: 170.3 kB / 391.5 MB, free: 8.645 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.599, allocations: 198.9 kB / 391.7 MB, free: 8.613 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004792/0.5995, allocations: 184.8 kB / 391.9 MB, free: 8.578 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5995, allocations: 3.875 kB / 391.9 MB, free: 8.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001785/0.6013, allocations: 0.578 MB / 392.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.6014, allocations: 32.72 kB / 392.5 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.6015, allocations: 0 / 392.5 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.6029, allocations: 337.4 kB / 392.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008843/0.6039, allocations: 93.56 kB / 392.9 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/0.6158, allocations: 3.08 MB / 396 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.6173, allocations: 111.5 kB / 396.1 MB, free: 6.957 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.6174, allocations: 15.12 kB / 396.1 MB, free: 6.953 MB / 314.7 MB 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.0002072/0.6177, allocations: 119 kB / 396.2 MB, free: 6.848 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.6178, allocations: 42.44 kB / 396.3 MB, free: 6.828 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001945/0.618, allocations: 58.55 kB / 396.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.618, allocations: 3.875 kB / 396.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.6181, allocations: 0 / 396.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.6181, allocations: 3.422 kB / 396.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.6191, allocations: 0.584 MB / 396.9 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.6191, allocations: 3.938 kB / 396.9 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/0.62, allocations: 85.61 kB / 397 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.6215, allocations: 333.7 kB / 397.3 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.6217, allocations: 14.8 kB / 397.4 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.6336, allocations: 3.064 MB / 400.4 MB, free: 21.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.6337, allocations: 0 / 400.4 MB, free: 21.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.6365, allocations: 0.8407 MB / 401.3 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004527/0.637, allocations: 168 kB / 401.4 MB, free: 20.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.6371, allocations: 10.12 kB / 401.4 MB, free: 20.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.6384, allocations: 81.98 kB / 401.5 MB, free: 20.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.6386, allocations: 50.7 kB / 401.6 MB, free: 20.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-05/0.6387, allocations: 13.5 kB / 401.6 MB, free: 20.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004347/0.6392, allocations: 256.3 kB / 401.8 MB, free: 20.81 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6392, allocations: 0 / 401.8 MB, free: 20.81 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001066/0.6403, allocations: 166 kB / 402 MB, free: 20.79 MB / 330.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.003248/0.6436, allocations: 1.414 MB / 403.4 MB, free: 20.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002439/0.6461, allocations: 0.6486 MB / 404.1 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.6461, allocations: 0 / 404.1 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001763/0.6479, allocations: 412.2 kB / 404.5 MB, free: 19.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000849/0.6488, allocations: 76.92 kB / 404.5 MB, free: 19.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.6534, allocations: 0.8953 MB / 405.4 MB, free: 19.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.654, allocations: 0.8335 MB / 406.3 MB, free: 18.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.6544, allocations: 151.2 kB / 406.4 MB, free: 18.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.412e-06/0.6544, allocations: 0 / 406.4 MB, free: 18.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.705/3.36, allocations: 10.31 MB / 416.7 MB, free: 15.27 MB / 330.7 MB