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 1.925/1.925, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.46e-05/4.479e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1263, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4638/0.5901, allocations: 75.84 MB / 375.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.5904, allocations: 67.06 kB / 375.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04033/0.6308, allocations: 8.213 MB / 384.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6308, allocations: 0 / 384.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.017e-05/0.6309, allocations: 9.625 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.003216/0.6341, allocations: 0.8471 MB / 384.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.6342, allocations: 9.125 kB / 384.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002329/0.6344, allocations: 72.72 kB / 385 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.6347, allocations: 55.47 kB / 385 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007974/0.6355, allocations: 369.1 kB / 385.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/0.6356, allocations: 27.03 kB / 385.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.6357, allocations: 38.75 kB / 385.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.637, allocations: 460.5 kB / 385.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.637, allocations: 0 / 385.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.224e-05/0.6371, allocations: 14.88 kB / 385.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.6371, allocations: 10.38 kB / 385.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.6383, allocations: 386 kB / 386.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005811/0.6442, allocations: 2.041 MB / 388.4 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0058/0.65, allocations: 0.7156 MB / 389.1 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008119/0.6509, allocations: 263.2 kB / 389.3 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.748e-05/0.651, allocations: 8.219 kB / 389.3 MB, free: 9.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007648/0.6517, allocations: 293.6 kB / 389.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.115e-06/0.6518, allocations: 3.844 kB / 389.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.002025/0.6538, allocations: 0.5494 MB / 390.2 MB, free: 9.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.6539, allocations: 84.92 kB / 390.3 MB, free: 9.367 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00058/0.6545, allocations: 318.6 kB / 390.6 MB, free: 9.258 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001711/0.6547, allocations: 32.95 kB / 390.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.6549, allocations: 269.8 kB / 390.9 MB, free: 9.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.6551, allocations: 130.8 kB / 391 MB, free: 8.953 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.325e-05/0.6551, allocations: 10.97 kB / 391 MB, free: 8.953 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.994e-05/0.6552, allocations: 324.5 kB / 391.3 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/0.6557, allocations: 169 kB / 391.5 MB, free: 8.633 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.6562, allocations: 207.8 kB / 391.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/0.6567, allocations: 185.3 kB / 391.9 MB, free: 8.559 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.6567, allocations: 0 / 391.9 MB, free: 8.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001766/0.6585, allocations: 0.5803 MB / 392.5 MB, free: 8.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.6586, allocations: 34.2 kB / 392.5 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.6586, allocations: 0 / 392.5 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.6601, allocations: 329.6 kB / 392.8 MB, free: 8.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008485/0.661, allocations: 99 kB / 392.9 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/0.6725, allocations: 3.08 MB / 396 MB, free: 6.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.6739, allocations: 105.3 kB / 396.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-05/0.674, allocations: 15.81 kB / 396.1 MB, free: 6.945 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.0001979/0.6742, allocations: 131.2 kB / 396.2 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.6743, allocations: 43.19 kB / 396.3 MB, free: 6.809 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.6745, allocations: 59.45 kB / 396.3 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.6746, allocations: 3.938 kB / 396.3 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.6746, allocations: 0 / 396.3 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.6746, allocations: 0 / 396.3 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009675/0.6756, allocations: 0.5805 MB / 396.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.6756, allocations: 2.578 kB / 396.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.6764, allocations: 93.81 kB / 397 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.6778, allocations: 328.3 kB / 397.3 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.835e-05/0.6779, allocations: 17.64 kB / 397.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.6895, allocations: 3.052 MB / 400.4 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6895, allocations: 0 / 400.4 MB, free: 21.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.6922, allocations: 0.842 MB / 401.2 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004175/0.6927, allocations: 172.2 kB / 401.4 MB, free: 20.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.6928, allocations: 9.453 kB / 401.4 MB, free: 20.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.694, allocations: 84.84 kB / 401.5 MB, free: 20.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.6942, allocations: 52.61 kB / 401.6 MB, free: 20.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.842e-05/0.6943, allocations: 11.22 kB / 401.6 MB, free: 20.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000416/0.6947, allocations: 255.3 kB / 401.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.6948, allocations: 0 / 401.8 MB, free: 20.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009643/0.6957, allocations: 162.2 kB / 402 MB, free: 20.78 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.003059/0.6988, allocations: 1.415 MB / 403.4 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.7011, allocations: 0.6598 MB / 404 MB, free: 19.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.7012, allocations: 0 / 404 MB, free: 19.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.7027, allocations: 432 kB / 404.5 MB, free: 19.78 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007519/0.7035, allocations: 70.69 kB / 404.5 MB, free: 19.76 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.7079, allocations: 0.8884 MB / 405.4 MB, free: 19.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.7084, allocations: 0.8398 MB / 406.3 MB, free: 18.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.7088, allocations: 154.5 kB / 406.4 MB, free: 18.73 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7088, allocations: 0 / 406.4 MB, free: 18.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.577/3.286, allocations: 10.33 MB / 416.7 MB, free: 15.25 MB / 330.7 MB